1 ###########################################################
2 ### Makefile.common.in for the GNU PIC Library
4 ### Copyright (C) 2005 by Raphael Neider <rneider AT 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 AT 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$(top_srcdir)/../../include/pic16
36 #################################################
37 ### optimization flags
38 CFLAGS += --fommit-frame-pointer
39 CFLAGS += --obanksel=9
40 CFLAGS += --denable-peeps
41 CFLAGS += --optimize-goto
42 CFLAGS += --optimize-cmp
43 CFLAGS += --optimize-df
45 #################################################
46 ### debugging PIC16 port
47 #CFLAGS += --debug-ralloc
48 #CFLAGS += --debug-xtra
49 #CFLAGS += --pcode-verbose
50 CFLAGS += --i-code-in-asm
52 #################################################
53 ### debugging SDCC's optimizations
54 #CFLAGS += --nooverlay
56 #CFLAGS += --nolabelopt
57 #CFLAGS += --noinvariant
58 #CFLAGS += --noinduction
59 #CFLAGS += --nojtbound
60 #CFLAGS += --noloopreverse
62 #################################################
63 ### assembler switches
65 ASFLAGS += -pp18f$(ARCH)
66 ASFLAGS += -I$(top_srcdir)/../../include/pic16
67 ASFLAGS += -I$(srcdir)
69 #################################################
74 #################################################
75 ### librarian switches
79 #################################################
81 CPP = $(top_builddir)/../../../bin/sdcpp
82 CC = $(top_builddir)/../../../bin/sdcc --asm=@GPASM@