Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 102 lines (90 sloc) 2.749 kb
1f8d743f »
1999-10-30 make default TARGET to "bogus" to raise errors on all platforms.
1 TARGET?= bogus
81d94437 »
2000-08-30 make autobuild
2 ARCH?= i386
bee093c2 »
2001-01-10 netbsd uses GENERIC.KAME
3 .if ${TARGET} == "freebsd4" || ${TARGET} == "openbsd" || ${TARGET} == "netbsd"
81d94437 »
2000-08-30 make autobuild
4 KERNCONF?= GENERIC.KAME
5 .else
6 KERNCONF?= GENERIC.v6
7 .endif
8714844e »
1999-08-01 support .prepare file.
8
6804810f »
2001-01-10 ?= for DEVELOPER
9 DEVELOPER?= NO
c0a2c526 »
2000-02-14 non-developer should use anoncvs.kame.net (need more work for migrati…
10 .if ${DEVELOPER} == "YES"
11 CVSHOST= cvs.kame.net
12 .else
13 CVSHOST= anoncvs.kame.net
14 .endif
15
5bd5efb7 »
1999-10-30 warn if the user simply typed in "make".
16 all:
17 @(echo '**** WARNING: Read through INSTALL and platform/INSTALL, '; \
18 echo ' and follow the steps documented'.; \
19 exit 1)
20
8714844e »
1999-08-01 support .prepare file.
21 prepare::
d536b600 »
1999-08-26 add "cd .CURDIR" to all cvs operations-what a mess!
22 (cd ${.CURDIR}; perl prepare.pl kame ${TARGET})
c8c621cc »
1999-08-09 add targets: bsdi3 and bsdi4
23
88063188 »
1999-08-12 add clean target, which nukes symlinks.
24 clean::
d536b600 »
1999-08-26 add "cd .CURDIR" to all cvs operations-what a mess!
25 (cd ${.CURDIR}; find ${TARGET} -type l -print | perl -nle unlink)
88063188 »
1999-08-12 add clean target, which nukes symlinks.
26
c8c621cc »
1999-08-09 add targets: bsdi3 and bsdi4
27 # only for developers
28 bsdi3:
7f18c741 »
1999-12-21 fix typo (in bsdi3/bsdi4 rule)
29 (cd ${.CURDIR}; set CVSROOT=cvs.kame.net:/cvsroot/kame-local; export CVSROOT; cvs -d cvs.kame.net:/cvsroot/kame-local co -d bsdi3 -P kame/bsdi3)
c8c621cc »
1999-08-09 add targets: bsdi3 and bsdi4
30
31 bsdi4:
7f18c741 »
1999-12-21 fix typo (in bsdi3/bsdi4 rule)
32 (cd ${.CURDIR}; set CVSROOT=cvs.kame.net:/cvsroot/kame-local; export CVSROOT; cvs -d cvs.kame.net:/cvsroot/kame-local co -d bsdi4 -P kame/bsdi4)
273f315d »
1999-08-12 "update", "update-doc" and "update-plat" targets.
33
7138d85d »
2000-03-30 add freeebsd4 on PLAT.
34 PLAT= freebsd2 freebsd3 freebsd4 kame netbsd openbsd bsdi3 bsdi4
b418f57f »
2000-01-02 share definition of DOCS between top-level Makefile and platform/Make…
35 # DOCS is defined in Makefile.inc
36 TOOLS= Makefile Makefile.inc prepare.pl
273f315d »
1999-08-12 "update", "update-doc" and "update-plat" targets.
37
38 update: update-doc update-plat
39 update-doc:
b418f57f »
2000-01-02 share definition of DOCS between top-level Makefile and platform/Make…
40 (cd ${.CURDIR}; cvs update -d -P ${DOCS} ${TOOLS})
273f315d »
1999-08-12 "update", "update-doc" and "update-plat" targets.
41 update-plat:
d536b600 »
1999-08-26 add "cd .CURDIR" to all cvs operations-what a mess!
42 (cd ${.CURDIR}; \
88063188 »
1999-08-12 add clean target, which nukes symlinks.
43 for i in kame ${TARGET}; do \
659f88f4 »
1999-08-12 "make update-plat" will update kame/kame and kame/TARGET.
44 if test -d $$i; then \
45 (cd $$i; cvs update -d -P); \
46 fi \
d536b600 »
1999-08-26 add "cd .CURDIR" to all cvs operations-what a mess!
47 done)
659f88f4 »
1999-08-12 "make update-plat" will update kame/kame and kame/TARGET.
48 update-all: update-doc
d536b600 »
1999-08-26 add "cd .CURDIR" to all cvs operations-what a mess!
49 (cd ${.CURDIR}; \
88063188 »
1999-08-12 add clean target, which nukes symlinks.
50 for i in ${PLAT}; do \
273f315d »
1999-08-12 "update", "update-doc" and "update-plat" targets.
51 if test -d $$i; then \
52 (cd $$i; cvs update -d -P); \
53 fi \
d536b600 »
1999-08-26 add "cd .CURDIR" to all cvs operations-what a mess!
54 done)
a5f18738 »
1999-08-13 "make tree" which ease the checkout process (as well as tar.gz genera…
55
aee47dc0 »
2000-01-02 top-level "Makefile.inc" is required to be checked out.
56 # % cvs co kame/Makefile kame/Makefile.inc
a5f18738 »
1999-08-13 "make tree" which ease the checkout process (as well as tar.gz genera…
57 # % cd kame
58 # % make TARGET=foo tree
59 tree:
d536b600 »
1999-08-26 add "cd .CURDIR" to all cvs operations-what a mess!
60 (cd ${.CURDIR}; \
61 $(MAKE) update-doc; \
a5f18738 »
1999-08-13 "make tree" which ease the checkout process (as well as tar.gz genera…
62 if test $(TARGET) = bsdi3 -o $(TARGET) = bsdi4; then \
63 $(MAKE) $(TARGET); \
64 else \
65 cvs update -d -P $(TARGET); \
d536b600 »
1999-08-26 add "cd .CURDIR" to all cvs operations-what a mess!
66 fi; \
67 cvs update -d -P kame)
b418f57f »
2000-01-02 share definition of DOCS between top-level Makefile and platform/Make…
68
81d94437 »
2000-08-30 make autobuild
69 # use it with caution - must be root for "make includes"
70 autobuild:
dde60d71 »
2001-01-10 have uname -a at the beginning of autobuild
71 @uname -a
72 @echo -n '${.TARGET} started at '
73 @date
81d94437 »
2000-08-30 make autobuild
74 (cd ${.CURDIR}; ${MAKE} clean update prepare)
75 (cd ${.CURDIR}/${TARGET}; ${MAKE} clean)
76 case ${TARGET} in \
77 bsdi*|freebsd*) \
78 (cd ${.CURDIR}/${TARGET}; ${MAKE} includes); \
79 (cd ${.CURDIR}/${TARGET}; ${MAKE} install-includes); \
80 ;; \
81 netbsd*|openbsd*) \
82 (cd ${.CURDIR}/${TARGET}; ${MAKE} includes); \
83 ;; \
84 esac
85 (cd ${.CURDIR}/${TARGET}; ${MAKE})
86 case ${TARGET} in \
87 bsdi*|freebsd*) \
1e594e6d »
2000-09-09 on autobuild, nuke kernel build tree before doing anything
88 (cd ${.CURDIR}/${TARGET}/sys/compile; /bin/rm -fr ${KERNCONF}); \
81d94437 »
2000-08-30 make autobuild
89 (cd ${.CURDIR}/${TARGET}/sys/${ARCH}/conf; config ${KERNCONF}); \
1e594e6d »
2000-09-09 on autobuild, nuke kernel build tree before doing anything
90 (cd ${.CURDIR}/${TARGET}/sys/compile/${KERNCONF}; ${MAKE} depend; ${MAKE}); \
81d94437 »
2000-08-30 make autobuild
91 ;; \
92 netbsd*|openbsd*) \
1e594e6d »
2000-09-09 on autobuild, nuke kernel build tree before doing anything
93 (cd ${.CURDIR}/${TARGET}/sys/arch/${ARCH}/compile; /bin/rm -fr ${KERNCONF}); \
81d94437 »
2000-08-30 make autobuild
94 (cd ${.CURDIR}/${TARGET}/sys/arch/${ARCH}/conf; config ${KERNCONF}); \
1e594e6d »
2000-09-09 on autobuild, nuke kernel build tree before doing anything
95 (cd ${.CURDIR}/${TARGET}/sys/arch/${ARCH}/compile/${KERNCONF}; ${MAKE} depend; ${MAKE}); \
81d94437 »
2000-08-30 make autobuild
96 ;; \
97 esac
b0cb3bcb »
2001-01-11 print done
98 @echo -n '${.TARGET} done at '
99 @date
81d94437 »
2000-08-30 make autobuild
100
b418f57f »
2000-01-02 share definition of DOCS between top-level Makefile and platform/Make…
101 .include "Makefile.inc"
Something went wrong with that request. Please try again.