1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20
|
CFLAGS = -std=c99 $(shell pkg-config --cflags serf-1 apr-1 apr-util-1 libssl libcrypto zlib) -I.
LDFLAGS = $(shell pkg-config --libs serf-1 apr-1 apr-util-1 libssl libcrypto zlib)
TESTSOURCES = test/serf_get.c test/serf_response.c test/serf_request.c test/serf_spider.c test/test_all.c test/serf_bwtp.c
TESTOBJS = $(patsubst %.c,%.o,$(TESTSOURCES))
TESTFILES = $(patsubst %.c,%,$(TESTSOURCES))
export srcdir=$(shell pwd)
test/%.o: test/%.c
$(CC) -c $(CFLAGS) -o $@ $^
test/%: test/%.o
$(CC) $(CFLAGS) -o $@ $^ $(LDFLAGS)
test/test_all: test/test_all.o test/CuTest.o test/test_util.o test/test_context.o test/test_buckets.o test/test_auth.o test/mock_buckets.o test/test_ssl.o test/server/test_server.o test/server/test_sslserver.o
$(CC) $(CFLAGS) -o $@ $^ $(LDFLAGS)
.PHONY: check
check: $(TESTFILES)
echo $(TESTFILES)
python3 check.py test test
|