Makefile.am 964 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

SOURCES = runtest.c ../src/cclass.c

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

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

socketTest_SOURCES = $(SOURCES) socketTest.c ../src/logger.c ../src/socket.c ../src/socket_listen.c ../src/socket_accept.c ../src/socket_connect.c
socketTest_CFLAGS  = -Wall -ggdb -O0 -I ../include -I .. -I .

serverTest_SOURCES = $(SOURCES) serverTest.c ../src/logger.c ../src/socket.c ../src/socket_listen.c ../src/socket_accept.c ../src/server.c
serverTest_CFLAGS  = -Wall -ggdb -O0 -I ../include -I .. -I .

EXTRA_DIST = runtest.h mock/class.h