1# $Id: prog.mk,v 1.26 2016/03/22 20:45:14 sjg Exp $ |
2 3.if !target(__${.PARSEFILE}__) 4__${.PARSEFILE}__: 5 6.include <init.mk> 7 8# FreeBSD at least expects MAN8 etc. 9.if defined(MAN) && !empty(MAN) --- 51 unchanged lines hidden (view full) --- 61 62.if defined(SHAREDSTRINGS) 63CLEANFILES+=strings 64.c.o: 65 ${CC} -E ${CFLAGS} ${.IMPSRC} | xstr -c - 66 @${CC} ${CFLAGS} -c x.c -o ${.TARGET} 67 @rm -f x.c 68 |
69${CXX_SUFFIXES:%=%.o}: |
70 ${CXX} -E ${CXXFLAGS} ${.IMPSRC} | xstr -c - 71 @mv -f x.c x.cc 72 @${CXX} ${CXXFLAGS} -c x.cc -o ${.TARGET} 73 @rm -f x.cc |
74.endif 75 76 77.if defined(PROG) 78SRCS?= ${PROG}.c 79.for s in ${SRCS:N*.h:N*.sh:M*/*} 80${.o .po .lo:L:@o@${s:T:R}$o@}: $s 81.endfor --- 141 unchanged lines hidden --- |