Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Newer
Older
100644 122 lines (108 sloc) 3.136 kB
1f8d743 make default TARGET to "bogus" to raise errors on all platforms.
itojun authored
1 TARGET?= bogus
81d9443 make autobuild
itojun authored
2 ARCH?= i386
f21fe21 try MIP6 again on netbsd/openbsd.
keiichi authored
3 .if ${TARGET} == "freebsd4" || ${TARGET} == "openbsd" || ${TARGET} == "netbsd"
a4d324d - stop MIP6 buildlab check for a while.
keiichi authored
4 KERNCONF?= GENERIC.KAME
f21fe21 try MIP6 again on netbsd/openbsd.
keiichi authored
5 .elif ${TARGET} == "bsdi4"
81d9443 make autobuild
itojun authored
6 KERNCONF?= GENERIC.KAME
7 .else
8 KERNCONF?= GENERIC.v6
9 .endif
8714844 support .prepare file.
itojun authored
10
6804810 ?= for DEVELOPER
itojun authored
11 DEVELOPER?= NO
c0a2c52 non-developer should use anoncvs.kame.net (need more work for migrati…
itojun authored
12 .if ${DEVELOPER} == "YES"
13 CVSHOST= cvs.kame.net
14 .else
15 CVSHOST= anoncvs.kame.net
16 .endif
17
5bd5efb warn if the user simply typed in "make".
itojun authored
18 all:
19 @(echo '**** WARNING: Read through INSTALL and platform/INSTALL, '; \
20 echo ' and follow the steps documented'.; \
21 exit 1)
22
8714844 support .prepare file.
itojun authored
23 prepare::
d536b60 add "cd .CURDIR" to all cvs operations-what a mess!
itojun authored
24 (cd ${.CURDIR}; perl prepare.pl kame ${TARGET})
c8c621c add targets: bsdi3 and bsdi4
itojun authored
25
8806318 add clean target, which nukes symlinks.
itojun authored
26 clean::
d536b60 add "cd .CURDIR" to all cvs operations-what a mess!
itojun authored
27 (cd ${.CURDIR}; find ${TARGET} -type l -print | perl -nle unlink)
8806318 add clean target, which nukes symlinks.
itojun authored
28
c8c621c add targets: bsdi3 and bsdi4
itojun authored
29 # only for developers
30 bsdi3:
86894a4 remove the need for rsh/rlogin.
itojun authored
31 (cd ${.CURDIR}; set CVSROOT=/cvsroot/kame-local; export CVSROOT; cvs -d /cvsroot/kame-local co -d bsdi3 -P kame/bsdi3)
c8c621c add targets: bsdi3 and bsdi4
itojun authored
32
33 bsdi4:
86894a4 remove the need for rsh/rlogin.
itojun authored
34 (cd ${.CURDIR}; set CVSROOT=/cvsroot/kame-local; export CVSROOT; cvs -d /cvsroot/kame-local co -d bsdi4 -P kame/bsdi4)
273f315 "update", "update-doc" and "update-plat" targets.
itojun authored
35
7138d85 add freeebsd4 on PLAT.
sumikawa authored
36 PLAT= freebsd2 freebsd3 freebsd4 kame netbsd openbsd bsdi3 bsdi4
b418f57 share definition of DOCS between top-level Makefile and platform/Make…
itojun authored
37 # DOCS is defined in Makefile.inc
38 TOOLS= Makefile Makefile.inc prepare.pl
273f315 "update", "update-doc" and "update-plat" targets.
itojun authored
39
40 update: update-doc update-plat
41 update-doc:
b418f57 share definition of DOCS between top-level Makefile and platform/Make…
itojun authored
42 (cd ${.CURDIR}; cvs update -d -P ${DOCS} ${TOOLS})
273f315 "update", "update-doc" and "update-plat" targets.
itojun authored
43 update-plat:
d536b60 add "cd .CURDIR" to all cvs operations-what a mess!
itojun authored
44 (cd ${.CURDIR}; \
8806318 add clean target, which nukes symlinks.
itojun authored
45 for i in kame ${TARGET}; do \
659f88f "make update-plat" will update kame/kame and kame/TARGET.
itojun authored
46 if test -d $$i; then \
47 (cd $$i; cvs update -d -P); \
48 fi \
d536b60 add "cd .CURDIR" to all cvs operations-what a mess!
itojun authored
49 done)
659f88f "make update-plat" will update kame/kame and kame/TARGET.
itojun authored
50 update-all: update-doc
d536b60 add "cd .CURDIR" to all cvs operations-what a mess!
itojun authored
51 (cd ${.CURDIR}; \
8806318 add clean target, which nukes symlinks.
itojun authored
52 for i in ${PLAT}; do \
273f315 "update", "update-doc" and "update-plat" targets.
itojun authored
53 if test -d $$i; then \
54 (cd $$i; cvs update -d -P); \
55 fi \
d536b60 add "cd .CURDIR" to all cvs operations-what a mess!
itojun authored
56 done)
a5f1873 "make tree" which ease the checkout process (as well as tar.gz genera…
itojun authored
57
aee47dc top-level "Makefile.inc" is required to be checked out.
itojun authored
58 # % cvs co kame/Makefile kame/Makefile.inc
a5f1873 "make tree" which ease the checkout process (as well as tar.gz genera…
itojun authored
59 # % cd kame
60 # % make TARGET=foo tree
61 tree:
d536b60 add "cd .CURDIR" to all cvs operations-what a mess!
itojun authored
62 (cd ${.CURDIR}; \
63 $(MAKE) update-doc; \
a5f1873 "make tree" which ease the checkout process (as well as tar.gz genera…
itojun authored
64 if test $(TARGET) = bsdi3 -o $(TARGET) = bsdi4; then \
65 $(MAKE) $(TARGET); \
66 else \
67 cvs update -d -P $(TARGET); \
d536b60 add "cd .CURDIR" to all cvs operations-what a mess!
itojun authored
68 fi; \
69 cvs update -d -P kame)
b418f57 share definition of DOCS between top-level Makefile and platform/Make…
itojun authored
70
81d9443 make autobuild
itojun authored
71 # use it with caution - must be root for "make includes"
72 autobuild:
dde60d7 have uname -a at the beginning of autobuild
itojun authored
73 @uname -a
74 @echo -n '${.TARGET} started at '
75 @date
81d9443 make autobuild
itojun authored
76 (cd ${.CURDIR}; ${MAKE} clean update prepare)
77 (cd ${.CURDIR}/${TARGET}; ${MAKE} clean)
78 case ${TARGET} in \
79 bsdi*|freebsd*) \
80 (cd ${.CURDIR}/${TARGET}; ${MAKE} includes); \
81 (cd ${.CURDIR}/${TARGET}; ${MAKE} install-includes); \
82 ;; \
83 netbsd*|openbsd*) \
84 (cd ${.CURDIR}/${TARGET}; ${MAKE} includes); \
85 ;; \
86 esac
87 (cd ${.CURDIR}/${TARGET}; ${MAKE})
88 case ${TARGET} in \
89 bsdi*|freebsd*) \
971ad36 run foreach for $KERNCONF
itojun authored
90 for i in ${KERNCONF}; do \
91 (cd ${.CURDIR}/${TARGET}/sys/compile; /bin/rm -fr $$i); \
92 (cd ${.CURDIR}/${TARGET}/sys/${ARCH}/conf; config $$i); \
93 (cd ${.CURDIR}/${TARGET}/sys/compile/$$i; ${MAKE} depend; ${MAKE}); \
94 done; \
81d9443 make autobuild
itojun authored
95 ;; \
96 netbsd*|openbsd*) \
971ad36 run foreach for $KERNCONF
itojun authored
97 for i in ${KERNCONF}; do \
98 (cd ${.CURDIR}/${TARGET}/sys/arch/${ARCH}/compile; /bin/rm -fr $$i); \
99 (cd ${.CURDIR}/${TARGET}/sys/arch/${ARCH}/conf; config $$i); \
100 (cd ${.CURDIR}/${TARGET}/sys/arch/${ARCH}/compile/$$i; ${MAKE} depend; ${MAKE}); \
101 done; \
81d9443 make autobuild
itojun authored
102 ;; \
103 esac
b0cb3bc print done
itojun authored
104 @echo -n '${.TARGET} done at '
105 @date
ada26aa touch cookie file if autobuild goes okay.
itojun authored
106 .if defined(AUTOBUILD_COOKIE)
107 touch ${AUTOBUILD_COOKIE}
108 .endif
81d9443 make autobuild
itojun authored
109
cd1b07d "make copyright.c" will generate WIDE copyright template.
itojun authored
110 copyright.c: COPYRIGHT
bfcc340 escape $KAME$
itojun authored
111 (echo '/*\t\044KAME\044\t*/' | unvis; \
cd1b07d "make copyright.c" will generate WIDE copyright template.
itojun authored
112 echo; \
113 echo '/*'; \
bfcc340 escape $KAME$
itojun authored
114 sed -e 's,^, * ,' -e 's, *$$,,' < COPYRIGHT; \
cd1b07d "make copyright.c" will generate WIDE copyright template.
itojun authored
115 echo ' */') > ${.TARGET}
116
87abfc5 IMPLEMENTATION.toc target generates TOC of IMPLEMENTATION.
itojun authored
117 IMPLEMENTATION.toc: IMPLEMENTATION
1759722 forgot to redirect output to IMPLEMENTATION.toc
itojun authored
118 sed -e '/^[0-9][0-9\.]* [a-zA-Z]/!d' -e 's/^/ /' \
119 <IMPLEMENTATION >IMPLEMENTATION.toc
120
b418f57 share definition of DOCS between top-level Makefile and platform/Make…
itojun authored
121 .include "Makefile.inc"
Something went wrong with that request. Please try again.