C: change phone-number to exercism V3

This commit is contained in:
2021-09-03 15:51:40 +02:00
parent 77a8072c73
commit 33cc1343cb
6 changed files with 33 additions and 182 deletions

View File

@@ -27,6 +27,10 @@
default: all
ALLSOURCES=$(wildcard ./*.c)
TESTSOURCES=$(wildcard ./test_*.c)
SRC=$(filter-out $(TESTSOURCES),$(ALLSOURCES))
include makefile
all: CFLAGS+=-DTESTALL
@@ -48,5 +52,6 @@ unitdebug: CFLAGS+=-DDEBUG
unitdebug: clean unit
unit: CFLAGS+=-DUNIT_TEST
unit: src/*.c src/*.h
$(CC) $(CFLAGS) src/*.c -o tests.out $(LIBS)
unit: SOURCES=$(wildcard ./*.c)
unit: *.c *.h
$(CC) $(CFLAGS) $(SRC) -o tests.out $(LIBS)