aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile6
1 files changed, 5 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index b076343..05cfded 100644
--- a/Makefile
+++ b/Makefile
@@ -1,6 +1,7 @@
name := halk
cc := cc
-flags := -g
+flags := -s
+devflags := -g
sources := $(wildcard src/*.c)
sources := $(filter-out src/parser.c, $(sources)) # exclude the incomplete parser for now.
objects := $(sources:.c=.o)
@@ -8,6 +9,9 @@ objects := $(sources:.c=.o)
$(name): $(objects)
$(cc) $(objects) $(flags) -o ./$(name).out
+dev: $(objects)
+ $(cc) $(objects) $(devflags) -o ./$(name).out
+
%.o: %.c include/%.h
$(cc) -c $(flags) $< -o $@