bsd.prog.mk (cc3f4b99653c34ae64f8a1fddea370abefef680e) bsd.prog.mk (7273339dc40e5e9e1f0c1fb3c72a29c8528f256d)
1# from: @(#)bsd.prog.mk 5.26 (Berkeley) 6/25/91
2# $FreeBSD$
3
4.include <bsd.init.mk>
5.include <bsd.compiler.mk>
6
7.SUFFIXES: .out .o .c .cc .cpp .cxx .C .m .y .l .ln .s .S .asm
8

--- 133 unchanged lines hidden (view full) ---

142 !defined(MAN1) && !defined(MAN2) && !defined(MAN3) && \
143 !defined(MAN4) && !defined(MAN5) && !defined(MAN6) && \
144 !defined(MAN7) && !defined(MAN8) && !defined(MAN9)
145MAN= ${PROG}.1
146MAN1= ${MAN}
147.endif
148.endif # defined(PROG)
149
1# from: @(#)bsd.prog.mk 5.26 (Berkeley) 6/25/91
2# $FreeBSD$
3
4.include <bsd.init.mk>
5.include <bsd.compiler.mk>
6
7.SUFFIXES: .out .o .c .cc .cpp .cxx .C .m .y .l .ln .s .S .asm
8

--- 133 unchanged lines hidden (view full) ---

142 !defined(MAN1) && !defined(MAN2) && !defined(MAN3) && \
143 !defined(MAN4) && !defined(MAN5) && !defined(MAN6) && \
144 !defined(MAN7) && !defined(MAN8) && !defined(MAN9)
145MAN= ${PROG}.1
146MAN1= ${MAN}
147.endif
148.endif # defined(PROG)
149
150.if defined(_SKIP_BUILD)
151all:
152.else
153all: objwarn ${PROG} ${SCRIPTS}
154.if ${MK_MAN} != "no"
155all: _manpages
156.endif
150all: objwarn ${PROG} ${SCRIPTS}
151.if ${MK_MAN} != "no"
152all: _manpages
153.endif
157.endif
158
159.if defined(PROG)
160CLEANFILES+= ${PROG}
161.if ${MK_DEBUG_FILES} != "no"
162CLEANFILES+= ${PROG_FULL} ${PROGNAME}.debug
163.endif
164.endif
165

--- 6 unchanged lines hidden (view full) ---

172.if defined(PROG)
173_EXTRADEPEND:
174.if defined(LDFLAGS) && !empty(LDFLAGS:M-nostdlib)
175.if defined(DPADD) && !empty(DPADD)
176 echo ${PROG}: ${DPADD} >> ${DEPENDFILE}
177.endif
178.else
179 echo ${PROG}: ${LIBC} ${DPADD} >> ${DEPENDFILE}
154
155.if defined(PROG)
156CLEANFILES+= ${PROG}
157.if ${MK_DEBUG_FILES} != "no"
158CLEANFILES+= ${PROG_FULL} ${PROGNAME}.debug
159.endif
160.endif
161

--- 6 unchanged lines hidden (view full) ---

168.if defined(PROG)
169_EXTRADEPEND:
170.if defined(LDFLAGS) && !empty(LDFLAGS:M-nostdlib)
171.if defined(DPADD) && !empty(DPADD)
172 echo ${PROG}: ${DPADD} >> ${DEPENDFILE}
173.endif
174.else
175 echo ${PROG}: ${LIBC} ${DPADD} >> ${DEPENDFILE}
180.if defined(PROG_CXX) && !defined(EARLY_BUILD)
176.if defined(PROG_CXX)
181.if ${COMPILER_TYPE} == "clang" && empty(CXXFLAGS:M-stdlib=libstdc++)
182 echo ${PROG}: ${LIBCPLUSPLUS} >> ${DEPENDFILE}
183.else
184 echo ${PROG}: ${LIBSTDCPLUSPLUS} >> ${DEPENDFILE}
185.endif
186.endif
187.endif
188.endif

