1# from: @(#)sys.mk 8.2 (Berkeley) 3/21/94 |
2# $FreeBSD: head/share/mk/sys.mk 301284 2016-06-03 19:25:36Z bdrewery $ |
3 4unix ?= We run FreeBSD, not UNIX. 5.FreeBSD ?= true 6 7.if !defined(%POSIX) 8# 9# MACHINE_CPUARCH defines a collection of MACHINE_ARCH. Machines with 10# the same MACHINE_ARCH can run each other's binaries, so it necessarily --- 45 unchanged lines hidden (view full) --- 56.error ${.newline}ERROR: The filemon module (/dev/filemon) is not loaded. 57.endif 58META_MODE+= nofilemon 59.endif 60.endif 61META_MODE?= normal 62.export META_MODE 63.MAKE.MODE?= ${META_MODE} |
64 65.if ${MK_AUTO_OBJ} == "yes" 66# This needs to be done early - before .PATH is computed 67# Don't do this for 'make showconfig' as it enables all options where meta mode 68# is not expected. 69.if !make(showconfig) 70.sinclude <auto.obj.mk> 71.endif --- 212 unchanged lines hidden (view full) --- 284 ${FC} ${FFLAGS} -c ${.IMPSRC} 285 ${AR} ${ARFLAGS} ${.TARGET} ${.PREFIX}.o 286 rm -f ${.PREFIX}.o 287 288.else 289 290# non-Posix rule set 291 |
292.sh: |
293 cp -f ${.IMPSRC} ${.TARGET} 294 chmod a+x ${.TARGET} 295 |
296.c.ln: |
297 ${LINT} ${LINTOBJFLAGS} ${CFLAGS:M-[DIU]*} ${.IMPSRC} || \ 298 touch ${.TARGET} 299 |
300.cc.ln .C.ln .cpp.ln .cxx.ln: |
301 ${LINT} ${LINTOBJFLAGS} ${CXXFLAGS:M-[DIU]*} ${.IMPSRC} || \ 302 touch ${.TARGET} 303 |
304.c: |
305 ${CC} ${CFLAGS} ${LDFLAGS} ${.IMPSRC} ${LDLIBS} -o ${.TARGET} 306 ${CTFCONVERT_CMD} 307 |
308.c.o: |
309 ${CC} ${CFLAGS} -c ${.IMPSRC} -o ${.TARGET} 310 ${CTFCONVERT_CMD} 311 |
312.cc .cpp .cxx .C: |
313 ${CXX} ${CXXFLAGS} ${LDFLAGS} ${.IMPSRC} ${LDLIBS} -o ${.TARGET} 314 |
315.cc.o .cpp.o .cxx.o .C.o: |
316 ${CXX} ${CXXFLAGS} -c ${.IMPSRC} -o ${.TARGET} 317 |
318.m.o: |
319 ${OBJC} ${OBJCFLAGS} -c ${.IMPSRC} -o ${.TARGET} 320 ${CTFCONVERT_CMD} 321 |
322.p.o: |
323 ${PC} ${PFLAGS} -c ${.IMPSRC} -o ${.TARGET} 324 ${CTFCONVERT_CMD} 325 |
326.e .r .F .f: |
327 ${FC} ${RFLAGS} ${EFLAGS} ${FFLAGS} ${LDFLAGS} ${.IMPSRC} ${LDLIBS} \ 328 -o ${.TARGET} 329 |
330.e.o .r.o .F.o .f.o: |
331 ${FC} ${RFLAGS} ${EFLAGS} ${FFLAGS} -c ${.IMPSRC} -o ${.TARGET} 332 |
333.S.o: |
334 ${CC:N${CCACHE_BIN}} ${CFLAGS} ${ACFLAGS} -c ${.IMPSRC} -o ${.TARGET} 335 ${CTFCONVERT_CMD} 336 |
337.asm.o: |
338 ${CC:N${CCACHE_BIN}} -x assembler-with-cpp ${CFLAGS} ${ACFLAGS} -c ${.IMPSRC} \ 339 -o ${.TARGET} 340 ${CTFCONVERT_CMD} 341 |
342.s.o: |
343 ${AS} ${AFLAGS} -o ${.TARGET} ${.IMPSRC} 344 ${CTFCONVERT_CMD} 345 346# XXX not -j safe |
347.y.o: |
348 ${YACC} ${YFLAGS} ${.IMPSRC} 349 ${CC} ${CFLAGS} -c y.tab.c -o ${.TARGET} 350 rm -f y.tab.c 351 ${CTFCONVERT_CMD} 352 |
353.l.o: |
354 ${LEX} -t ${LFLAGS} ${.IMPSRC} > ${.PREFIX}.tmp.c 355 ${CC} ${CFLAGS} -c ${.PREFIX}.tmp.c -o ${.TARGET} 356 rm -f ${.PREFIX}.tmp.c 357 ${CTFCONVERT_CMD} 358 359# XXX not -j safe |
360.y.c: |
361 ${YACC} ${YFLAGS} ${.IMPSRC} 362 mv y.tab.c ${.TARGET} 363 |
364.l.c: |
365 ${LEX} -t ${LFLAGS} ${.IMPSRC} > ${.TARGET} 366 |
367.s.out .c.out .o.out: |
368 ${CC} ${CFLAGS} ${LDFLAGS} ${.IMPSRC} ${LDLIBS} -o ${.TARGET} 369 ${CTFCONVERT_CMD} 370 |
371.f.out .F.out .r.out .e.out: |
372 ${FC} ${EFLAGS} ${RFLAGS} ${FFLAGS} ${LDFLAGS} ${.IMPSRC} \ 373 ${LDLIBS} -o ${.TARGET} 374 rm -f ${.PREFIX}.o 375 ${CTFCONVERT_CMD} 376 377# XXX not -j safe |
378.y.out: |
379 ${YACC} ${YFLAGS} ${.IMPSRC} 380 ${CC} ${CFLAGS} ${LDFLAGS} y.tab.c ${LDLIBS} -ly -o ${.TARGET} 381 rm -f y.tab.c 382 ${CTFCONVERT_CMD} 383 |
384.l.out: |
385 ${LEX} -t ${LFLAGS} ${.IMPSRC} > ${.PREFIX}.tmp.c 386 ${CC} ${CFLAGS} ${LDFLAGS} ${.PREFIX}.tmp.c ${LDLIBS} -ll -o ${.TARGET} 387 rm -f ${.PREFIX}.tmp.c 388 ${CTFCONVERT_CMD} 389 390# Pull in global settings. 391__MAKE_CONF?=/etc/make.conf 392.if exists(${__MAKE_CONF}) --- 45 unchanged lines hidden --- |