--- parser3/src/targets/cgi/Makefile.am 2001/10/27 12:58:52 1.21 +++ parser3/src/targets/cgi/Makefile.am 2003/03/12 09:40:20 1.46.2.3 @@ -1,23 +1,14 @@ -if COMPILE_XML -PATCHES_LIBS=../../classes/xalan-patched/libxalan_patched.a -else -PATCHES_LIBS= -endif +#by default c++ when running linker adds -lstdc++ (and -lm) which overrides +#our [default] setting of linking that that lib should be linked statically +#so we're switching linker to gcc, which does not add anything +CXXLD=$(CC) -INCLUDES = -I../../classes -I../../types -I$(INCLTDL) -I../../sql @XML_INCLUDES@ - -#for sysadmin-controlled auto.p -CPPFLAGS:=$(CPPFLAGS) -DSYSCONFDIR=\"$(sysconfdir)\" +INCLUDES = -I../../classes -I../../types -I../../sql -I../../lib/pcre -I../../lib/md5 -I$(INCLTDL) @XML_INCLUDES@ +PA_LIBS = ../../main/libmain.a ../../classes/libclasses.a ../../types/libtypes.a ../../main/libmain.a ../../classes/gd/libgd.a ../../lib/pcre/libpcre.a ../../lib/md5/libmd5.a $(LIBLTDL) bin_PROGRAMS = parser3 -parser3_SOURCES = pa_pool.C pa_threads.C parser3.C ident.C -parser3_LDADD=../../main/libmain.a ../../classes/libclasses.a ../../main/libmain.a ../../types/libtypes.a $(LIBLTDL) ../../classes/gd/libgd.a ../../pcre/libpcre.a $(PATCHES_LIBS) @XML_LIBS@ @DB2_LIBS@ - -IDENT_AWK = ../../ident.awk -IDENT_DEPS = *.C - -ident.C: $(IDENT_AWK) $(IDENT_DEPS) Makefile.am - rm -f ident.C - echo // do not edit. autogenerated by Makefile.am > ident.C.new - cat $(IDENT_DEPS) | $(AWK) -f $(IDENT_AWK) -v project=parser3 >> ident.C.new - mv ident.C.new ident.C +noinst_HEADERS = getopt.h +parser3_DEPENDENCIES=Makefile $(PA_LIBS) +parser3_SOURCES = pa_threads.C parser3.C getopt.c +parser3_LDADD= $(PA_LIBS) $(LIBADD_DL) @XML_LIBS@ @MIME_LIBS@ +EXTRA_DIST = parser3.dsp