usaa18cv4/Makefile

21 lines
379 B
Makefile
Raw Permalink Normal View History

2018-11-19 23:01:20 +00:00
CFLAGS= -std=c99 -g
all: calculator
%.o: %.c
gcc -c -o $@ $< $(CFLAGS)
calculator.o: calculator.c
gcc -c calculator.c -o calculator.o
main.o: main.c
gcc -c main.c -o main.o
calculator: main.o calculator.o
gcc main.o calculator.o -o calculator
clean:
rm *.o calculator
test: calculator.c tests/test.c
gcc calculator.c tests/test.c tests/unity.c -Itests -o test
./test