1996-08-10 08:01:29 +04:00
|
|
|
# $NetBSD: Makefile.inc,v 1.9 1996/08/10 04:01:29 mycroft Exp $
|
1995-06-25 00:15:55 +04:00
|
|
|
#
|
|
|
|
# NOTE: $S must correspond to the top of the 'sys' tree
|
|
|
|
|
|
|
|
COMPATDIR= $S/compat/common
|
|
|
|
|
1996-08-08 19:06:39 +04:00
|
|
|
COMPATDST?= ${.OBJDIR}/lib/compat
|
1995-06-25 00:15:55 +04:00
|
|
|
COMPATLIB= ${COMPATDST}/libcompat.a
|
|
|
|
COMPATLIB_PROF= ${COMPATDST}/libcompat_p.a
|
|
|
|
|
1996-02-02 23:34:38 +03:00
|
|
|
COMPATMAKE= \
|
1996-08-08 19:06:39 +04:00
|
|
|
cd ${COMPATDIR} && MAKEOBJDIR=${COMPATDST} ${MAKE} \
|
1996-05-20 21:23:25 +04:00
|
|
|
CC='${CC}' CFLAGS='${CFLAGS}' \
|
|
|
|
LD='${LD}' \
|
1996-08-10 08:01:29 +04:00
|
|
|
COMPATCPPFLAGS='${CPPFLAGS:S@^-I.$@-I${.OBJDIR}@}'
|
1996-02-02 23:34:38 +03:00
|
|
|
|
1995-06-25 00:15:55 +04:00
|
|
|
${COMPATLIB}: .NOTMAIN __always_make_compatlib
|
|
|
|
@echo making sure the compat library is up to date...
|
1996-02-02 23:34:38 +03:00
|
|
|
@${COMPATMAKE} libcompat.a
|
1995-06-25 00:15:55 +04:00
|
|
|
|
|
|
|
${COMPATLIB_PROF}: .NOTMAIN __always_make_compatlib
|
|
|
|
@echo making sure the profiled compat library is up to date...
|
1996-02-02 23:34:38 +03:00
|
|
|
@${COMPATMAKE} libcompat_p.a
|
1995-06-25 00:15:55 +04:00
|
|
|
|
|
|
|
clean:: .NOTMAIN __always_make_compatlib
|
|
|
|
@echo cleaning the compat library objects
|
1996-02-02 23:34:38 +03:00
|
|
|
@${COMPATMAKE} clean
|
1995-06-25 00:15:55 +04:00
|
|
|
|
1996-05-11 20:11:30 +04:00
|
|
|
depend:: .NOTMAIN __always_make_compatlib
|
|
|
|
@echo depending the compat library objects
|
|
|
|
@${COMPATMAKE} depend
|
|
|
|
|
1995-06-25 00:15:55 +04:00
|
|
|
__always_make_compatlib: .NOTMAIN
|
1996-02-02 23:34:38 +03:00
|
|
|
@mkdir -p ${COMPATDST}
|