mirror of
https://github.com/opnsense/src.git
synced 2026-03-07 15:51:20 -05:00
29 lines
694 B
Makefile
29 lines
694 B
Makefile
# $FreeBSD$
|
|
|
|
PROG= objformat
|
|
NOMAN= not yet
|
|
CFLAGS+= -DMAIN -DROOTDIR=\"${DESTDIR}/usr/libexec/\"
|
|
|
|
objformat:
|
|
@echo Compiles on install.
|
|
|
|
beforeinstall:
|
|
$(CC) -DMAIN -DROOTDIR=\"${DESTDIR}/usr/libexec/\" \
|
|
${.CURDIR}/objformat.c -o ${.OBJDIR}/objformat
|
|
|
|
.if ${BINFORMAT} == elf
|
|
CFLAGS+= -DFREEBSD_ELF
|
|
.else
|
|
CFLAGS+= -DFREEBSD_AOUT
|
|
.endif
|
|
|
|
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 <bsd.prog.mk>
|