--- parser3/src/targets/cgi/Makefile.am 2002/08/14 11:37:13 1.41 +++ parser3/src/targets/cgi/Makefile.am 2012/06/11 22:14:46 1.58 @@ -1,15 +1,15 @@ -#this read configure.in comment on stdc++ about next line -if DO_NOT_LINK_LIBSTDCPP -CXXLD=$(CC) -else -CXXLD=$(CXX) -endif +# Parser has circular library dependencies, thus libmain.a is linked twice and --preserve-dup-deps libtool option is used +PA_LIBS = ../../main/libmain.a ../../classes/libclasses.a ../../types/libtypes.a ../../main/libmain.a \ + ../../lib/gd/libgd.a ../../lib/cord/libcord.a ../../lib/md5/libmd5.a ../../lib/sdbm/libsdbm.a \ + ../../lib/smtp/libsmtp.a ../../lib/json/libjson.a ../../lib/memcached/libmemcached.a -INCLUDES = -I../../classes -I../../types -I../../sql -I../../lib/pcre -I../../lib/md5 -I$(INCLTDL) @XML_INCLUDES@ +INCLUDES = -I../../classes -I../../types -I../../sql -I../../lib/gc/include -I../../lib/cord/include \ + -I../../lib/md5 -I../../lib/json -I$(INCLTDL) @PCRE_INCLUDES@ @XML_INCLUDES@ bin_PROGRAMS = parser3 -noinst_HEADERS = pool_storage.h fixopt.h -parser3_SOURCES = pa_pool.C pa_threads.C parser3.C getopt.c fixopt.C -parser3_LDADD=../../main/libmain.a ../../classes/libclasses.a ../../main/libmain.a ../../types/libtypes.a ../../classes/gd/libgd.a ../../lib/pcre/libpcre.a ../../lib/md5/libmd5.a $(LIBLTDL) $(LIBADD_DL) @XML_LIBS@ @MIME_LIBS@ - -EXTRA_DIST = parser3.dsp getopt.h +noinst_HEADERS = getopt.h +parser3_DEPENDENCIES=Makefile $(PA_LIBS) +parser3_SOURCES = pa_threads.C parser3.C getopt.c +parser3_LDADD= $(PA_LIBS) $(LIBLTDL) @GC_LIBS@ @PCRE_LIBS@ @XML_LIBS@ @MIME_LIBS@ +parser3_LIBTOOLFLAGS=--preserve-dup-deps +EXTRA_DIST = parser3.vcproj