freebsd-skq/usr.bin/objformat/Makefile

27 lines
654 B
Makefile

# $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>