version 1.184, 2003/09/12 07:44:11 |
version 1.185, 2003/09/13 02:52:05 |
|
|
.include <bsd.shlib.mk> |
.include <bsd.shlib.mk> |
.include <bsd.gcc.mk> |
.include <bsd.gcc.mk> |
|
|
|
.if defined(PROG_CXX) |
|
PROG= ${PROG_CXX} |
|
.endif |
|
|
##### Basic targets |
##### Basic targets |
.PHONY: cleanextra cleanobjs cleanprog proginstall scriptsinstall |
.PHONY: cleanextra cleanobjs cleanprog proginstall scriptsinstall |
realinstall: proginstall scriptsinstall |
realinstall: proginstall scriptsinstall |
clean: cleanprog |
clean: cleanprog |
|
|
|
##### PROG specific flags. |
|
COPTS+= ${COPTS.${PROG}} |
|
CPPFLAGS+= ${CPPFLAGS.${PROG}} |
|
CXXFLAGS+= ${CXXFLAGS.${PROG}} |
|
LDADD+= ${LDADD.${PROG}} |
|
|
##### Default values |
##### Default values |
CPPFLAGS+= ${DESTDIR:D-nostdinc ${CPPFLAG_ISYSTEM} ${DESTDIR}/usr/include} |
CPPFLAGS+= ${DESTDIR:D-nostdinc ${CPPFLAG_ISYSTEM} ${DESTDIR}/usr/include} |
CXXFLAGS+= ${DESTDIR:D-nostdinc++ ${CPPFLAG_ISYSTEMXX} ${DESTDIR}/usr/include/g++} |
CXXFLAGS+= ${DESTDIR:D-nostdinc++ ${CPPFLAG_ISYSTEMXX} ${DESTDIR}/usr/include/g++} |
Line 97 CLEANFILES+=strings |
|
Line 107 CLEANFILES+=strings |
|
@rm -f x.cc |
@rm -f x.cc |
.endif |
.endif |
|
|
.if defined(PROG_CXX) |
|
PROG= ${PROG_CXX} |
|
.endif |
|
|
|
.if defined(PROG) |
.if defined(PROG) |
.if defined(PROG_CXX) |
.if defined(PROG_CXX) |
SRCS?= ${PROG}.cc |
SRCS?= ${PROG}.cc |