Makefile 163 B

1234567891011121314
  1. .PHONY: all
  2. all: test
  3. test: test.c linked_list.h
  4. $(CC) -o $@ ${CFLAGS} ${LDFLAGS} $<
  5. .PHONY: run-test
  6. run-test: test
  7. ./$<
  8. .PHONY: clean
  9. clean:
  10. rm -f -- test