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.
21 #################################################
25 # be really quiet (suppress "Entering/Leaving directory...")
26 #MAKEFLAGS := $(filter-out -s,$(MAKEFLAGS)) -s
28 #################################################
30 ARCH ?= 452 # might be overwritten in libio
33 CFLAGS += -mpic16 -p18f$(ARCH)
35 CFLAGS += -I. -I$(topsrcdir)/../../include/pic16
37 #################################################
38 ### optimization flags
39 CFLAGS += --fommit-frame-pointer
40 CFLAGS += --obanksel=9
41 CFLAGS += --denable-peeps
42 CFLAGS += --optimize-goto
43 CFLAGS += --optimize-cmp
44 CFLAGS += --optimize-df
46 #################################################
47 ### debugging PIC16 port
48 #CFLAGS += --debug-ralloc
49 #CFLAGS += --debug-xtra
50 #CFLAGS += --pcode-verbose
51 CFLAGS += --i-code-in-asm
53 #################################################
54 ### debugging SDCC's optimizations
55 #CFLAGS += --nooverlay
57 #CFLAGS += --nolabelopt
58 #CFLAGS += --noinvariant
59 #CFLAGS += --noinduction
60 #CFLAGS += --nojtbound
61 #CFLAGS += --noloopreverse
63 #################################################
64 ### assembler switches
66 ASFLAGS += -pp18f$(ARCH)
67 ASFLAGS += -I$(topsrcdir)/../../include/pic16
69 #################################################
74 #################################################
75 ### librarian switches
79 #################################################
81 CPP = $(topsrcdir)/../../../bin/sdcpp
82 CC = $(topsrcdir)/../../../bin/sdcc --asm=@GPASM@