Files
cworker/Makefile.am
2023-08-19 11:39:01 +02:00

58 lines
1.1 KiB
Makefile

AUTOMAKE_OPTIONS = foreign no-dependencies no-installinfo subdir-objects
SUBDIRS = tests
SUFFIXES = .c .o
AM_CFLAGS = -Wall
AM_LDFLAGS = -pthread
.c.o:
$(CC) -I. -pthread $(CPPFLAGS) $(CFLAGS) -c -o $@ $<
#config.h: config.h.in
# ./config.status $@
sbin_PROGRAMS = cworker
cworker_SOURCES = main.c cworker.c $(common_SOURCES)
common_SOURCES = \
cflexer.c \
cflexer.h \
cfparser.c \
cfparser.h \
cllexer.c \
cllexer.h \
clparser.c \
clparser.h \
jlexer.c \
jlexer.h \
jparser.c \
jparser.h \
logger.c \
logger.h \
massert.c \
massert.h \
rcache.c \
rcache.h \
jblock.c \
jblock.h
run: $(sbin_PROGRAMS)
./cworker --port=9002
#install-data-local:
# test -z $(DESTDIR)$(APP_LIBDIR) || $(MKDIR_P) $(DESTDIR)$(APP_LIBDIR)
# test -z $(DESTDIR)$(APP_CONFDIR) || $(MKDIR_P) $(DESTDIR)$(APP_CONFDIR)
# test -z $(DESTDIR)$(APP_LOGDIR) || $(MKDIR_P) $(DESTDIR)$(APP_LOGDIR)
# test -z $(DESTDIR)$(APP_RUNDIR) || $(MKDIR_P) $(DESTDIR)$(APP_RUNDIR)
# test -z $(DESTDIR)$(APP_DATABASEDIR) || $(MKDIR_P) $(DESTDIR)$(APP_DATABASEDIR)
#EOF
clean-local:
rm -rf autom4te.cache
rm -rf *~
rm -rf run log