X-Git-Url: https://git.gag.com/?a=blobdiff_plain;f=device%2Flib%2Fpic16%2Flibsdcc%2FMakefile.rules;h=9e8bfc5f15caea90dab707e7150273abb4b0c04f;hb=6474449850aeace128aebe2d7f387ac7c550bcc5;hp=eba686d7e367b5b2a8179270721c94baa1adf3ed;hpb=5267792e9b31120c7845fa888787b41bcdc5b38e;p=fw%2Fsdcc diff --git a/device/lib/pic16/libsdcc/Makefile.rules b/device/lib/pic16/libsdcc/Makefile.rules index eba686d7..9e8bfc5f 100644 --- a/device/lib/pic16/libsdcc/Makefile.rules +++ b/device/lib/pic16/libsdcc/Makefile.rules @@ -19,21 +19,30 @@ PRJDIR = ../../../../.. LIBC_INC_DIR = $(PRJDIR)/device/include/pic16 -COMPILE_FLAGS += $(MODELFLAGS) --pomit-config-words --pomit-ivt --denable-peeps --optimize-goto --obanksel=2 --i-code-in-asm +COMPILE_FLAGS += $(MODELFLAGS) $(OPT_FLAGS) + CFLAGS = --nostdinc -I$(LIBC_INC_DIR) CFILES = $(patsubst %,%.c,$(SRCS)) OFILES = $(patsubst %.c,%.o,$(CFILES)) +SFILES = $(patsubst %,%.S,$(AS_SRCS)) +SOFILES = $(patsubst %.S,%.o,$(SFILES)) + %.o: %.c $(CC) $(CFLAGS) $(COMPILE_FLAGS) -c $< +.S.o: + $(AS) -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 @@ -45,5 +54,5 @@ dep .depend: $(SED) s/.rel/.o/g .tmpdepend >> .depend; \ $(RM) -f .tmpdepend; \ done; - + if [ ! -e .depend ]; then touch .depend ; fi ; include .depend