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.
 
 
 

26 lines
334 B

CC=gcc
CFLAGS=-Wall -std=c99 -D_BSD_SOURCE
LDFLAGS=-lpthread
EXECS=node
debug: CFLAGS+= -g -Ddebug
all: $(EXECS)
debug: all
node: node.o interface.o
$(CC) $^ $(LDFLAGS) -o $@
%.o: %.c $(wildcard *.h) Makefile
$(CC) $< $(CFLAGS) -c -o $@
.PHONY: clean, mproper
clean:
rm -f $(wildcard *.o)
mrproper: clean
rm -f $(EXECS)