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