freebsd-dev/usr.bin/objformat/Makefile

30 lines
955 B
Makefile
Raw Normal View History

# $FreeBSD$
PROG= objformat
NOMAN= not yet
CFLAGS+= -DMAIN -DROOTDIR=\"${DESTDIR}/usr/libexec/\"
.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
1998-05-26 12:27:37 +00:00
chown ${BINOWN} ${DESTDIR}/usr/bin/objformat
chgrp ${BINGRP} ${DESTDIR}/usr/bin/objformat
chmod ${BINMODE} ${DESTDIR}/usr/bin/objformat
ln -sf ${DESTDIR}/usr/bin/objformat ${DESTDIR}/usr/bin/ar
ln -sf ${DESTDIR}/usr/bin/objformat ${DESTDIR}/usr/bin/as
ln -sf ${DESTDIR}/usr/bin/objformat ${DESTDIR}/usr/bin/ld
ln -sf ${DESTDIR}/usr/bin/objformat ${DESTDIR}/usr/bin/nm
ln -sf ${DESTDIR}/usr/bin/objformat ${DESTDIR}/usr/bin/ranlib
ln -sf ${DESTDIR}/usr/bin/objformat ${DESTDIR}/usr/bin/size
ln -sf ${DESTDIR}/usr/bin/objformat ${DESTDIR}/usr/bin/strings
ln -sf ${DESTDIR}/usr/bin/objformat ${DESTDIR}/usr/bin/strip
.include <bsd.prog.mk>