LIBC_INC_DIR = $(PRJDIR)/device/include/pic16
-COMPILE_FLAGS += $(MODELFLAGS) --pomit-config-words --pomit-ivt --no-peep --i-code-in-asm
+#OPT_FLAGS += --pstack-model=large
+
+COMPILE_FLAGS += $(MODELFLAGS) $(OPT_FLAGS)
+
+
CFLAGS = -I$(LIBC_INC_DIR)
CFILES = $(patsubst %,%.c,$(SRCS))
$(CC) $(CFLAGS) $(COMPILE_FLAGS) -c $<
-all: build-library
+all: build-library clean-intermediate-no-asm
clean-intermediate:
$(RM) -f *.lst *.asm *.dump* *.p *.d *.adb
+clean-intermediate-no-asm:
+ $(RM) -f *.lst *.dump* *.p *.d *.adb
+
clean: clean-intermediate
$(RM) -f $(LIB) *.o