Makefile.am 1020 Bytes
ACLOCAL_AMFLAGS = -I m4

TESTS_ENVIRONMENT = valgrind --error-exitcode=123 --leak-check=full --quiet
TESTS = cclassTest loggerTest socketTest serverTest
check_PROGRAMS = cclassTest loggerTest socketTest serverTest

COMMON = runtest.c ../src/cclass.c
CCLASS = $(COMMON) mock/class.c
LOGGER = $(COMMON) ../src/logger.c
SOCKET = $(LOGGER) ../src/socket.c ../src/socket_listen.c \
	 ../src/socket_accept.c ../src/socket_connect.c
SERVER = $(SOCKET) ../src/server.c ../src/server_run.c \
	 ../src/server_close_conn.c ../src/signalHandling.c

cclassTest_SOURCES = $(CCLASS) cclassTest.c
cclassTest_CFLAGS  = -Wall -ggdb -O0 -finline-functions -I ../include -I .. -I .

loggerTest_SOURCES = $(LOGGER) loggerTest.c
loggerTest_CFLAGS  = -Wall -ggdb -O0 -I ../include -I .. -I .

socketTest_SOURCES = $(SOCKET) socketTest.c
socketTest_CFLAGS  = -Wall -ggdb -O0 -I ../include -I .. -I .

serverTest_SOURCES = $(SERVER) serverTest.c
serverTest_CFLAGS  = -Wall -ggdb -O0 -I ../include -I .. -I .

EXTRA_DIST = runtest.h mock/class.h