FreeBSD/Linux Kernel Cross Reference
sys/conf/Makefile.bnr
1 #
2 # Mach Operating System
3 # Copyright (c) 199 Carnegie Mellon University
4 # All Rights Reserved.
5 #
6 # Permission to use, copy, modify and distribute this software and its
7 # documentation is hereby granted, provided that both the copyright
8 # notice and this permission notice appear in all copies of the
9 # software, derivative works or modified versions, and any portions
10 # thereof, and that both notices appear in supporting documentation.
11 #
12 # CARNEGIE MELLON ALLOWS FREE USE OF THIS SOFTWARE IN ITS "AS IS"
13 # CONDITION. CARNEGIE MELLON DISCLAIMS ANY LIABILITY OF ANY KIND FOR
14 # ANY DAMAGES WHATSOEVER RESULTING FROM THE USE OF THIS SOFTWARE.
15 #
16 # Carnegie Mellon requests users of this software to return to
17 #
18 # Software Distribution Coordinator or Software.Distribution@CS.CMU.EDU
19 # School of Computer Science
20 # Carnegie Mellon University
21 # Pittsburgh PA 15213-3890
22 #
23 # any improvements or extensions that they make and grant Carnegie Mellon
24 # the rights to redistribute these changes.
25 #
26 #
27 # HISTORY
28 # $Log: Makefile.bnr,v $
29 # Revision 2.4 93/12/23 10:00:53 dbg
30 # Upgrade for NetBSD 0.9 and "md".
31 # [93/12/13 rvb]
32 #
33 # Revision 2.3 93/05/14 15:09:13 rvb
34 # .cf -> .bnr
35 # [93/05/14 rvb]
36 #
37 # Revision 2.2 93/05/10 17:45:25 rvb
38 # Revised for bsdss
39 # [93/05/04 16:51:01 rvb]
40 #
41 # Revision 2.21 93/01/24 13:55:02 danner
42 # Created for Reno make
43 # [91/05/17 mrt]
44 #
45
46 .SUFFIXES: .bnr .mk
47
48 PATH= ${.CURDIR} ${MACH_SRC:S/$/\/kernel\/conf/g}
49 .PATH: ${PATH}
50 ISRC= -I${.CURDIR} ${MACH_SRC:S/^/-I/g:S/$/\/kernel\/conf/g}
51
52 CONFIG?= STD+WS
53
54 all: config_pgm ${CONFIG}/Makefile
55
56 config_pgm:
57 @cd ${.CURDIR}/../../config; make
58 .if !exists(${CONFIG})
59 mkdir ${CONFIG}
60 .endif
61
62
63
64 ${CONFIG}/Makefile: template.mk ${MACHINE}/template.mk ${CONFIG}/${CONFIG}
65 cd ${CONFIG}; ../../config/config ${ISRC} -c . ${CONFIG}
66
67 ${CONFIG}/${CONFIG}: ${MACHINE}/MASTER.bnr ${MACHINE}/MASTER.local.bnr \
68 MASTER.bnr MASTER.local.bnr \
69 files.bnr ${MACHINE}/files.bnr
70
71 cpp -DSTD -DWS ${ISRC} ${.ALLSRC:S/^/XX/:MXX*:S/XX//} \
72 | sed -e '/^$$/d' -e '/^# /d' > ${CONFIG}/${CONFIG}
73 echo >${CONFIG}/vers.config ${CONFIG}
74
75
76 clean:
77 rm -f ${CONFIG}/${CONFIG} ${CONFIG}/vers.config
Cache object: de5df32ea2c14ce049edab9907baeb3e
|