summaryrefslogtreecommitdiff
path: root/makefile
diff options
context:
space:
mode:
Diffstat (limited to 'makefile')
-rw-r--r--makefile10
1 files changed, 8 insertions, 2 deletions
diff --git a/makefile b/makefile
index 4ce05bc..312721e 100644
--- a/makefile
+++ b/makefile
@@ -1,14 +1,20 @@
1include config.mk 1include config.mk
2 2
3STREAM=bin/stream
4STREAM_OBJ_FILES=obj/stream.o
5
3SIMPLE=bin/simple 6SIMPLE=bin/simple
4SIMPLE_OBJ_FILES=obj/simple.o 7SIMPLE_OBJ_FILES=obj/simple.o
5 8
6release: $(SIMPLE) 9release: $(STREAM) $(SIMPLE)
7release: CFLAGS+=-DNDEBUG -O2 10release: CFLAGS+=-DNDEBUG -O2
8 11
9debug: $(SIMPLE) 12debug: $(STREAM) $(SIMPLE)
10debug: CFLAGS+=-g 13debug: CFLAGS+=-g
11 14
15$(STREAM): $(STREAM_OBJ_FILES) | bin
16 cc $(LDFLAGS) $^ -o $@
17
12$(SIMPLE): $(SIMPLE_OBJ_FILES) | bin 18$(SIMPLE): $(SIMPLE_OBJ_FILES) | bin
13 cc $(LDFLAGS) $^ -o $@ 19 cc $(LDFLAGS) $^ -o $@
14 20