diff options
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 $@ |