2 # Makefile for the Squid IP layer API
5 # Housekeeping, shared by all Squid Makefiles.
6 # TODO: make this set by configure?
7 AM_CFLAGS = @SQUID_CFLAGS@
8 AM_CXXFLAGS = @SQUID_CXXFLAGS@
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
16 # IP Specific Configurations
18 noinst_LTLIBRARIES = libip.la
29 check_PROGRAMS= testHeaders testIpAddress
30 TESTS= $(check_PROGRAMS)
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
40 CLEANFILES += testHeaders.c
43 testIpAddress_SOURCES= \
46 nodist_testIpAddress_SOURCES= \
48 testIpAddress_LDADD= \
50 -L$(top_builddir)/lib -lmiscutil \
53 testIpAddress_LDFLAGS= $(LIBADD_DL)