diff options
| author | J08nY | 2017-08-29 14:38:17 +0200 |
|---|---|---|
| committer | J08nY | 2017-08-29 14:38:17 +0200 |
| commit | 61df4c7b7fe27497cd2076e09f40d8c8a6223ed2 (patch) | |
| tree | ddfe5eb963ea27b589d47acc7d0be5cb2226a6b1 /test/src | |
| parent | b88a3d0cc85c9e0173f945875f74cd9ff5105f16 (diff) | |
| download | ecgen-61df4c7b7fe27497cd2076e09f40d8c8a6223ed2.tar.gz ecgen-61df4c7b7fe27497cd2076e09f40d8c8a6223ed2.tar.zst ecgen-61df4c7b7fe27497cd2076e09f40d8c8a6223ed2.zip | |
Add Makefiles and CMakelists for tests.
Diffstat (limited to 'test/src')
| -rw-r--r-- | test/src/Makefile | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/test/src/Makefile b/test/src/Makefile index e22dcd3..e9d3d8e 100644 --- a/test/src/Makefile +++ b/test/src/Makefile @@ -9,17 +9,20 @@ CC ?= gcc CFLAGS = -Wall -g -O0 LDFLAGS = -L../../lib/parson -L../../lib/sha1 -L../../lib/pari -L../lib/criterion/build -INCLUDES = -I. -I../../lib -I../lib/criterion/include +INCLUDES = -I. -I../../src -I../../lib -I../lib/criterion/include LIBS = -lrt -lpari -lpthread -lparson -lsha1 -lcriterion TEST_SRC = $(wildcard *.c) $(wildcard */*.c) TEST_OBJ = $(patsubst %.c,%.o, $(TEST_SRC)) TESTS = $(patsubst %.c,%, $(TEST_SRC)) +ECGEN_SRC = $(wildcard ../../src/*/*.c) +ECGEN_OBJ = $(patsubst %.c,%.o, $(ECGEN_SRC)) + all: test_ecgen LD_LIBRARY_PATH=../lib/criterion/build ./test_ecgen -test_ecgen: $(TEST_OBJ) +test_ecgen: $(TEST_OBJ) $(ECGEN_OBJ) $(CC) $(CFLAGS) $(INCLUDES) -o $@ $^ $(LDFLAGS) $(LIBS) %.o: %.c |
