diff options
Diffstat (limited to 'usr.bin/objformat/Makefile')
-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 |