18 lines
151 B
Makefile
Raw Permalink Normal View History

2020-12-12 20:24:58 +01:00
CFLAGS=
test: test.o
gcc -o $@ $^
test.o: test.c
gcc -c -o $@ $(CFLAGS) $^
.PHONY: run
run: test
./test
.PHONY: clean
clean:
rm -f *.o test