2 # Makefile for the Squid Portability Library
5 include $(top_srcdir)/src/Common.am
8 # Ideally this would be 100% inline functions and macro wrappers.
10 # Port Specific Configurations
12 noinst_LTLIBRARIES = libcompat.la
13 libcompat_la_SOURCES = \
57 check_PROGRAMS += testPreCompiler
58 TESTS += testPreCompiler
60 testPreCompiler_SOURCES= \
63 $(top_srcdir)/src/tests/testMain.cc
64 testPreCompiler_LDADD= $(SQUID_CPPUNIT_LA) $(SQUID_CPPUNIT_LIBS)
65 testPreCompiler_LDFLAGS=
67 # os/ subdir prevents us using src/TestHeaders.am
71 ## Special Universal .h dependency test script
72 ## aborts if error encountered
73 testHeaders: $(srcdir)/*.h $(srcdir)/os/*.h
74 $(SHELL) $(top_srcdir)/test-suite/testheaders.sh "$(CXXCOMPILE)" "$(srcdir)" || exit 1
75 $(SHELL) $(top_srcdir)/test-suite/testheaders.sh "$(CXXCOMPILE)" "$(srcdir)/os" || exit 1
77 CLEANFILES += testHeaders