From 7f125868d9735cf57a8a7c98e57ab3bbf5036357 Mon Sep 17 00:00:00 2001 From: Amos Jeffries Date: Wed, 7 Jan 2009 23:46:03 +1300 Subject: [PATCH] Move IPAddress to libip.la --- lib/Makefile.am | 4 ---- lib/IPAddress.cc => src/ip/IpAddress.cc | 0 include/IPAddress.h => src/ip/IpAddress.h | 0 src/ip/Makefile.am | 19 +++++++++++++++---- .../ip/testIpAddress.cc | 0 .../testIPAddress.h => src/ip/testIpAddress.h | 0 6 files changed, 15 insertions(+), 8 deletions(-) rename lib/IPAddress.cc => src/ip/IpAddress.cc (100%) rename include/IPAddress.h => src/ip/IpAddress.h (100%) rename lib/tests/testIPAddress.cc => src/ip/testIpAddress.cc (100%) rename lib/tests/testIPAddress.h => src/ip/testIpAddress.h (100%) diff --git a/lib/Makefile.am b/lib/Makefile.am index 87e9d4190e..eefc2d5fbb 100644 --- a/lib/Makefile.am +++ b/lib/Makefile.am @@ -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 \ diff --git a/lib/IPAddress.cc b/src/ip/IpAddress.cc similarity index 100% rename from lib/IPAddress.cc rename to src/ip/IpAddress.cc diff --git a/include/IPAddress.h b/src/ip/IpAddress.h similarity index 100% rename from include/IPAddress.h rename to src/ip/IpAddress.h diff --git a/src/ip/Makefile.am b/src/ip/Makefile.am index 46fae62f37..2acb99912f 100644 --- a/src/ip/Makefile.am +++ b/src/ip/Makefile.am @@ -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) diff --git a/lib/tests/testIPAddress.cc b/src/ip/testIpAddress.cc similarity index 100% rename from lib/tests/testIPAddress.cc rename to src/ip/testIpAddress.cc diff --git a/lib/tests/testIPAddress.h b/src/ip/testIpAddress.h similarity index 100% rename from lib/tests/testIPAddress.h rename to src/ip/testIpAddress.h -- 2.47.3