version 1.145, 2002/01/01 00:27:06 |
version 1.150, 2002/02/02 16:54:26 |
|
|
.include <bsd.init.mk> |
.include <bsd.init.mk> |
|
|
##### Basic targets |
##### Basic targets |
.PHONY: cleanprog proginstall scriptsinstall |
.PHONY: cleanextra cleanobjs cleanprog proginstall scriptsinstall |
realinstall: proginstall scriptsinstall |
realinstall: proginstall scriptsinstall |
clean: cleanprog |
clean: cleanprog |
|
|
Line 74 LIBSSL?= ${DESTDIR}/usr/lib/libssl.a |
|
Line 74 LIBSSL?= ${DESTDIR}/usr/lib/libssl.a |
|
LIBSL?= ${DESTDIR}/usr/lib/libsl.a |
LIBSL?= ${DESTDIR}/usr/lib/libsl.a |
LIBTERMCAP?= ${DESTDIR}/usr/lib/libtermcap.a |
LIBTERMCAP?= ${DESTDIR}/usr/lib/libtermcap.a |
LIBTELNET?= ${DESTDIR}/usr/lib/libtelnet.a |
LIBTELNET?= ${DESTDIR}/usr/lib/libtelnet.a |
LIBUSB?= ${DESTDIR}/usr/lib/libusb.a |
LIBUSBHID?= ${DESTDIR}/usr/lib/libusbhid.a |
LIBUTIL?= ${DESTDIR}/usr/lib/libutil.a |
LIBUTIL?= ${DESTDIR}/usr/lib/libutil.a |
LIBWRAP?= ${DESTDIR}/usr/lib/libwrap.a |
LIBWRAP?= ${DESTDIR}/usr/lib/libwrap.a |
LIBY?= ${DESTDIR}/usr/lib/liby.a |
LIBY?= ${DESTDIR}/usr/lib/liby.a |
Line 101 CLEANFILES+=strings |
|
Line 101 CLEANFILES+=strings |
|
@rm -f x.C |
@rm -f x.C |
.endif |
.endif |
|
|
|
.if defined(PROG_CXX) |
|
PROG= ${PROG_CXX} |
|
.endif |
|
|
.if defined(PROG) |
.if defined(PROG) |
|
.if defined(PROG_CXX) |
|
SRCS?= ${PROG}.cc |
|
.else |
SRCS?= ${PROG}.c |
SRCS?= ${PROG}.c |
|
.endif |
|
|
DPSRCS+= ${SRCS:M*.[ly]:C/\..$/.c/} |
DPSRCS+= ${SRCS:M*.[ly]:C/\..$/.c/} |
CLEANFILES+= ${DPSRCS} ${YHEADER:D${SRCS:M*.y:.y=.h}} |
CLEANFILES+= ${DPSRCS} ${YHEADER:D${SRCS:M*.y:.y=.h}} |
Line 128 _PROGLDOPTS+= -Wl,-rpath-link,${DESTDIR} |
|
Line 135 _PROGLDOPTS+= -Wl,-rpath-link,${DESTDIR} |
|
|
|
.if defined(PROG_CXX) |
.if defined(PROG_CXX) |
_CCLINK= ${CXX} |
_CCLINK= ${CXX} |
.if defined(HAVE_GCC3) |
|
_SUPCXX= -lstdc++ -lm |
_SUPCXX= -lstdc++ -lm |
.endif |
|
.else |
.else |
_CCLINK= ${CC} |
_CCLINK= ${CC} |
.endif |
.endif |