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.3 93/05/14 15:09:13 rvb
30 # .cf -> .bnr
31 # [93/05/14 rvb]
32 #
33 # Revision 2.2 93/05/10 17:45:25 rvb
34 # Revised for bsdss
35 # [93/05/04 16:51:01 rvb]
36 #
37 # Revision 2.21 93/01/24 13:55:02 danner
38 # Created for Reno make
39 # [91/05/17 mrt]
40 #
41
42 .SUFFIXES: .bnr .mk
43 .if defined(MACH_SRC)
44 .PATH: ${.CURDIR} ${MACH_SRC:S/$/\/kernel\/conf/g}
45 ISRC= -I${.CURDIR} ${MACH_SRC:S/^/-I/g:S/$/\/kernel\/conf/g}
46 .else
47 ISRC= -I${.CURDIR}
48 .endif
49
50 CONFIG?= STD+WS
51
52 all: config_pgm ${CONFIG}/Makefile
53
54 config_pgm:
55 @cd ${.CURDIR}/../../config; make
56 .if !exists(${CONFIG})
57 mkdir ${CONFIG}
58 .endif
59
60
61
62 ${CONFIG}/Makefile: template.mk ${MACHINE}/template.mk ${CONFIG}/${CONFIG}
63 cd ${CONFIG}; ../../config/config ${ISRC} -c . ${CONFIG}
64
65 ${CONFIG}/${CONFIG}: ${MACHINE}/MASTER.bnr ${MACHINE}/MASTER.local.bnr \
66 MASTER.bnr MASTER.local.bnr \
67 files.bnr ${MACHINE}/files.bnr
68
69 cpp -DSTD -DWS ${ISRC} ${.ALLSRC:S/^/XX/:MXX*:S/XX//} \
70 | sed -e '/^$$/d' -e '/^# /d' > ${CONFIG}/${CONFIG}
71 echo >${CONFIG}/vers.config ${CONFIG}
72
73
74 clean:
75 rm -f ${CONFIG}/${CONFIG} ${CONFIG}/vers.config
Cache object: 55dbecb9cfb2306556a867de98fc1795
|