summaryrefslogtreecommitdiffstats
path: root/usr.bin/objformat/Makefile
blob: e25e3f5520fb09301fd4f387ce6b513661a46501 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
# $FreeBSD$

PROG=		objformat
NOMAN=		not yet
CFLAGS+=	-DMAIN -DROOTDIR=\"${DESTDIR}/usr/libexec/\"

beforeinstall:
	$(CC) -DMAIN -DROOTDIR=\"${DESTDIR}/usr/libexec/\" \
	${.CURDIR}/objformat.c -o ${.OBJDIR}/objformat

.if ${BINFORMAT} == elf
CFLAGS+=	-DFREEBSD_ELF
.else
CFLAGS+=	-DFREEBSD_AOUT
.endif

LINKS+= /usr/bin/objformat /usr/bin/ar
LINKS+= /usr/bin/objformat /usr/bin/as
LINKS+= /usr/bin/objformat /usr/bin/ld
LINKS+= /usr/bin/objformat /usr/bin/nm
LINKS+= /usr/bin/objformat /usr/bin/ranlib
LINKS+= /usr/bin/objformat /usr/bin/size
LINKS+= /usr/bin/objformat /usr/bin/strings
LINKS+= /usr/bin/objformat /usr/bin/strip

.include <bsd.prog.mk>
OpenPOWER on IntegriCloud