1 ###########################################################
2 ### Makefile.common.in for the SDCC/PIC14 Library
4 ### Copyright (C) 2005 by Raphael Neider <rneider@web.de>
6 ### The library is currently maintained by
7 ### Raphael Neider <rneider@web.de>
9 ### This file may be distributed under the terms of the the
10 ### GNU General Public License (GPL). See GPL for details.
17 #################################################
21 # be really quiet (suppress "Entering/Leaving directory...")
22 #MAKEFLAGS := $(filter-out -s,$(MAKEFLAGS)) -s
24 #################################################
26 ARCH ?= 877 # might be overwritten in libio
29 CFLAGS += -mpic14 -p16f$(ARCH)
31 CFLAGS += -I. -I$(topsrcdir)/../../include/pic
33 #################################################
34 ### optimization flags
36 #################################################
37 ### debugging PIC14 port
38 #CFLAGS += --debug-ralloc
39 #CFLAGS += --debug-xtra
40 #CFLAGS += --pcode-verbose
41 CFLAGS += --i-code-in-asm
43 #################################################
44 ### debugging SDCC's optimizations
45 #CFLAGS += --nooverlay
47 #CFLAGS += --nolabelopt
48 #CFLAGS += --noinvariant
49 #CFLAGS += --noinduction
50 #CFLAGS += --nojtbound
51 #CFLAGS += --noloopreverse
53 #################################################
54 ### assembler switches
56 ASFLAGS += -pp16f$(ARCH)
57 ASFLAGS += -I$(topsrcdir)/../../include/pic
59 #################################################
64 #################################################
65 ### librarian switches
69 #################################################
71 CPP = $(topsrcdir)/../../../bin/sdcpp
72 CC = $(topsrcdir)/../../../bin/sdcc