diff options
author | s-over-4 | 2023-06-15 19:01:32 -0400 |
---|---|---|
committer | s-over-4 | 2023-06-15 19:01:32 -0400 |
commit | c7d0b43b200ee2103653468c76050c1113299fea (patch) | |
tree | c28d081e2ba7f64fbd93154ebec555bb22a8e9d1 /Makefile | |
parent | 4c41e9f95d23f9ba322b2516164cd4bab0b439fa (diff) |
fixed everything and changed Makefile a bit
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 6 |
1 files changed, 5 insertions, 1 deletions
@@ -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 $@ |