ds/Makefile

8 lines
322 B
Makefile

IHCT_CFLAGS=-Wall -Wextra -Wpedantic -Wfatal-errors -std=gnu99 -fPIC -shared
TEST_CFLAGS=-Wall -Wextra -Wpedantic -Wfatal-errors -DIHCT_SHORT -L./ -Wl,-rpath ./
tests: tests.c list.h tree.h libihct.so
gcc $(TEST_CFLAGS) tests.c -lihct -o tests
libihct.so: ihct/vector.c ihct/ihct.c
gcc $(IHCT_CFLAGS) $^ -o libihct.so