projects
/
fw
/
sdcc
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
* .version: bumped version number to 2.4.8
[fw/sdcc]
/
device
/
lib
/
pic16
/
libsdcc
/
Makefile.rules
diff --git
a/device/lib/pic16/libsdcc/Makefile.rules
b/device/lib/pic16/libsdcc/Makefile.rules
index eba686d7e367b5b2a8179270721c94baa1adf3ed..9e8bfc5f15caea90dab707e7150273abb4b0c04f 100644
(file)
--- 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
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))
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 $<
%.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:
$(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
clean: clean-intermediate
$(RM) -f $(LIB) *.o
@@
-45,5
+54,5
@@
dep .depend:
$(SED) s/.rel/.o/g .tmpdepend >> .depend; \
$(RM) -f .tmpdepend; \
done;
$(SED) s/.rel/.o/g .tmpdepend >> .depend; \
$(RM) -f .tmpdepend; \
done;
-
+ if [ ! -e .depend ]; then touch .depend ; fi ;
include .depend
include .depend