--- 33 unchanged lines hidden (view full) ---

222realinstall: _scriptsinstall
223.ORDER: beforeinstall _scriptsinstall
224
225SCRIPTSDIR?= ${BINDIR}
226SCRIPTSOWN?= ${BINOWN}
227SCRIPTSGRP?= ${BINGRP}
228SCRIPTSMODE?= ${BINMODE}
229
177.if ${COMPILER_TYPE} == "clang" && empty(CXXFLAGS:M-stdlib=libstdc++)
178 echo ${PROG}: ${LIBCPLUSPLUS} >> ${DEPENDFILE}
179.else
180 echo ${PROG}: ${LIBSTDCPLUSPLUS} >> ${DEPENDFILE}
181.endif
182.endif
183.endif
184.endif

--- 33 unchanged lines hidden (view full) ---

218realinstall: _scriptsinstall
219.ORDER: beforeinstall _scriptsinstall
220
221SCRIPTSDIR?= ${BINDIR}
222SCRIPTSOWN?= ${BINOWN}
223SCRIPTSGRP?= ${BINGRP}
224SCRIPTSMODE?= ${BINMODE}
225
230STAGE_AS_SETS+= scripts
231stage_as.scripts: ${SCRIPTS}
232FLAGS.stage_as.scripts= -m ${SCRIPTSMODE}
233STAGE_FILES_DIR.scripts= ${STAGE_OBJTOP}
234.for script in ${SCRIPTS}
235.if defined(SCRIPTSNAME)
236SCRIPTSNAME_${script:T}?= ${SCRIPTSNAME}
237.else
238SCRIPTSNAME_${script:T}?= ${script:T:R}
239.endif
240SCRIPTSDIR_${script:T}?= ${SCRIPTSDIR}
241SCRIPTSOWN_${script:T}?= ${SCRIPTSOWN}
242SCRIPTSGRP_${script:T}?= ${SCRIPTSGRP}
243SCRIPTSMODE_${script:T}?= ${SCRIPTSMODE}
226.for script in ${SCRIPTS}
227.if defined(SCRIPTSNAME)
228SCRIPTSNAME_${script:T}?= ${SCRIPTSNAME}
229.else
230SCRIPTSNAME_${script:T}?= ${script:T:R}
231.endif
232SCRIPTSDIR_${script:T}?= ${SCRIPTSDIR}
233SCRIPTSOWN_${script:T}?= ${SCRIPTSOWN}
234SCRIPTSGRP_${script:T}?= ${SCRIPTSGRP}
235SCRIPTSMODE_${script:T}?= ${SCRIPTSMODE}
244STAGE_AS_${script:T}= ${SCRIPTSDIR_${script:T}}/${SCRIPTSNAME_${script:T}}
245_scriptsinstall: _SCRIPTSINS_${script:T}
246_SCRIPTSINS_${script:T}: ${script}
247 ${INSTALL} -o ${SCRIPTSOWN_${.ALLSRC:T}} \
248 -g ${SCRIPTSGRP_${.ALLSRC:T}} -m ${SCRIPTSMODE_${.ALLSRC:T}} \
249 ${.ALLSRC} \
250 ${DESTDIR}${SCRIPTSDIR_${.ALLSRC:T}}/${SCRIPTSNAME_${.ALLSRC:T}}
251.endfor
252.endif

--- 39 unchanged lines hidden ---
236_scriptsinstall: _SCRIPTSINS_${script:T}
237_SCRIPTSINS_${script:T}: ${script}
238 ${INSTALL} -o ${SCRIPTSOWN_${.ALLSRC:T}} \
239 -g ${SCRIPTSGRP_${.ALLSRC:T}} -m ${SCRIPTSMODE_${.ALLSRC:T}} \
240 ${.ALLSRC} \
241 ${DESTDIR}${SCRIPTSDIR_${.ALLSRC:T}}/${SCRIPTSNAME_${.ALLSRC:T}}
242.endfor
243.endif

--- 39 unchanged lines hidden ---