LIBC_INC_DIR = $(PRJDIR)/device/include/pic16
+
COMPILE_FLAGS += $(MODELFLAGS)
COMPILE_FLAGS += -p$(MCU)
-#COMPILE_FLAGS += --pomit-config-words --pomit-ivt
-COMPILE_FLAGS += --no-peep
-COMPILE_FLAGS += --i-code-in-asm
-CFLAGS = -I$(LIBC_INC_DIR)
+COMPILE_FLAGS += $(OPT_FLAGS)
+#COMPILE_FLAGS += --i-code-in-asm
+
+OPT_FLAGS2 +=
+
+CFLAGS = -I$(LIBC_INC_DIR) $(OPT_FLAGS2)
+
CFILES = $(patsubst %,%.c,$(SRCS))
OFILES = $(patsubst %.c,%.o,$(CFILES))
$(CC) $(CFLAGS) $(COMPILE_FLAGS) -c $<
all:
- @echo "Please make target build-mcu-library setting"
+ @echo "Please make target \`build-io-lib' setting"
@echo "MCU= to the target device (i.e. MCU=18f452)"
-build-mcu-library: build-library clean-intermediate-no-asm
+build-io-lib: build-library clean-intermediate-no-asm
clean-intermediate:
$(RM) -f *.lst *.asm *.dump* *.p *.d *.adb
clean: clean-intermediate
$(RM) -f $(LIB) *.o
+ttest:
+ $(MAKE) -C ./ build-io-lib MCU=18f452
+
dep .depend:
rm -f .depend
for temp in $(CFILES); do \