]> git.ipfire.org Git - thirdparty/squid.git/blob - src/ip/Makefile.am
Merge from trunk
[thirdparty/squid.git] / src / ip / Makefile.am
1 #
2 # Makefile for the Squid IP layer API
3 #
4
5 # Housekeeping, shared by all Squid Makefiles.
6 # TODO: make this set by configure?
7 AM_CFLAGS = @SQUID_CFLAGS@
8 AM_CXXFLAGS = @SQUID_CXXFLAGS@
9 DEFS = @DEFS@
10 CLEANFILES =
11
12 INCLUDES = -I$(top_srcdir)/src @SQUID_CPPUNIT_INC@ -I$(top_srcdir)/include -I$(top_builddir)/lib
13 $(OBJS): $(top_srcdir)/include/version.h $(top_srcdir)/include/autoconf.h
14
15
16 # IP Specific Configurations
17
18 noinst_LTLIBRARIES = libip.la
19
20 libip_la_SOURCES = \
21 IpAddress.h \
22 IpAddress.cc \
23 IpIntercept.h \
24 IpIntercept.cc \
25 QosConfig.h \
26 QosConfig.cc
27
28
29 check_PROGRAMS= testHeaders testIpAddress
30 TESTS= $(check_PROGRAMS)
31
32 ## Special Universal .h dependency test script
33 ## aborts if error encountered
34 testHeaders: $(top_srcdir)/src/ip/*.h
35 $(SHELL) $(top_srcdir)/test-suite/testheaders.sh "$(CXXCOMPILE)" "$(top_srcdir)/src/ip/" || exit 1
36
37 ## No such file...
38 testHeaders.c:
39 touch testHeaders.c
40 CLEANFILES += testHeaders.c
41
42
43 testIpAddress_SOURCES= \
44 testIpAddress.cc \
45 testIpAddress.h
46 nodist_testIpAddress_SOURCES= \
47 ../tests/testMain.cc
48 testIpAddress_LDADD= \
49 libip.la \
50 -L$(top_builddir)/lib -lmiscutil \
51 @SQUID_CPPUNIT_LA@ \
52 @SQUID_CPPUNIT_LIBS@
53 testIpAddress_LDFLAGS= $(LIBADD_DL)