summaryrefslogtreecommitdiffabout
path: root/src/Makefile.am
Side-by-side diff
Diffstat (limited to 'src/Makefile.am') (more/less context) (ignore whitespace changes)
-rw-r--r--src/Makefile.am21
1 files changed, 19 insertions, 2 deletions
diff --git a/src/Makefile.am b/src/Makefile.am
index cc33f3f..2ec650d 100644
--- a/src/Makefile.am
+++ b/src/Makefile.am
@@ -1,20 +1,37 @@
-bin_PROGRAMS = sitecing-fastcgi sitecing-build
+bin_PROGRAMS = sitecing-build
+
+if HAVE_FCGI
+bin_PROGRAMS += sitecing-fastcgi
+endif
+if HAVE_PLAINCGI
+bin_PROGRAMS += sitecing-plaincgi
+endif
INCLUDES = -I${top_srcdir}/include ${KINGATE_CFLAGS} ${DOTCONF_CFLAGS} \
${PCREPP_CFLAGS}
-LIBS += ${top_builddir}/lib/libsitecing.la ${KINGATE_LIBS} ${DOTCONF_LIBS} \
+LIBS += ${top_builddir}/lib/libsitecing.la ${DOTCONF_LIBS} \
${PCREPP_LIBS}
sitecing_fastcgi_SOURCES = sitecing-fastcgi.cc \
COPYING.cc
+sitecing_fastcgi_LDADD = ${KINGATE_FCGI_LIBS}
sitecing_fastcgi_LDFLAGS = -rdynamic
sitecing_fastcgi_DEPENDENCIES = ${top_builddir}/lib/libsitecing.la
+sitecing_plaincgi_SOURCES = sitecing-plaincgi.cc \
+ COPYING.cc
+sitecing_plaincgi_LDFLAGS = -rdynamic
+sitecing_plaincgi_LDADD = ${KINGATE_PLAINCGI_LIBS}
+sitecing_plaincgi_DEPENDENCIES = ${top_builddir}/lib/libsitecing.la
+
sitecing_build_SOURCES = sitecing-build.cc \
COPYING.cc
+sitecing_build_LDADD = ${KINGATE_LIBS}
sitecing_build_DEPENDENCIES = ${top_builddir}/lib/libsitecing.la
COPYING.cc: ${top_srcdir}/COPYING
echo "const char * COPYING =" >$@ || (rm $@;exit 1)
sed 's/"/\\"/g' $< | sed 's/^/\"/' | sed 's/$$/\\n\"/' >>$@ || (rm $@;exit 1)
echo ";" >>$@ || (rm $@;exit 1)
+
+EXTRA_DIST = ${sitecing_fastcgi_SOURCES} ${sitecing_PLAINCGI_SOURCES}