Merge branch 'master' of nicira.dyndns.org:/srv/git/openflow
[sliver-openvswitch.git] / datapath / Makefile.am
1 SUBDIRS = tests
2 if L26_ENABLED
3 SUBDIRS += linux-2.6
4 endif
5 if L24_ENABLED
6 SUBDIRS += linux-2.4
7 endif
8
9 EXTRA_DIST = linux-2.6 linux-2.4\
10                         datapath.c snap.h chain.c  crc32.c  crc_t.c\
11                         flow.h forward.h table-hash.c table-mac.c\
12             unit.c unit.h datapath.h  chain.h  crc32.h\
13             flow.c  forward.c  forward_t.c table.h\
14             table-linear.c  table_t.c    unit-exports.c\
15                         datapath_t.c datapath_t.h compat.h\
16                         dp_dev.c
17
18 # Do not include header and source files from the top of the linux-*
19 # directories, as these are just symbolic links to the files in
20 # "datapath".
21 dist-hook:
22         rm -rf `find $(distdir)/linux-* -name Module.symvers`
23         rm -rf `find $(distdir)/linux-* -name .*.cmd`
24         rm -rf `find $(distdir)/linux-* -name .*.swp`
25         rm -rf `find $(distdir)/linux-* -name .*.d`
26         rm -rf `find $(distdir)/linux-* -name .tmp_versions`
27         rm -rf `find $(distdir)/linux-* -name *.o`
28         rm -rf `find $(distdir)/linux-* -name *.ko`
29         rm -rf `find $(distdir)/linux-* -name Makefile`
30         rm -rf `find $(distdir)/linux-* -name .gitignore`
31         rm -f $(distdir)/linux-*/*.h
32         rm -f $(distdir)/linux-*/*.c