bsd.prog.mk (7750ad47a9a7dbc83f87158464170c8640723293) bsd.prog.mk (d515c63db93a58f58c893843a2d452759d4362f9)
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.

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

97 !defined(MAN4) && !defined(MAN5) && !defined(MAN6) && \
98 !defined(MAN7) && !defined(MAN8) && !defined(MAN9) && \
99 !defined(MAN1aout)
100MAN= ${PROG}.1
101MAN1= ${MAN}
102.endif
103.endif
104
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.

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

97 !defined(MAN4) && !defined(MAN5) && !defined(MAN6) && \
98 !defined(MAN7) && !defined(MAN8) && !defined(MAN9) && \
99 !defined(MAN1aout)
100MAN= ${PROG}.1
101MAN1= ${MAN}
102.endif
103.endif
104
105.if defined(_SKIP_BUILD)
106all:
107.else
108all: objwarn ${PROG} ${SCRIPTS}
109.if ${MK_MAN} != "no"
110all: _manpages
111.endif
105all: objwarn ${PROG} ${SCRIPTS}
106.if ${MK_MAN} != "no"
107all: _manpages
108.endif
112.endif
113
114.if defined(PROG)
115CLEANFILES+= ${PROG}
116.endif
117
118.if defined(OBJS)
119CLEANFILES+= ${OBJS}
120.endif

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

125_EXTRADEPEND:
126.if defined(LDFLAGS) && !empty(LDFLAGS:M-nostdlib)
127.if defined(DPADD) && !empty(DPADD)
128 echo ${PROG}: ${DPADD} >> ${DEPENDFILE}
129.endif
130.else
131 echo ${PROG}: ${LIBC} ${DPADD} >> ${DEPENDFILE}
132.if defined(PROG_CXX)
109
110.if defined(PROG)
111CLEANFILES+= ${PROG}
112.endif
113
114.if defined(OBJS)
115CLEANFILES+= ${OBJS}
116.endif

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

121_EXTRADEPEND:
122.if defined(LDFLAGS) && !empty(LDFLAGS:M-nostdlib)
123.if defined(DPADD) && !empty(DPADD)
124 echo ${PROG}: ${DPADD} >> ${DEPENDFILE}
125.endif
126.else
127 echo ${PROG}: ${LIBC} ${DPADD} >> ${DEPENDFILE}
128.if defined(PROG_CXX)
129.if !empty(CXXFLAGS:M-stdlib=libc++)
130 echo ${PROG}: ${LIBCPLUSPLUS} >> ${DEPENDFILE}
131.else
133 echo ${PROG}: ${LIBSTDCPLUSPLUS} >> ${DEPENDFILE}
134.endif
135.endif
136.endif
132 echo ${PROG}: ${LIBSTDCPLUSPLUS} >> ${DEPENDFILE}
133.endif
134.endif
135.endif
136.endif
137
138.if !target(install)
139
140.if defined(PRECIOUSPROG)
141.if !defined(NO_FSCHG)
142INSTALLFLAGS+= -fschg
143.endif
144INSTALLFLAGS+= -S

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

225
226.include <bsd.obj.mk>
227
228.include <bsd.sys.mk>
229
230.if defined(PORTNAME)
231.include <bsd.pkg.mk>
232.endif
137
138.if !target(install)
139
140.if defined(PRECIOUSPROG)
141.if !defined(NO_FSCHG)
142INSTALLFLAGS+= -fschg
143.endif
144INSTALLFLAGS+= -S

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

225
226.include <bsd.obj.mk>
227
228.include <bsd.sys.mk>
229
230.if defined(PORTNAME)
231.include <bsd.pkg.mk>
232.endif
233
234.if ${MK_STAGING} != "no"
235.if defined(_SKIP_BUILD)
236stage_files stage_as:
237.else
238# normally only libs and includes are staged
239.if ${MK_STAGING_PROG:Uno} != "no"
240STAGE_SETS+= prog
241STAGE_DIR.prog= ${STAGE_OBJTOP}${BINDIR}
242.if !empty(PROG)
243all: stage_files
244stage_files.prog: ${PROG}
245.endif
246.if !empty(SYMLINKS)
247all: stage_symlinks
248stage_symlinks.prog: ${SYMLINKS}
249.endif
250
251.endif
252.include <meta.stage.mk>
253.endif
254.endif