File: Makefile.fs2_6

package info (click to toggle)
openswan 1%3A2.4.6%2Bdfsg.2-1.1
  • links: PTS
  • area: main
  • in suites: etch-m68k
  • size: 24,996 kB
  • ctags: 16,877
  • sloc: ansic: 121,112; sh: 19,524; xml: 9,699; asm: 4,422; perl: 4,087; makefile: 3,367; tcl: 713; exp: 657; yacc: 396; pascal: 328; lex: 289; sed: 265; awk: 124; lisp: 3
file content (189 lines) | stat: -rw-r--r-- 6,096 bytes parent folder | download | duplicates (2)
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
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
# Makefile for KLIPS kernel code as a module    for 2.6 kernels
#
# Makefile for KLIPS kernel code as a module
# Copyright (C) 1998, 1999, 2000,2001  Richard Guy Briggs.
# Copyright (C) 2002-2004	Michael Richardson <mcr@freeswan.org>
# 
# This program is free software; you can redistribute it and/or modify it
# under the terms of the GNU General Public License as published by the
# Free Software Foundation; either version 2 of the License, or (at your
# option) any later version.  See <http://www.fsf.org/copyleft/gpl.txt>.
# 
# This program is distributed in the hope that it will be useful, but
# WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
# or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
# for more details.
#
# RCSID $Id: Makefile.fs2_6,v 1.8.2.1 2006/04/20 16:33:06 mcr Exp $
#
# Note! Dependencies are done automagically by 'make dep', which also
# removes any old dependencies. DON'T put your own dependencies here
# unless it's something special (ie not a .c file).
#

OPENSWANSRCDIR?=.
KLIPS_TOP?=.

-include ${OPENSWANSRCDIR}/Makefile.ver

base-klips-objs := 

base-klips-objs+= ipsec_init.o ipsec_sa.o ipsec_radij.o radij.o
base-klips-objs+= ipsec_life.o ipsec_proc.o
base-klips-objs+= ipsec_tunnel.o ipsec_xmit.o ipsec_rcv.o ipsec_ipip.o
base-klips-objs+= ipsec_snprintf.o
base-klips-objs+= sysctl_net_ipsec.o 
base-klips-objs+= pfkey_v2.o pfkey_v2_parser.o pfkey_v2_ext_process.o 
base-klips-objs+= version.o

base-klips-objs+= satot.o
base-klips-objs+= addrtot.o
base-klips-objs+= ultot.o 
base-klips-objs+= addrtypeof.o
base-klips-objs+= anyaddr.o
base-klips-objs+= initaddr.o
base-klips-objs+= ultoa.o 
base-klips-objs+= addrtoa.o 
base-klips-objs+= subnettoa.o 
base-klips-objs+= subnetof.o 
base-klips-objs+= goodmask.o 
base-klips-objs+= datatot.o 
base-klips-objs+= rangetoa.o 
base-klips-objs+= prng.o 
base-klips-objs+= pfkey_v2_parse.o 
base-klips-objs+= pfkey_v2_build.o 
base-klips-objs+= pfkey_v2_debug.o 
base-klips-objs+= pfkey_v2_ext_bits.o 
base-klips-objs+= version.o

obj-${CONFIG_KLIPS} += ipsec.o

ipsec-objs += ${base-klips-objs}

ipsec-$(CONFIG_KLIPS_ESP)     += ipsec_esp.o
ipsec-$(CONFIG_KLIPS_IPCOMP)  += ipsec_ipcomp.o
ipsec-$(CONFIG_KLIPS_AUTH_HMAC_MD5)  += ipsec_md5c.o
ipsec-$(CONFIG_KLIPS_AUTH_HMAC_SHA1) += ipsec_sha1.o

# AH, if you really think you need it.
ipsec-$(CONFIG_KLIPS_AH)   += ipsec_ah.o

ipsec-y += ipsec_alg.o 

# include code from DES subdir
crypto-$(CONFIG_KLIPS_ENC_3DES) += des/ipsec_alg_3des.o
crypto-$(CONFIG_KLIPS_ENC_3DES) += des/cbc_enc.o
crypto-$(CONFIG_KLIPS_ENC_3DES) += des/ecb_enc.o
crypto-$(CONFIG_KLIPS_ENC_3DES) += des/set_key.o

ifeq ($(strip ${SUBARCH}),)
SUBARCH:=${ARCH}
endif

# the assembly version expects frame pointers, which are
# optional in many kernel builds. If you want speed, you should
# probably use cryptoapi code instead.
USEASSEMBLY=${SUBARCH}${CONFIG_FRAME_POINTER}
ifeq (${USEASSEMBLY},i386y)
crypto-$(CONFIG_KLIPS_ENC_3DES) += des/dx86unix.o
else
crypto-$(CONFIG_KLIPS_ENC_3DES) += des/des_enc.o
endif

