sic/Makefile.am

52 lines
1.4 KiB
Makefile

## Additional flags to pass to aclocal when it is invoked automatically at
## make time. The ${ACLOCAL_FLAGS} variable is picked up from the environment
## to provide a way for the user to supply additional arguments.
ACLOCAL_AMFLAGS = ${ACLOCAL_FLAGS}
AM_CXXFLAGS = -std=gnu++11
bin_PROGRAMS=siccc testfoohash
BUILT_SOURCES=src/Foohash.H
siccc_SOURCES = \
src/Foohash.H \
src/options.c \
src/Routerin.H \
src/Routerin.cc \
src/sicmain.cc \
src/MediocreSimpleStaticFileHandler.H \
src/MediocreSimpleStaticFileHandler.cc \
src/UltraSimpleStaticFileHandler.cc \
mongoose/mongoose.c
siccc_CFLAGS =
siccc_CXXFLAGS = ${AM_CXXFLAGS} -DDEBUG -ggdb -I./mongoose/
siccc_LDFLAGS = -ldl -pthread
EXTRA_DIST= static/* src/eventlist.txt
GPERFFLAGS = -C -k2 -LC++ -ZFoohash -Kname -H hacksh --null-strings -E -n -t -S1
src/Foohash.H: src/eventrouter.gperf
$(GPERF) $(GPERFFLAGS) < $< > $@
testfoohash_SOURCES= src/testfoohash.cc src/Foohash.H
testfoohash_CXXFLAGS = ${AM_CXXFLAGS} -DDEBUG -ggdb -O0
testfoohash_LDFLAGS =
options.c: options.ggo
options.h: options.ggo
.ggo.c:
gengetopt -F ${@:%.c=%} < $<
## Define an independent executable script for inclusion in the distribution
## archive. It will not be installed on an end user's system, however.
#dist_noinst_SCRIPTS = autogen.sh
dist-hook: ChangeLog
README: README.md
ln -s
ChangeLog: configure.ac README.md
git log --stat --name-only --date=short --abbrev-commit > ChangeLog