version 1.48, 2006/06/26 03:12:37 |
version 1.49, 2006/06/30 19:00:29 |
|
|
SRCS?= ${PROG}.c |
SRCS?= ${PROG}.c |
. if !empty(SRCS:N*.h:N*.sh) |
. if !empty(SRCS:N*.h:N*.sh) |
OBJS+= ${SRCS:N*.h:N*.sh:R:S/$/.o/g} |
OBJS+= ${SRCS:N*.h:N*.sh:R:S/$/.o/g} |
|
_LEXINTM+=${SRCS:M*.l:.l=.c} |
|
_YACCINTM+=${SRCS:M*.y:.y=.c} |
LOBJS+= ${LSRCS:.c=.ln} ${SRCS:M*.c:.c=.ln} ${SRCS:M*.y:.y=.ln} ${SRCS:M*.l:.l=.ln} |
LOBJS+= ${LSRCS:.c=.ln} ${SRCS:M*.c:.c=.ln} ${SRCS:M*.y:.y=.ln} ${SRCS:M*.l:.l=.ln} |
. endif |
. endif |
|
|
|
|
|
|
.if !target(clean) |
.if !target(clean) |
clean: _SUBDIRUSE |
clean: _SUBDIRUSE |
rm -f a.out [Ee]rrs mklog core *.core \ |
rm -f a.out [Ee]rrs mklog core *.core y.tab.h \ |
${PROG} ${OBJS} ${LOBJS} ${CLEANFILES} |
${PROG} ${OBJS} ${LOBJS} ${_LEXINTM} ${_YACCINTM} ${CLEANFILES} |
.endif |
.endif |
|
|
cleandir: _SUBDIRUSE clean |
cleandir: _SUBDIRUSE clean |