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.
17 #################################################
21 # be really quiet (suppress "Entering/Leaving directory...")
22 #MAKEFLAGS := $(filter-out -s,$(MAKEFLAGS)) -s
24 #################################################
26 # ARCH might be overwritten in libio
30 CFLAGS += -mpic14 -p16f$(ARCH)
32 CFLAGS += -I. -I$(top_srcdir)/../../include/pic
34 #################################################
35 ### optimization flags
37 #################################################
38 ### debugging PIC14 port
39 #CFLAGS += --debug-ralloc
40 #CFLAGS += --debug-xtra
41 #CFLAGS += --pcode-verbose
42 CFLAGS += --i-code-in-asm
44 #################################################
45 ### debugging SDCC's optimizations
46 #CFLAGS += --nooverlay
48 #CFLAGS += --nolabelopt
49 #CFLAGS += --noinvariant
50 #CFLAGS += --noinduction
51 #CFLAGS += --nojtbound
52 #CFLAGS += --noloopreverse
54 #################################################
55 ### assembler switches
57 ASFLAGS += -pp16f$(ARCH)
58 ASFLAGS += -I$(top_srcdir)/../../include/pic
59 ASFLAGS += -I. -I$(srcdir)
61 #################################################
66 #################################################
67 ### librarian switches
71 #################################################
73 CPP = $(top_builddir)/../../../bin/sdcpp
74 CC = $(top_builddir)/../../../bin/sdcc