From fe69abda82a76369ccec59776702d7d7c8b0ed8e Mon Sep 17 00:00:00 2001 From: Alcaro Date: Sun, 15 Feb 2015 23:21:00 +0100 Subject: [PATCH] Add Makefile that's a blatant ripoff of RPNG. --- nbio/Makefile | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 nbio/Makefile diff --git a/nbio/Makefile b/nbio/Makefile new file mode 100644 index 0000000000..39f1c51092 --- /dev/null +++ b/nbio/Makefile @@ -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 +