summaryrefslogtreecommitdiff
path: root/usr.bin/objformat/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'usr.bin/objformat/Makefile')
-rw-r--r--usr.bin/objformat/Makefile10
1 files changed, 8 insertions, 2 deletions
diff --git a/usr.bin/objformat/Makefile b/usr.bin/objformat/Makefile
index a56fdd4f8b8c3..1f28d3b5201c6 100644
--- a/usr.bin/objformat/Makefile
+++ b/usr.bin/objformat/Makefile
@@ -1,8 +1,14 @@
# $FreeBSD$
PROG= objformat
-CFLAGS+= -Wall
-NOSHARED?= YES
+NOMAN= not yet
+CFLAGS+= -DMAIN
+
+.if ${OBJFORMAT} == elf
+CFLAGS+= -DFREEBSD_ELF
+.else
+CFLAGS+= -DFREEBSD_AOUT
+.endif
LINKS+= ${BINDIR}/objformat ${BINDIR}/addr2line
LINKS+= ${BINDIR}/objformat ${BINDIR}/ar