ics_cli/unit-tests/Makefile

14 lines
560 B
Makefile

CC = gcc
CFLAGS = -Wall -g -O0
test_parse_ics_file:
$(CC) $(CFLAGS) test_parse_ics_file.c ../src/parse_ics.c ../src/string_handling.c ../src/list_handling.c ../src/date_time_handling.c ../src/read_until_string.c ../src/read_until_nl.c -o test_parse_ics_file.out
./test_parse_ics_file.out
test_print_upcoming:
$(CC) $(CFLAGS) test_print_upcoming.c ../src/parse_ics.c ../src/string_handling.c ../src/list_handling.c ../src/date_time_handling.c ../src/read_until_string.c ../src/read_until_nl.c -o test_print_upcoming.out
.PHONY:clean
clean:
-rm -vf *.out