summaryrefslogtreecommitdiffabout
path: root/src/Makefile.am
blob: 2ec650d980f57294c8a7dcb3994025731599165a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
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 ${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}