diff options
| author | Kyle K <kylek389@gmail.com> | 2011-02-05 05:19:27 -0600 | 
|---|---|---|
| committer | Kamil Kaminski <kamilkss@gmail.com> | 2011-02-05 05:19:27 -0600 | 
| commit | b49853cb048db3bd893080ff8b81e6911add0338 (patch) | |
| tree | fb85fa36fc929e6605f3bb4c73d932a668c6c459 /Makefile | |
| download | sandbox-b49853cb048db3bd893080ff8b81e6911add0338.tar.gz sandbox-b49853cb048db3bd893080ff8b81e6911add0338.tar.bz2 sandbox-b49853cb048db3bd893080ff8b81e6911add0338.zip  | |
Initial commit
Diffstat (limited to 'Makefile')
| -rw-r--r-- | Makefile | 20 | 
1 files changed, 20 insertions, 0 deletions
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)  | 
