Přidat 'Makefile'

This commit is contained in:
Peter Ferko 2018-11-13 23:07:10 +00:00
parent d629bf5377
commit 491fd3e14a

15
Makefile Normal file
View File

@ -0,0 +1,15 @@
CFLAGS= -std=c99 -g
all: pizza3
%.o: %.c
gcc -c -o $@ $< $(CFLAGS)
pizza3: main.o pizza3.o
gcc main.o pizza3.o -o pizza3
clean:
rm *.o pizza3
test: pizza3.c tests/test.c
gcc pizza3.c tests/test.c tests/unity.c -Itests -o test
./test