From b49853cb048db3bd893080ff8b81e6911add0338 Mon Sep 17 00:00:00 2001 From: Kyle K Date: Sat, 5 Feb 2011 05:19:27 -0600 Subject: Initial commit --- Makefile | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 Makefile (limited to 'Makefile') diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..1b5de9a --- /dev/null +++ b/Makefile @@ -0,0 +1,20 @@ +BINS = ascii class depipe_strings dup fpipe realloc strpbrk strsep tokenizer +CC = gcc +DBGFLAGS = -g -O0 +ifdef DEBUG + CFLAGS = $(DBGFLAGS) -D DEBUG -std=gnu99 -Wall -pedantic +else + CFLAGS = -O2 -std=gnu99 -Wall -pedantic +endif +LDFLAGS = -lm + +all: $(BINS) + +$(BINS): %: %.c + $(CC) $(CFLAGS) $^ -o $@ + + +.PHONY: clean + +clean: + rm -f ./$(BINS) -- cgit v1.2.3