You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

27 lines
334B

  1. CC=gcc
  2. CFLAGS=-Wall -std=c99 -D_BSD_SOURCE
  3. LDFLAGS=-lpthread
  4. EXECS=node
  5. debug: CFLAGS+= -g -Ddebug
  6. all: $(EXECS)
  7. debug: all
  8. node: node.o interface.o
  9. $(CC) $^ $(LDFLAGS) -o $@
  10. %.o: %.c $(wildcard *.h) Makefile
  11. $(CC) $< $(CFLAGS) -c -o $@
  12. .PHONY: clean, mproper
  13. clean:
  14. rm -f $(wildcard *.o)
  15. mrproper: clean
  16. rm -f $(EXECS)