Add Makefile that's a blatant ripoff of RPNG.

This commit is contained in:
Alcaro 2015-02-15 23:21:00 +01:00
parent 52926fc736
commit fe69abda82

20
nbio/Makefile Normal file
View File

@ -0,0 +1,20 @@
TARGET := nbio_test
SOURCES := $(wildcard *.c)
OBJS := $(SOURCES:.c=.o)
CFLAGS += -Wall -pedantic -std=gnu99 -O0 -g -I../../include
all: $(TARGET)
%.o: %.c
$(CC) -c -o $@ $< $(CFLAGS)
$(TARGET): $(OBJS)
$(CC) -o $@ $^ $(LDFLAGS)
clean:
rm -f $(TARGET) $(OBJS)
.PHONY: clean