aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authors-over-42023-06-15 19:01:32 -0400
committers-over-42023-06-15 19:01:32 -0400
commitc7d0b43b200ee2103653468c76050c1113299fea (patch)
treec28d081e2ba7f64fbd93154ebec555bb22a8e9d1 /Makefile
parent4c41e9f95d23f9ba322b2516164cd4bab0b439fa (diff)
fixed everything and changed Makefile a bit
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 $@