bsd.prog.mk (7f7fc25b5aa29e7619914bf214df866d82b2c8cd) | bsd.prog.mk (a0dc59709c5e8e4550969c56b040186c407a59f5) |
---|---|
1# from: @(#)bsd.prog.mk 5.26 (Berkeley) 6/25/91 2# $FreeBSD$ 3 4.include <bsd.init.mk> 5 6.SUFFIXES: .out .o .c .cc .cpp .cxx .C .m .y .l .ln .s .S .asm 7 8# XXX The use of COPTS in modern makefiles is discouraged. --- 27 unchanged lines hidden (view full) --- 36LDFLAGS+= -static 37.endif 38 39.if defined(PROG_CXX) 40PROG= ${PROG_CXX} 41.endif 42 43.if defined(PROG) | 1# from: @(#)bsd.prog.mk 5.26 (Berkeley) 6/25/91 2# $FreeBSD$ 3 4.include <bsd.init.mk> 5 6.SUFFIXES: .out .o .c .cc .cpp .cxx .C .m .y .l .ln .s .S .asm 7 8# XXX The use of COPTS in modern makefiles is discouraged. --- 27 unchanged lines hidden (view full) --- 36LDFLAGS+= -static 37.endif 38 39.if defined(PROG_CXX) 40PROG= ${PROG_CXX} 41.endif 42 43.if defined(PROG) |
44PROGNAME?= ${PROG} |
|
44.if defined(SRCS) 45 46OBJS+= ${SRCS:N*.h:R:S/$/.o/g} 47 48.if target(beforelinking) 49beforelinking: ${OBJS} 50${PROG}: beforelinking 51.endif --- 96 unchanged lines hidden (view full) --- 148_INSTALLFLAGS:= ${_INSTALLFLAGS${ie}} 149.endfor 150 151.if !target(realinstall) && !defined(INTERNALPROG) 152realinstall: _proginstall 153.ORDER: beforeinstall _proginstall 154_proginstall: 155.if defined(PROG) | 45.if defined(SRCS) 46 47OBJS+= ${SRCS:N*.h:R:S/$/.o/g} 48 49.if target(beforelinking) 50beforelinking: ${OBJS} 51${PROG}: beforelinking 52.endif --- 96 unchanged lines hidden (view full) --- 149_INSTALLFLAGS:= ${_INSTALLFLAGS${ie}} 150.endfor 151 152.if !target(realinstall) && !defined(INTERNALPROG) 153realinstall: _proginstall 154.ORDER: beforeinstall _proginstall 155_proginstall: 156.if defined(PROG) |
156.if defined(PROGNAME) | |
157 ${INSTALL} ${STRIP} -o ${BINOWN} -g ${BINGRP} -m ${BINMODE} \ 158 ${_INSTALLFLAGS} ${PROG} ${DESTDIR}${BINDIR}/${PROGNAME} | 157 ${INSTALL} ${STRIP} -o ${BINOWN} -g ${BINGRP} -m ${BINMODE} \ 158 ${_INSTALLFLAGS} ${PROG} ${DESTDIR}${BINDIR}/${PROGNAME} |
159.else 160 ${INSTALL} ${STRIP} -o ${BINOWN} -g ${BINGRP} -m ${BINMODE} \ 161 ${_INSTALLFLAGS} ${PROG} ${DESTDIR}${BINDIR} | |
162.endif | 159.endif |
163.endif | |
164.endif # !target(realinstall) 165 166.if defined(SCRIPTS) && !empty(SCRIPTS) 167realinstall: _scriptsinstall 168.ORDER: beforeinstall _scriptsinstall 169 170SCRIPTSDIR?= ${BINDIR} 171SCRIPTSOWN?= ${BINOWN} --- 60 unchanged lines hidden --- | 160.endif # !target(realinstall) 161 162.if defined(SCRIPTS) && !empty(SCRIPTS) 163realinstall: _scriptsinstall 164.ORDER: beforeinstall _scriptsinstall 165 166SCRIPTSDIR?= ${BINDIR} 167SCRIPTSOWN?= ${BINOWN} --- 60 unchanged lines hidden --- |