/usr/src/openswan-2.6.38/packaging/makefiles/module26.make is in openswan-modules-dkms 1:2.6.38-1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 | # I really am not happy about using symlinks to make this work.
#
# I think that there should be a better way to do this.
# see module26.sh in packaging/makefiles
#
ifndef OPENSWANSRCDIR
$(error You Must set OPENSWANSRCDIR)
endif
include ${OPENSWANSRCDIR}/Makefile.inc
KLIPS_TOP := ${OPENSWANSRCDIR}/linux
# include file with .h-style macros that would otherwise be created by
# config. Must occur before other includes.
ifneq ($(strip $(MODULE_EXTRA_INCLUDE)),)
EXTRA_CFLAGS += -include ${MODULE_EXTRA_INCLUDE}
endif
ifneq ($(strip $(MODULE_DEF_INCLUDE)),)
EXTRA_CFLAGS += -include ${MODULE_DEF_INCLUDE}
endif
# Enable DISABLE_UDP_CHECKSUM for KLIPS, see bug #601
EXTRA_CFLAGS += -DDISABLE_UDP_CHECKSUM
EXTRA_CFLAGS += -I${KLIPS_TOP}/include
EXTRA_CFLAGS += -I${KLIPSSRC}/.
# build version.c using version number from Makefile.ver
${BUILDDIR}/version.c: ${KLIPSSRC}/version.in.c ${OPENSWANSRCDIR}/Makefile.ver
sed '/"/s/@IPSECVERSION@/$(IPSECVERSION)/' ${KLIPSSRC}/version.in.c >$@
${BUILDDIR}/%.c : ${KLIPSSRC}/%.c
ln -s -f $< $@
${BUILDDIR}/%.h : ${KLIPSSRC}/%.h
ln -s -f $< $@
${BUILDDIR}/%.c : ${KLIPSSRC}/des/%.c
ln -s -f $< $@
${BUILDDIR}/%.S : ${KLIPSSRC}/des/%.S
ln -s -f $< $@
${BUILDDIR}/%.c : ${KLIPSSRC}/aes/%.c
ln -s -f $< $@
${BUILDDIR}/%.c : ${KLIPSSRC}/alg/%.c
ln -s -f $< $@
.PRECIOUS: ${BUILDDIR}/%.c ${BUILDDIR}/%.h
# I'm not fixing this in a better way, because we should use the
# in-kernel zlib!
${BUILDDIR}/deflate.c: ${BUILDDIR}/deflate.h
${BUILDDIR}/infblock.c: ${BUILDDIR}/infblock.h ${BUILDDIR}/inftrees.h
${BUILDDIR}/infblock.c: ${BUILDDIR}/infcodes.h ${BUILDDIR}/infutil.h
${BUILDDIR}/infcodes.c: ${BUILDDIR}/inffast.h
${BUILDDIR}/inftrees.c: ${BUILDDIR}/inffixed.h
${BUILDDIR}/trees.c: ${BUILDDIR}/trees.h
MODULE26=true
include ${OPENSWANSRCDIR}/packaging/makefiles/module.defs
ifneq ($(strip $(MODULE_DEFCONFIG)),)
include ${MODULE_DEFCONFIG}
endif
include ${KLIPSSRC}/Makefile.fs2_6
|