1998-03-10 05:20:58 +00:00
|
|
|
# $FreeBSD$
|
|
|
|
|
|
|
|
PROG= objformat
|
|
|
|
NOMAN= not yet
|
1998-05-25 15:42:22 +01: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 07:51:28 +01:00
|
|
|
objformat:
|
|
|
|
@echo Compiles on install.
|
|
|
|
|
|
|
|
install:
|
|
|
|
$(CC) ${CFLAGS} ${.CURDIR}/objformat.c -o ${DESTDIR}/usr/bin/objformat
|
1998-05-26 13:27:37 +01:00
|
|
|
chown ${BINOWN} ${DESTDIR}/usr/bin/objformat
|
|
|
|
chgrp ${BINGRP} ${DESTDIR}/usr/bin/objformat
|
|
|
|
chmod ${BINMODE} ${DESTDIR}/usr/bin/objformat
|
1998-05-26 21:12:56 +01: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>
|