From 8d2cfc044cee21bc42295709185e4780a1b0f8fd Mon Sep 17 00:00:00 2001 From: Søren Schmidt Date: Mon, 25 May 1998 14:42:22 +0000 Subject: Make objformat DTRT when in the make world environment. --- usr.bin/objformat/Makefile | 16 +++++++++++++--- 1 file changed, 13 insertions(+), 3 deletions(-) (limited to 'usr.bin/objformat/Makefile') diff --git a/usr.bin/objformat/Makefile b/usr.bin/objformat/Makefile index d9ba31bf80e88..e25e3f5520fb0 100644 --- a/usr.bin/objformat/Makefile +++ b/usr.bin/objformat/Makefile @@ -2,7 +2,11 @@ PROG= objformat NOMAN= not yet -CFLAGS+= -DMAIN +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 @@ -10,7 +14,13 @@ CFLAGS+= -DFREEBSD_ELF CFLAGS+= -DFREEBSD_AOUT .endif -# LINKS+= /usr/bin/objformat /usr/bin/as -# LINKS+= /usr/bin/objformat /usr/bin/ld +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 -- cgit v1.3