1998-03-10 05:20:58 +00:00
|
|
|
# $FreeBSD$
|
|
|
|
|
|
|
|
PROG= objformat
|
|
|
|
NOMAN= not yet
|
1998-05-25 14:42:22 +00:00
|
|
|
CFLAGS+= -DMAIN -DROOTDIR=\"${DESTDIR}/usr/libexec/\"
|
1998-03-10 05:20:58 +00:00
|
|
|
.if ${BINFORMAT} == elf
|
|
|
|
CFLAGS+= -DFREEBSD_ELF
|
|
|
|
.else
|
|
|
|
CFLAGS+= -DFREEBSD_AOUT
|
|
|
|
.endif
|
|
|
|
|
1998-05-26 06:51:28 +00:00
|
|
|
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
|
1998-05-26 20:12:56 +00:00
|
|
|
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
|
1998-03-10 05:20:58 +00:00
|
|
|
|
|
|
|
.include <bsd.prog.mk>
|