diff options
Diffstat (limited to 'firmware/Makefile')
-rw-r--r-- | firmware/Makefile | 24 |
1 files changed, 15 insertions, 9 deletions
diff --git a/firmware/Makefile b/firmware/Makefile index 5aec099..d1493ea 100644 --- a/firmware/Makefile +++ b/firmware/Makefile @@ -8,12 +8,11 @@ CFLAGS:=\ -Wall\ -I$(IDIR)\ -mcpu=$(MCU)\ - -g\ -msmart-io=1\ -Wl,--script=p$(MCU).gld\ -Wl,--gc-sections\ -Wl,--stack=16\ - -Wl,--heap=2048\ + -Wl,--heap=16384\ -Wl,--local-stack\ -Wl,--check-sections\ -Wl,--data-init\ @@ -35,7 +34,15 @@ _DEPS:=\ init.h\ t6963c_specific.h\ t6963c/t6963c.h\ - t6963c/terminal.h + t6963c/terminal.h\ + fuspel/interpreter/code.h\ + fuspel/interpreter/eval.h\ + fuspel/interpreter/lex.h\ + fuspel/interpreter/log.h\ + fuspel/interpreter/mem.h\ + fuspel/interpreter/parse.h\ + fuspel/interpreter/print.h\ + fuspel/interpreter/syntax.h DEPS:=$(patsubst %,$(IDIR)/%,$(_DEPS)) _OBJ:=main.o $(subst .h,.o,$(_DEPS)) @@ -47,7 +54,7 @@ ASM:=$(patsubst %,$(ODIR)/%,$(_ASM)) .PHONY: all all_hex all_assembly clean all: all_hex - + all_hex: $(HEX) all_assembly: $(ASM) @@ -56,17 +63,16 @@ $(ODIR)/%.hex: $(ODIR)/%.out $(BIN2HEX) $< $(ODIR)/%.out: $(OBJ) - $(CC) $(CFLAGS)\ - -Wl,-Map -Wl,$(ODIR)/$(notdir $(basename $@)).map\ - -o $@ $^ + $(CC) -o $@ $^ $(CFLAGS)\ + -Wl,-Map -Wl,$(ODIR)/$(notdir $(basename $@)).map $(ODIR)/%.o: %.c $(DEPS) mkdir -p $(dir $@) - $(CC) $(CFLAGS) -c -o $@ $< + $(CC) -c -o $@ $< $(CFLAGS) $(ODIR)/%.s: %.c mkdir -p $(dir $@) - $(CC) $(CFLAGS) -S -o $@ $< + $(CC) -S -o $@ $< $(CFLAGS) clean: $(RM) -r $(ODIR) |