Files
helmetc/Makefile.am
Олег Бородин 9ce556bb6a work in progress
2025-10-19 19:28:06 +02:00

92 lines
2.1 KiB
Makefile

AUTOMAKE_OPTIONS = foreign no-dependencies no-installinfo subdir-objects
libxtools_NAME = libxtools.a
libxasync_NAME = libxasync.a
CFLAGS += -std=c99 -Wall -I. -I ./libxasync -I ./libxtools
CFLAGS += -D_POSIX_C_SOURCE=1
sbin_PROGRAMS = helmetd
bin_PROGRAMS = helmetctl
helmetd_SOURCES = helmetd.c \
logger.c logger.h \
server.c server.h
helmetd_LDADD = $(libxtools_NAME) $(libxasync_NAME)
helmetctl_SOURCES = helmetctl.c \
logger.c logger.h
helmetctl_LDADD = $(libxtools_NAME) $(libxasync_NAME)
noinst_LIBRARIES = $(libxtools_NAME) $(libxasync_NAME)
libxtools_a_SOURCES = \
libxtools/bstream.c \
libxtools/bstream.h \
libxtools/cllexer.c \
libxtools/cllexer.h \
libxtools/clcomp.c \
libxtools/clcomp.h \
libxtools/massert.c \
libxtools/massert.h \
libxtools/tccomp.c \
libxtools/tccomp.h \
libxtools/tclexer.c \
libxtools/tclexer.h \
libxtools/tconfig.c \
libxtools/tconfig.h \
libxtools/vmapper.c \
libxtools/vmapper.h \
libxtools/clconfig.c \
libxtools/clconfig.h
libxasync_a_SOURCES = \
libxasync/waitgroup.c \
libxasync/waitgroup.h
noinst_PROGRAMS = libxtools/tconfig_test
libxtools_tconfig_test_SOURCES = libxtools/tconfig_test.c
libxtools_tconfig_test_LDADD = $(libxtools_NAME)
noinst_PROGRAMS += libxtools/clconfig_test
libxtools_clconfig_test_SOURCES = libxtools/clconfig_test.c
libxtools_clconfig_test_LDADD = $(libxtools_NAME)
noinst_PROGRAMS += libxtools/clcomp_test
libxtools_clcomp_test_SOURCES = libxtools/clcomp_test.c
libxtools_clcomp_test_LDADD = $(libxtools_NAME)
noinst_PROGRAMS += libxtools/cllexer_test
libxtools_cllexer_test_SOURCES = libxtools/cllexer_test.c
libxtools_cllexer_test_LDADD = $(libxtools_NAME)
#test:: libxtools/cllexer_test
# cd libxtools && ./cllexer_test
#test:: libxtools/clcomp_test
# cd libxtools && ./clcomp_test
#test:: libxtools/clconfig_test
# cd libxtools && ./clconfig_test
test:: libxtools/tconfig_test
cd libxtools && ./tconfig_test
noinst_PROGRAMS += server_test
server_test_SOURCES = server_test.c server.c logger.c
server_test_LDADD = $(libxtools_NAME)
test:: server_test
./server_test
clean-local:
rm -f *~
rm -f */*~
rm -rf autom4te.cache