version 1.22, 2011/07/16 23:34:21 |
version 1.23, 2012/04/08 15:56:28 |
|
|
SRCS?= ${LKM}.c |
SRCS?= ${LKM}.c |
.if !empty(SRCS:N*.h:N*.sh) |
.if !empty(SRCS:N*.h:N*.sh) |
OBJS+= ${SRCS:N*.h:N*.sh:R:S/$/.o/} |
OBJS+= ${SRCS:N*.h:N*.sh:R:S/$/.o/} |
LOBJS+= ${LSRCS:.c=.ln} ${SRCS:M*.c:.c=.ln} |
|
.endif |
.endif |
COMBINED?=combined.o |
COMBINED?=combined.o |
.if !defined(POSTINSTALL) |
.if !defined(POSTINSTALL) |
|
|
.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 \ |
${LKM} ${COMBINED} ${OBJS} ${LOBJS} ${CLEANFILES} |
${LKM} ${COMBINED} ${OBJS} ${CLEANFILES} |
.endif |
.endif |
|
|
cleandir: _SUBDIRUSE clean |
cleandir: _SUBDIRUSE clean |
|
|
maninstall: afterinstall |
maninstall: afterinstall |
afterinstall: realinstall |
afterinstall: realinstall |
realinstall: beforeinstall |
realinstall: beforeinstall |
.endif |
|
|
|
.if !target(lint) |
|
lint: ${LOBJS} |
|
.if defined(LOBJS) && !empty(LOBJS) |
|
@${LINT} ${LINTFLAGS} ${LDFLAGS:M-L*} ${LOBJS} ${LDADD} |
|
.endif |
|
.endif |
.endif |
|
|
.if !defined(NOMAN) |
.if !defined(NOMAN) |