freebsd-src/usr.bin/objformat/Makefile
Søren Schmidt cabb97dcbf ELF preparation step 2:
Move a.out libraries to /usr/lib/aout to make space for ELF libs.
Make rtld usr /usr/lib/aout as default library path.
Make ldconfig reject /usr/lib as an a.out library path.
Fix various Makefiles for LIBDIR!=/usr/lib breakage.

This will after a make world & reboot give a system that no
longer uses /usr/lib/*, infact one could remove all the old
libraries there, they are not used anymore.

We are getting close to an ELF make world, but I'll let this
all settle for a week or two...
1998-05-26 20:12:56 +00:00

30 lines
955 B
Makefile

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