| version 1.266, 2011/08/27 18:35:20 |
version 1.267, 2011/09/10 16:57:35 |
|
|
| |
|
| ##### Basic targets |
##### Basic targets |
| realinstall: proginstall scriptsinstall |
realinstall: proginstall scriptsinstall |
| clean: cleanprog |
|
| |
|
| .gdbinit: |
.gdbinit: |
| rm -f .gdbinit |
rm -f .gdbinit |
|
|
| echo "source ${__gdbinit}" >> .gdbinit |
echo "source ${__gdbinit}" >> .gdbinit |
| .endfor |
.endfor |
| |
|
| cleanobjs: .PHONY |
CLEANFILES+= a.out [Ee]rrs mklog core *.core .gdbinit |
| |
|
| cleanprog: .PHONY cleanobjs cleanextra |
|
| rm -f a.out [Ee]rrs mklog core *.core .gdbinit |
|
| |
|
| .if defined(SHAREDSTRINGS) |
.if defined(SHAREDSTRINGS) |
| CLEANFILES+=strings |
CLEANFILES+=strings |
| Line 352 MAN+= ${MAN.${_P}} |
|
| Line 348 MAN+= ${MAN.${_P}} |
|
| |
|
| realall: ${_P} ${_PROGDEBUG.${_P}} |
realall: ${_P} ${_PROGDEBUG.${_P}} |
| |
|
| cleanprog: cleanprog-${_P} |
CLEANFILES+= ${_P} ${_PROGDEBUG.${_P}} |
| cleanprog-${_P}: |
|
| rm -f ${_P} ${_PROGDEBUG.${_P}} |
|
| |
|
| .if defined(OBJS.${_P}) && !empty(OBJS.${_P}) |
.if defined(OBJS.${_P}) && !empty(OBJS.${_P}) |
| cleanobjs: cleanobjs-${_P} |
CLEANFILES+= ${OBJS.${_P}} ${LOBJS.${_P}} |
| cleanobjs-${_P}: |
|
| rm -f ${OBJS.${_P}} ${LOBJS.${_P}} |
|
| .endif |
.endif |
| |
|
| _PROG_INSTALL+= proginstall-${_P} |
_PROG_INSTALL+= proginstall-${_P} |
| Line 414 lint-${_P}: ${LOBJS.${_P}} |
|
| Line 406 lint-${_P}: ${LOBJS.${_P}} |
|
| |
|
| .if defined(OBJS) && !empty(OBJS) && \ |
.if defined(OBJS) && !empty(OBJS) && \ |
| (empty(PROGS) && empty(PROGS_CXX)) |
(empty(PROGS) && empty(PROGS_CXX)) |
| cleanobjs: cleanobjs-plain |
CLEANFILES+= ${OBJS} ${LOBJS} |
| cleanobjs-plain: |
|
| rm -f ${OBJS} ${LOBJS} |
|
| .endif |
.endif |
| |
|
| .if !target(proginstall) |
.if !target(proginstall) |
| Line 476 LINKSMODE?= ${BINMODE} |
|
| Line 466 LINKSMODE?= ${BINMODE} |
|
| .include <bsd.sys.mk> |
.include <bsd.sys.mk> |
| .include <bsd.dep.mk> |
.include <bsd.dep.mk> |
| .include <bsd.clang-analyze.mk> |
.include <bsd.clang-analyze.mk> |
| |
.include <bsd.clean.mk> |
| cleanextra: .PHONY |
|
| .if defined(CLEANFILES) && !empty(CLEANFILES) |
|
| rm -f ${CLEANFILES} |
|
| .endif |
|
| |
|
| ${TARGETS}: # ensure existence |
${TARGETS}: # ensure existence |
| |
|