1 --- freeswan-1.97/Makefile Fri Apr 12 06:08:31 2002
2 +++ freeswan-1.97/Makefile.org Fri May 3 12:42:39 2002
6 # everything that's necessary to put Klips into the kernel
7 -insert: patches klink klipsdefaults
8 +.NOTPARALLEL: myprecheck patches klink klipsdefaults
9 +insert: myprecheck patches klink klipsdefaults
11 # create KERNELKLIPS and populate it with symlinks to the sources
14 POST=confcheck programs install kernel
15 MPOST=confcheck programs install module
16 RPOST=confcheck programs rpminstall module rpmkinstall rpms
17 +KMPOST=confcheck programs install kmodule
19 ogo: $(PRE) pcf $(POST)
20 oldgo: $(PRE) ocf $(POST)
21 menugo: $(PRE) mcf $(POST)
23 oldrpm: $(PRE) ocf $(RPOST)
24 menurpm: $(PRE) mcf $(RPOST)
25 xrpm: $(PRE) xcf $(RPOST)
26 +modgo: $(PRE) ncf $(KMPOST)
31 echo '*** please do that first; the results are necessary.' ; \
37 + -cd $(KERNELSRC) ; yes "" | $(MAKE) oldconfig; $(MAKE) include/linux/version.h
40 # set version code if this is a fresh CVS checkout
44 -cd $(KERNELSRC) ; $(MAKE) $(KERNMAKEOPTS) oldconfig dep </dev/null >/dev/null
47 +ENTER := "M\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n"
49 + -cd $(KERNELSRC); echo -e $(ENTER) | $(MAKE) oldconfig
52 + -cd $(KERNELSRC); $(MAKE) dep kernel
57 mkdir -p ${RPMKERNDIR}
62 $(MAKE) $(KERNMAKEOPTS) modules 2>&1 ) | tee -a out.kbuild ; \
65 + utils/errcheck out.kbuild
67 + # kernel building, with error checks
69 + rm -f out.kbuild out.kinstall
70 + cp -pf Makefile.ipsec $(KERNELSRC)/net/ipsec/
71 + #( cd $(KERNELSRC) ; $(MAKE) dep kernel) 2>&1 | tee out.kbuild
72 + @if egrep -q '^CONFIG_MODULES=y' $(KCFILE) ; \
74 + ( cd $(KERNELSRC)/net/ipsec ; \
75 + ln -sf ../../arch .; ln -sf ../../Rules.make .; cd ../..; \
76 + $(MAKE) -C net/ipsec -f Makefile.ipsec 2>&1 ) | tee -a out.kbuild ; \
77 + rm $(KERNELSRC)/net/ipsec/arch $(KERNELSRC)/net/ipsec/Rules.make; \
79 + echo "BUG: You have to enable modules!"; \
82 utils/errcheck out.kbuild