Files
dial-reference/server/tests/makefile
2019-10-07 14:39:00 -07:00

19 lines
440 B
Makefile

CC=$(TARGET)gcc
.PHONY: clean
.DEFAULT_GOAL=test
OBJS := test_dial_data.o test_url_lib.o test_callbacks.o ../url_lib.o ../dial_data.o ../system_callbacks.o run_tests.o
HEADERS := $(wildcard ../*.h)
%.c: $(HEADERS)
%.o: %.c $(HEADERS)
$(CC) -Wall -Werror -g -std=gnu99 $(CFLAGS) -c $*.c -o $*.o
test: $(OBJS)
$(CC) -Wall -Werror -fsanitize=address -g $(OBJS) -ldl -lpthread -o run_tests
clean:
rm -f *.o run_tests