1 ###########################################################
2 ### Makefile.common.in for the GNU PIC Library
4 ### Copyright (C) 2005 by Raphael Neider <rneider@web.de>
6 ### The GNU PIC Library was originally designed and
8 ### Vangelis Rokas <vrokas@otenet.gr>
10 ### It is currently maintained by
11 ### Raphael Neider <rneider@web.de>
13 ### This file may be distributed under the terms of the the
14 ### GNU General Public License (GPL). See COPYING for details.
19 #################################################
23 # be really quiet (suppress "Entering/Leaving directory...")
24 #MAKEFLAGS := $(filter-out -s,$(MAKEFLAGS)) -s
26 #################################################
28 ARCH ?= 452 # might be overwritten in libio
31 CFLAGS += -mpic16 -p18f$(ARCH)
33 CFLAGS += -I. -I$(topsrcdir)/../../include/pic16
35 #################################################
36 ### optimization flags
37 CFLAGS += --fommit-frame-pointer
38 CFLAGS += --obanksel=9
39 CFLAGS += --denable-peeps
40 CFLAGS += --optimize-goto
41 CFLAGS += --optimize-cmp
42 CFLAGS += --optimize-df
44 #################################################
45 ### debugging PIC16 port
46 #CFLAGS += --debug-ralloc
47 #CFLAGS += --debug-xtra
48 #CFLAGS += --pcode-verbose
49 CFLAGS += --i-code-in-asm
51 #################################################
52 ### debugging SDCC's optimizations
53 #CFLAGS += --nooverlay
55 #CFLAGS += --nolabelopt
56 #CFLAGS += --noinvariant
57 #CFLAGS += --noinduction
58 #CFLAGS += --nojtbound
59 #CFLAGS += --noloopreverse
61 #################################################
62 ### assembler switches
64 ASFLAGS += -pp18f$(ARCH)
65 ASFLAGS += -I$(topsrcdir)/../../include/pic16
67 #################################################
72 #################################################
73 ### librarian switches
77 #################################################
79 CPP = $(topsrcdir)/../../../bin/sdcpp
80 CC = $(topsrcdir)/../../../bin/sdcc