* src/pic16/device.c (Pics16[]): added devices 18F2550, 18F4331,
[fw/sdcc] / device / lib / pic16 / libio / Makefile.rules
index a7a64aeecee22dedbd9fb4eea5bc32c3ef2f89d2..4380fa95b99a9fc612b02f416214326d9732f3ff 100644 (file)
@@ -18,12 +18,16 @@ PRJDIR      = ../../../../..
 
 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))
@@ -32,11 +36,11 @@ 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
@@ -48,6 +52,9 @@ clean-intermediate-no-asm:
 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 \