Initial import
[sliver-openvswitch.git] / datapath / linux-2.6 / Makefile.in
1 export builddir = @abs_builddir@
2 export srcdir = @abs_srcdir@
3 export top_srcdir = @abs_top_srcdir@
4 export KSRC = @KSRC26@
5 export KVERSION = 2.6
6 export VMDIR = @VMDIR@
7 export VERSION = @VERSION@
8
9 CFLAGS_EXTRA += -DVERSION=\"$(VERSION)\"
10 CFLAGS_EXTRA += -I $(srcdir)/.. -I $(srcdir)/datapath/  -I $(top_srcdir)/include
11
12 # Files shared between 2.4 and 2.6 builds
13
14 SHAREDFILES = ../chain.c ../crc32.c ../table-hash.c ../table-linear.c   \
15                         ../table-mac.c ../forward.c ../flow.c ../unit-exports.c \
16                         ../datapath_t.c ../dp_dev.c \
17                         compat-2.6/genetlink.c \
18                         compat-2.6/random32.c 
19
20 HFILES = ../datapath.h ../chain.h ../crc32.h ../flow.h ../forward.h     \
21                         ../table.h ../datapath_t.h \
22                         compat-2.6/include/compat26.h \
23                         compat-2.6/include/linux/ip.h \
24                         compat-2.6/include/linux/ipv6.h \
25                         compat-2.6/include/linux/lockdep.h \
26                         compat-2.6/include/linux/mutex.h \
27                         compat-2.6/include/linux/netlink.h \
28                         compat-2.6/include/linux/random.h \
29                         compat-2.6/include/linux/skbuff.h \
30                         compat-2.6/include/linux/tcp.h \
31                         compat-2.6/include/linux/timer.h \
32                         compat-2.6/include/linux/types.h \
33                         compat-2.6/include/linux/udp.h \
34                         compat-2.6/include/net/checksum.h \
35                         compat-2.6/include/net/genetlink.h 
36
37 SIMLINKFILES = $(patsubst ../%,%, $(SHAREDFILES))
38
39 CFILES = datapath.c $(SIMLINKFILES)
40
41 # Testing files used for both 2.6 and 2.4 kernels.  Are symlinked
42 # locally
43 SHARED_T_FILES = ../table_t.c ../crc_t.c ../forward_t.c ../unit.c
44
45 UNIT_CFILES = $(patsubst ../%,%, $(SHARED_T_FILES))
46
47 # General rule to create symlinks of shared files 
48 %.c : ../%.c 
49         ln -s $< $@
50
51 # Conditional include so that make dist doesn't puke when
52 # this build isn't turned on by automake
53 ifneq (,$(KSRC))
54 include $(srcdir)/kbuild.inc
55 else
56 clean:
57 endif
58
59 distclean : clean
60 distdir : clean
61 install :
62
63 all: default
64
65 check: all