Tue Jun 5 00:58:17 2018 UTC ()
use the standard rules, instead of rolling our own.


(christos)
diff -r1.63 -r1.64 src/sys/compat/common/Makefile

cvs diff -r1.63 -r1.64 src/sys/compat/common/Attic/Makefile (expand / switch to unified diff)

--- src/sys/compat/common/Attic/Makefile 2017/12/20 04:46:19 1.63
+++ src/sys/compat/common/Attic/Makefile 2018/06/05 00:58:17 1.64
@@ -1,37 +1,31 @@ @@ -1,37 +1,31 @@
1# $NetBSD: Makefile,v 1.63 2017/12/20 04:46:19 maya Exp $ 1# $NetBSD: Makefile,v 1.64 2018/06/05 00:58:17 christos Exp $
2 2
3LIB= compat 3LIB= compat
4NOPIC= # defined 4NOPIC= # defined
5LLIBS= # defined 5LLIBS= # defined
6 6
7CPPFLAGS= ${COMPATCPPFLAGS} ${SKIP_AUTODEP::=} 7CPPFLAGS= ${COMPATCPPFLAGS} ${SKIP_AUTODEP::=}
8 8
9.PATH.c: ${COMPATDIR} 9.PATH.c: ${COMPATDIR}
10 10
11# Common compatibility code, used by all emulations 11# Common compatibility code, used by all emulations
12SRCS= compat_exec.c 12SRCS= compat_exec.c
13 13
14# Include compatibility code common to libcompat and the compat module 14# Include compatibility code common to libcompat and the compat module
15 15
16.include "Makefile.sysio" 16.include "Makefile.sysio"
17.include "Makefile.sysv" 17.include "Makefile.sysv"
18 18
19# only needed during build 19# only needed during build
20libinstall:: 20libinstall::
21 21
22.include <bsd.own.mk> 22.include <bsd.own.mk>
23.undef DESTDIR 23.undef DESTDIR
24.include <bsd.lib.mk> 24.include <bsd.lib.mk>
25 25
26lib${LIB}.o:: ${OBJS:O} 26lib${LIB}.o:: ${OBJS:O} __buildstdlib
27 @echo building standard ${LIB} library 27
28 @rm -f lib${LIB}.o 28lib${LIB}.po:: ${POBJS:O} __buildproflib
29 @${LD} -r -o lib${LIB}.o ${LDFLAGS} `NM=${NM} ${LORDER} ${OBJS} | ${TSORT}` 
30 
31lib${LIB}.po:: ${POBJS:O} 
32 @echo building profiled ${LIB} library 
33 @rm -f lib${LIB}.po 
34 @${LD} -r -o lib${LIB}.po ${LDFLAGS} `NM=${NM} ${LORDER} ${POBJS} | ${TSORT}` 
35 29
36showsources: ${SRCS} 30showsources: ${SRCS}
37 @echo ${.ALLSRC} 31 @echo ${.ALLSRC}