diff options
author | sos <sos@FreeBSD.org> | 1998-05-26 06:51:28 +0000 |
---|---|---|
committer | sos <sos@FreeBSD.org> | 1998-05-26 06:51:28 +0000 |
commit | 31e5866c45722c2597f3b1b4ef7a9a731bfdd288 (patch) | |
tree | 194a573ecce9d9fbe944898ba19731135dccf2dc /usr.bin/objformat | |
parent | 360b2c0bec66e875a8c1b60ec30224c1bf24f433 (diff) | |
download | FreeBSD-src-31e5866c45722c2597f3b1b4ef7a9a731bfdd288.zip FreeBSD-src-31e5866c45722c2597f3b1b4ef7a9a731bfdd288.tar.gz |
Oops, remember CFLAGS...
Also compile directly to the target on install.
Diffstat (limited to 'usr.bin/objformat')
-rw-r--r-- | usr.bin/objformat/Makefile | 14 |
1 files changed, 6 insertions, 8 deletions
diff --git a/usr.bin/objformat/Makefile b/usr.bin/objformat/Makefile index 0b2b0cc..66bac5c 100644 --- a/usr.bin/objformat/Makefile +++ b/usr.bin/objformat/Makefile @@ -3,20 +3,18 @@ PROG= objformat NOMAN= not yet CFLAGS+= -DMAIN -DROOTDIR=\"${DESTDIR}/usr/libexec/\" - -objformat: - @echo Compiles on install. - -beforeinstall: - $(CC) -DMAIN -DROOTDIR=\"${DESTDIR}/usr/libexec/\" \ - ${.CURDIR}/objformat.c -o ${.OBJDIR}/objformat - .if ${BINFORMAT} == elf CFLAGS+= -DFREEBSD_ELF .else CFLAGS+= -DFREEBSD_AOUT .endif +objformat: + @echo Compiles on install. + +install: + $(CC) ${CFLAGS} ${.CURDIR}/objformat.c -o ${DESTDIR}/usr/bin/objformat + LINKS+= /usr/bin/objformat /usr/bin/ar LINKS+= /usr/bin/objformat /usr/bin/as LINKS+= /usr/bin/objformat /usr/bin/ld |