]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
Move IPAddress to libip.la
authorAmos Jeffries <squid3@treenet.co.nz>
Wed, 7 Jan 2009 10:46:03 +0000 (23:46 +1300)
committerAmos Jeffries <squid3@treenet.co.nz>
Wed, 7 Jan 2009 10:46:03 +0000 (23:46 +1300)
lib/Makefile.am
src/ip/IpAddress.cc [moved from lib/IPAddress.cc with 100% similarity]
src/ip/IpAddress.h [moved from include/IPAddress.h with 100% similarity]
src/ip/Makefile.am
src/ip/testIpAddress.cc [moved from lib/tests/testIPAddress.cc with 100% similarity]
src/ip/testIpAddress.h [moved from lib/tests/testIPAddress.h with 100% similarity]

index 87e9d4190ed4711a90aa2c7fcf35128f26ba1f1b..eefc2d5fbb019ca8e6f67f9d7f8051078a9e58af 100644 (file)
@@ -74,7 +74,6 @@ libmiscutil_a_SOURCES = \
        hash.c \
        heap.c \
        html_quote.c \
-       IPAddress.cc \
        iso3307.c \
        md5.c \
        radix.c \
@@ -130,9 +129,6 @@ CLEANFILES += testHeaders.c
 tests_testAll_SOURCES= \
        tests/testArray.h \
        tests/testArray.cc \
-       tests/testIPAddress.h \
-       tests/testIPAddress.cc \
-       IPAddress.cc \
        tests/testRFC1035.h \
        tests/testRFC1035.cc \
        tests/testMain.cc \
similarity index 100%
rename from lib/IPAddress.cc
rename to src/ip/IpAddress.cc
similarity index 100%
rename from include/IPAddress.h
rename to src/ip/IpAddress.h
index 46fae62f379c47d45f0cda4bd5a52bd79828ff12..2acb99912fb3a921974e22cabb8a86daf9184492 100644 (file)
@@ -15,19 +15,18 @@ $(OBJS): $(top_srcdir)/include/version.h $(top_srcdir)/include/autoconf.h
 
 # IP Specific Configurations
 
-#EXTRA_PROGRAMS = \
-#      testIcmp
-
 noinst_LTLIBRARIES = libip.la
 
 libip_la_SOURCES = \
+       IpAddress.h \
+       IpAddress.cc \
        IpIntercept.h \
        IpIntercept.cc \
        QosConfig.h \
        QosConfig.cc
 
 
-check_PROGRAMS= testHeaders
+check_PROGRAMS= testHeaders testIpAddress
 TESTS= $(check_PROGRAMS)
 
 ## Special Universal .h dependency test script
@@ -39,3 +38,15 @@ testHeaders: $(top_srcdir)/src/ip/*.h
 testHeaders.c:
        touch testHeaders.c
 CLEANFILES += testHeaders.c
+
+
+testIpAddress_SOURCES= \
+       testIpAddress.cc \
+       testIpAddress.h
+nodist_testIpAddress_SOURCES= \
+       ../tests/testMain.cc
+testIpAddress_LDADD= \
+       libip.la \
+       @SQUID_CPPUNIT_LA@ \
+       @SQUID_CPPUNIT_LIBS@
+testIpAddress_LDFLAGS= $(LIBADD_DL)