]> git.ipfire.org Git - thirdparty/squid.git/blob - src/fs/Makefile.am
Author: Wang DaQing <wdq@bigfoot.com>
[thirdparty/squid.git] / src / fs / Makefile.am
1 include $(top_srcdir)/src/Common.am
2
3 EXTRA_LIBRARIES = libaufs.a libdiskd.a libcoss.a libufs.a
4 noinst_LIBRARIES = @STORE_LIBS_TO_BUILD@
5
6 ## TODO: add libfs -- file system framework; this library is always built
7 ## TODO: use libtool and add @STORE_LIBS_TO_BUILD@ to libfs.la
8
9 # aufs is a "fake" legacy store
10 libaufs_a_SOURCES = \
11 aufs/StoreFSaufs.cc
12
13 # diskd is a "fake" legacy store
14 libdiskd_a_SOURCES = \
15 diskd/StoreFSdiskd.cc
16
17 libcoss_a_SOURCES = \
18 coss/StoreFScoss.h \
19 coss/StoreFScoss.cc \
20 coss/store_coss.h \
21 coss/store_io_coss.cc \
22 coss/store_dir_coss.cc \
23 coss/CossSwapDir.h
24
25 libufs_a_SOURCES = \
26 ufs/StoreFSufs.h \
27 ufs/StoreFSufs.cc \
28 ufs/store_dir_ufs.cc \
29 ufs/store_io_ufs.cc \
30 ufs/ufscommon.cci \
31 ufs/ufscommon.cc \
32 ufs/ufscommon.h
33
34
35 EXTRA_DIST = \
36 coss/coss-notes.txt
37
38 # TODO: fix #include statements so that this is not needed
39 INCLUDES += -I.
40
41
42 check_PROGRAMS += testHeaders
43
44 ## Special Universal .h dependency test script
45 ## aborts if error encountered
46 testHeaders: $(top_srcdir)/src/fs/ufs/*.h $(top_srcdir)/src/fs/coss/*.h
47 $(SHELL) $(top_srcdir)/test-suite/testheaders.sh "$(CXXCOMPILE)" "$(top_srcdir)/src/fs/ufs" || exit 1
48 $(SHELL) $(top_srcdir)/test-suite/testheaders.sh "$(CXXCOMPILE)" "$(top_srcdir)/src/fs/coss" || exit 1
49 ## diskd/ has no .h files
50 ## aufs/ has no .h files
51 ## ./ has no .h files
52
53 ## No such file...
54 testHeaders.c:
55 touch testHeaders.c
56 CLEANFILES += testHeaders.c
57
58 ## targets below to emulate distributed makefiles
59 coss/all: libcoss.a
60 coss/clean: clean
61 ufs/all: libufs.a
62 ufs/clean: clean