summaryrefslogtreecommitdiffstats
path: root/usr.bin
diff options
context:
space:
mode:
Diffstat (limited to 'usr.bin')
-rw-r--r--usr.bin/objformat/Makefile14
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
OpenPOWER on IntegriCloud