# include code from AES subdir
crypto-$(CONFIG_KLIPS_ENC_AES) += aes/ipsec_alg_aes.o
crypto-$(CONFIG_KLIPS_ENC_AES) += aes/aes_xcbc_mac.o
crypto-$(CONFIG_KLIPS_ENC_AES) += aes/aes_cbc.o

ifeq ($(strip ${SUBARCH}),)
SUBARCH:=${ARCH}
endif

USEASSEMBLY=${SUBARCH}${CONFIG_FRAME_POINTER}
ifeq (${USEASSEMBLY},i386y)
crypto-$(CONFIG_KLIPS_ENC_AES) += aes/aes-i586.o
else
crypto-$(CONFIG_KLIPS_ENC_AES) += aes/aes.o
endif

ipsec-y += ${crypto-y}

ipsec-$(CONFIG_KLIPS_ENC_CRYPTOAPI) += ipsec_alg_cryptoapi.o

# IPcomp stuff
base-ipcomp-objs := ipcomp.o 
base-ipcomp-objs += adler32.o
base-ipcomp-objs += deflate.o
base-ipcomp-objs += infblock.o
base-ipcomp-objs += infcodes.o
base-ipcomp-objs += inffast.o
base-ipcomp-objs += inflate.o
base-ipcomp-objs += inftrees.o
base-ipcomp-objs += infutil.o
base-ipcomp-objs += trees.o
base-ipcomp-objs += zutil.o
asm-ipcomp-obj-$(CONFIG_M586)          += match586.o
asm-ipcomp-obj-$(CONFIG_M586TSC)       += match586.o
asm-ipcomp-obj-$(CONFIG_M586MMX)       += match586.o
asm-ipcomp-obj-$(CONFIG_M686)          += match686.o
asm-ipcomp-obj-$(CONFIG_MPENTIUMIII)   += match686.o
asm-ipcomp-obj-$(CONFIG_MPENTIUM4)     += match686.o
asm-ipcomp-obj-$(CONFIG_MK6)           += match586.o
asm-ipcomp-obj-$(CONFIG_MK7)           += match686.o
asm-ipcomp-obj-$(CONFIG_MCRUSOE)       += match586.o
asm-ipcomp-obj-$(CONFIG_MWINCHIPC6)    += match586.o
asm-ipcomp-obj-$(CONFIG_MWINCHIP2)     += match686.o
asm-ipcomp-obj-$(CONFIG_MWINCHIP3D)    += match686.o
base-ipcomp-objs += ${asm-ipcomp-obj-y}

ipsec-$(CONFIG_KLIPS_IPCOMP) += ${base-ipcomp-objs}

EXTRA_CFLAGS += -DIPCOMP_PREFIX

#
# $Log: Makefile.fs2_6,v $
# Revision 1.8.2.1  2006/04/20 16:33:06  mcr
# remove all of CONFIG_KLIPS_ALG --- one can no longer build without it.
# Fix in-kernel module compilation. Sub-makefiles do not work.
#
# Revision 1.8  2005/05/11 03:15:42  mcr
# 	adjusted makefiles to sanely build modules properly.
#
# Revision 1.7  2005/04/13 22:52:12  mcr
# 	moved KLIPS specific snprintf() wrapper to seperate file.
#
# Revision 1.6  2004/08/22 05:02:03  mcr
# 	organized symbols such that it is easier to build modules.
#
# Revision 1.5  2004/08/18 01:43:56  mcr
# 	adjusted makefile enumation so that it can be used by module
# 	wrapper.
#
# Revision 1.4  2004/08/17 03:27:23  mcr
# 	klips 2.6 edits.
#
# Revision 1.3  2004/08/04 16:50:13  mcr
# 	removed duplicate definition of dx86unix.o
#
# Revision 1.2  2004/08/03 18:21:09  mcr
# 	only set KLIPS_TOP and OPENSWANSRCDIR if not already set.
#
# Revision 1.1  2004/07/26 15:02:22  mcr
# 	makefile for KLIPS module for 2.6.
#
# Revision 1.3  2004/02/24 17:17:04  mcr
# 	s/CONFIG_IPSEC/CONFIG_KLIPS/ as 26sec uses "CONFIG_IPSEC" to
# 	turn it on/off as well.
#
# Revision 1.2  2004/02/22 06:50:42  mcr
# 	kernel 2.6 port - merged with 2.4 code.
#
# Revision 1.1.2.1  2004/02/20 02:07:53  mcr
# 	module configuration for KLIPS 2.6
#
#
# Local Variables:
# compile-command: "(cd ../../.. && source umlsetup.sh && make -C ${POOLSPACE} module/ipsec.o)"
# End Variables:
#