]> git.ipfire.org Git - thirdparty/squid.git/blob - src/fs/Makefile.am
SourceFormat Enforcement
[thirdparty/squid.git] / src / fs / Makefile.am
1 ## Copyright (C) 1996-2015 The Squid Software Foundation and contributors
2 ##
3 ## Squid software is distributed under GPLv2+ license and includes
4 ## contributions from numerous individuals and organizations.
5 ## Please see the COPYING and CONTRIBUTORS files for details.
6 ##
7
8 include $(top_srcdir)/src/Common.am
9
10 AUTOMAKE_OPTIONS = subdir-objects
11
12 EXTRA_LTLIBRARIES = libaufs.la libdiskd.la libufs.la librock.la
13 noinst_LTLIBRARIES = $(STORE_LIBS_TO_BUILD) libfs.la
14
15 # aufs is a "fake" legacy store
16 libaufs_la_SOURCES = \
17 aufs/StoreFSaufs.cc
18
19 # diskd is a "fake" legacy store
20 libdiskd_la_SOURCES = \
21 diskd/StoreFSdiskd.cc
22
23 libufs_la_SOURCES = \
24 ufs/StoreFSufs.h \
25 ufs/StoreFSufs.cc \
26 ufs/UFSStoreState.cc \
27 ufs/UFSSwapDir.cc \
28 ufs/UFSSwapDir.h \
29 ufs/UFSStrategy.cc \
30 ufs/UFSStrategy.h \
31 ufs/UFSStoreState.h \
32 ufs/StoreSearchUFS.h \
33 ufs/StoreSearchUFS.cc \
34 ufs/UFSSwapLogParser.h \
35 ufs/UFSSwapLogParser.cc \
36 ufs/RebuildState.h \
37 ufs/RebuildState.cc
38
39 librock_la_SOURCES = \
40 rock/RockDbCell.cc \
41 rock/RockDbCell.h \
42 rock/RockForward.h \
43 rock/RockIoState.cc \
44 rock/RockIoState.h \
45 rock/RockIoRequests.cc \
46 rock/RockIoRequests.h \
47 rock/RockRebuild.cc \
48 rock/RockRebuild.h \
49 rock/RockStoreFileSystem.cc \
50 rock/RockStoreFileSystem.h \
51 rock/RockSwapDir.cc \
52 rock/RockSwapDir.h
53
54 libfs_la_SOURCES = Module.cc Module.h
55 libfs_la_LIBADD = $(STORE_LIBS_TO_BUILD)
56 libfs_la_DEPENDENCIES = $(STORE_LIBS_TO_BUILD)
57
58 ## we need our local files too (but avoid -I. at all costs)
59 AM_CPPFLAGS += -I$(srcdir)
60
61
62 ## targets below to emulate distributed makefiles
63 ufs/all: libufs.la
64 ufs/clean: clean
65 rock/all: librock.la
66 rock/clean: clean
67
68
69 TESTS += testHeaders
70
71 ## Special Universal .h dependency test script
72 ## aborts if error encountered
73 testHeaders: $(srcdir)/ufs/*.h $(srcdir)/rock/*.h
74 $(SHELL) $(top_srcdir)/test-suite/testheaders.sh "$(CXXCOMPILE)" $^ || exit 1
75 ## diskd/ has no .h files
76 ## aufs/ has no .h files
77 ## ./ has no .h files
78
79 CLEANFILES += testHeaders
80
81 .PHONY: testHeaders