Deleted Added
full compact
prog.mk (253883) prog.mk (300313)
1# $Id: prog.mk,v 1.25 2013/07/18 05:46:24 sjg Exp $
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
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.cc.o:
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
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
75.C.o:
76 ${CXX} -E ${CXXFLAGS} ${.IMPSRC} | xstr -c -
77 @mv -f x.c x.C
78 @${CXX} ${CXXFLAGS} -c x.C -o ${.TARGET}
79 @rm -f x.C
80.endif
81
82
83.if defined(PROG)
84SRCS?= ${PROG}.c
85.for s in ${SRCS:N*.h:N*.sh:M*/*}
86${.o .po .lo:L:@o@${s:T:R}$o@}: $s
87.endfor

--- 141 unchanged lines hidden ---
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 ---