| version 1.137, 2001/10/19 15:55:52 |
version 1.138, 2001/11/02 05:21:51 |
|
|
| # $NetBSD$ |
# $NetBSD$ |
| # @(#)bsd.prog.mk 8.2 (Berkeley) 4/2/94 |
# @(#)bsd.prog.mk 8.2 (Berkeley) 4/2/94 |
| |
|
| .if !target(__initialized__) |
.include <bsd.init.mk> |
| __initialized__: |
|
| .if exists(${.CURDIR}/../Makefile.inc) |
|
| .include "${.CURDIR}/../Makefile.inc" |
|
| .endif |
|
| .include <bsd.own.mk> |
|
| .include <bsd.obj.mk> |
|
| .include <bsd.depall.mk> |
|
| .MAIN: all |
|
| .endif |
|
| |
|
| |
##### Basic targets |
| .PHONY: cleanprog proginstall scriptsinstall |
.PHONY: cleanprog proginstall scriptsinstall |
| realinstall: proginstall scriptsinstall |
realinstall: proginstall scriptsinstall |
| clean: cleanprog |
clean: cleanprog |
| |
|
| |
##### Default values |
| CFLAGS+= ${COPTS} |
CFLAGS+= ${COPTS} |
| |
|
| # ELF platforms depend on crtbegin.o and crtend.o |
# ELF platforms depend on crtbegin.o and crtend.o |
| Line 83 LIBWRAP?= ${DESTDIR}/usr/lib/libwrap.a |
|
| Line 76 LIBWRAP?= ${DESTDIR}/usr/lib/libwrap.a |
|
| LIBY?= ${DESTDIR}/usr/lib/liby.a |
LIBY?= ${DESTDIR}/usr/lib/liby.a |
| LIBZ?= ${DESTDIR}/usr/lib/libz.a |
LIBZ?= ${DESTDIR}/usr/lib/libz.a |
| |
|
| |
##### Build and install rules |
| .if defined(SHAREDSTRINGS) |
.if defined(SHAREDSTRINGS) |
| CLEANFILES+=strings |
CLEANFILES+=strings |
| .c.o: |
.c.o: |
|
|
| ${LINT} ${LINTFLAGS} ${LDFLAGS:M-L*} ${LOBJS} ${LDADD} |
${LINT} ${LINTFLAGS} ${LDFLAGS:M-L*} ${LOBJS} ${LDADD} |
| .endif |
.endif |
| |
|
| |
##### Pull in related .mk logic |
| .include <bsd.man.mk> |
.include <bsd.man.mk> |
| .include <bsd.nls.mk> |
.include <bsd.nls.mk> |
| .include <bsd.files.mk> |
.include <bsd.files.mk> |
|
|
| .include <bsd.dep.mk> |
.include <bsd.dep.mk> |
| .include <bsd.sys.mk> |
.include <bsd.sys.mk> |
| |
|
| # Make sure all of the standard targets are defined, even if they do nothing. |
${TARGETS}: # ensure existence |
| regress: |
|