summaryrefslogtreecommitdiff
path: root/usr.bin/objformat
diff options
context:
space:
mode:
authorSøren Schmidt <sos@FreeBSD.org>1998-05-26 06:51:28 +0000
committerSøren Schmidt <sos@FreeBSD.org>1998-05-26 06:51:28 +0000
commit8d46441ba43b2709685a5ab71fabd89ad55be860 (patch)
treef84dc0b119bf2f7388aec5a051378b8605f93b07 /usr.bin/objformat
parentc6a24f8623fb750a12ba1c152e3ea073b029cb19 (diff)
Notes
Diffstat (limited to 'usr.bin/objformat')
-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 0b2b0cc173c0..66bac5cce475 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