17 lines
243 B
Makefile
17 lines
243 B
Makefile
|
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
|
||
|
|