1996-05-20 21:23:25 +04:00
|
|
|
# $NetBSD: Makefile.inc,v 1.5 1996/05/20 17:23:59 mrg 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-02-02 23:34:38 +03:00
|
|
|
COMPATDST?= lib/compat
|
|
|
|
COMPATREL?= ../../
|
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= \
|
|
|
|
cd ${COMPATDST} && ${MAKE} -f ${COMPATREL}${COMPATDIR}/Makefile \
|
1996-05-20 21:23:25 +04:00
|
|
|
CC='${CC}' CFLAGS='${CFLAGS}' \
|
|
|
|
LD='${LD}' \
|
|
|
|
COMPATCPPFLAGS='${CPPFLAGS}' \
|
|
|
|
COMPATREL='${COMPATREL}' \
|
|
|
|
COMPATDIR='${COMPATDIR}'
|
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}
|