[BACK]Return to Makefile CVS log [TXT][DIR] Up to [local] / src / usr.bin / strip

Annotation of src/usr.bin/strip/Makefile, Revision 1.8

1.8     ! espie       1: #      $OpenBSD: Makefile,v 1.7 1998/05/11 07:41:23 niklas Exp $
1.7       niklas      2:
                      3: TARGET_MACHINE_ARCH?=  ${MACHINE_ARCH}
1.1       deraadt     4:
                      5: PROG=  strip
1.7       niklas      6:
1.8     ! espie       7: CFLAGS+=-I${.CURDIR}/../nm
1.7       niklas      8: .if ${TARGET_MACHINE_ARCH} != ${MACHINE_ARCH}
                      9: # XXX should make this automatic
                     10: .if ${TARGET_MACHINE_ARCH} == "i386"
                     11: CFLAGS+=       -DMID_MACHINE_OVERRIDE=MID_I386
                     12: .elif ${TARGET_MACHINE_ARCH} == "m68k"
                     13: CFLAGS+=       -DMID_MACHINE_OVERRIDE=MID_M68K
                     14: .elif ${TARGET_MACHINE_ARCH} == "ns32k"
                     15: CFLAGS+=       -DMID_MACHINE_OVERRIDE=MID_NS32K
                     16: .elif ${TARGET_MACHINE_ARCH} == "sparc"
                     17: CFLAGS+=       -DMID_MACHINE_OVERRIDE=MID_SPARC
                     18: .elif ${TARGET_MACHINE_ARCH} == "vax"
                     19: CFLAGS+=       -DMID_MACHINE_OVERRIDE=MID_VAX
                     20: .endif
                     21: STRIP= /usr/bin/strip
                     22:
                     23: .elif ${HOSTCC} != ${CC}
1.4       deraadt    24: STRIP=./hoststrip
                     25:
1.5       deraadt    26: realinstall: hoststrip
1.4       deraadt    27:
                     28: hoststrip: strip.c
1.5       deraadt    29:        ${HOSTCC} ${.CURDIR}/strip.c -o hoststrip
1.4       deraadt    30: .else
                     31: STRIP=./strip
                     32: .endif
1.1       deraadt    33:
                     34: realinstall:
1.6       millert    35:        ${INSTALL} ${INSTALL_COPY} -o ${BINOWN} -g ${BINGRP} -m 600 strip \
1.1       deraadt    36:            ${DESTDIR}${BINDIR}
1.4       deraadt    37:        ${STRIP} ${DESTDIR}${BINDIR}/strip
1.1       deraadt    38:        chmod ${BINMODE} ${DESTDIR}${BINDIR}/strip
1.6       millert    39:        -if [ "${INSTALL_COPY}" = "" ]; then rm -f ${STRIP}; fi
1.1       deraadt    40:
                     41: .include <bsd.prog.mk>