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