Added two peepholes that simplify conditional jumps
[fw/sdcc] / device / lib / pic16 / Makefile.common.in
1 ###########################################################
2 ### Makefile.common.in for the GNU PIC Library
3 ###
4 ### Copyright (C) 2005 by Raphael Neider <rneider AT web.de>
5 ###
6 ### The GNU PIC Library was originally designed and
7 ### implemented by
8 ###     Vangelis Rokas <vrokas@otenet.gr>
9 ###
10 ### It is currently maintained by
11 ###     Raphael Neider <rneider AT web.de>
12 ###
13 ### This file may be distributed under the terms of the the
14 ### GNU General Public License (GPL). See COPYING for details.
15 ###
16 ### $Id$
17 ###
18
19 #################################################
20 ### verboseness
21 #Q      ?=              # be verbose
22 Q       ?= @            # be quiet
23 # be really quiet (suppress "Entering/Leaving directory...")
24 #MAKEFLAGS := $(filter-out -s,$(MAKEFLAGS)) -s
25
26 #################################################
27 ### compiler switches
28 ARCH   ?= 452           # might be overwritten in libio
29
30 CFLAGS ?=
31 CFLAGS += -mpic16 -p18f$(ARCH)
32 CFLAGS += --std-c99
33 CFLAGS += -I. -I$(top_srcdir)/../../include/pic16
34 CFLAGS += -Wa,-q
35
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
44
45 #################################################
46 ### debugging PIC16 port
47 #CFLAGS += --debug-ralloc
48 #CFLAGS += --debug-xtra
49 #CFLAGS += --pcode-verbose
50 CFLAGS += --i-code-in-asm
51
52 #################################################
53 ### debugging SDCC's optimizations
54 #CFLAGS += --nooverlay
55 #CFLAGS += --nogcse
56 #CFLAGS += --nolabelopt
57 #CFLAGS += --noinvariant
58 #CFLAGS += --noinduction
59 #CFLAGS += --nojtbound
60 #CFLAGS += --noloopreverse
61
62 #################################################
63 ### assembler switches
64 ASFLAGS ?=
65 ASFLAGS += -pp18f$(ARCH)
66 ASFLAGS += -I$(top_srcdir)/../../include/pic16
67 ASFLAGS += -I$(srcdir)
68
69 #################################################
70 ### linker switches
71 LDFLAGS ?=
72 LDFLAGS += -m -l -w
73
74 #################################################
75 ### librarian switches
76 LIBFLAGS ?=
77 LIBFLAGS += -c
78
79 #################################################
80 ### programs to use
81 CPP     = $(top_builddir)/../../../bin/sdcpp
82 CC      = $(top_builddir)/../../../bin/sdcc --asm=@GPASM@
83 AS      = @GPASM@
84 LD      = @GPLINK@
85 LIB     = @GPLIB@
86
87 SED     ?= @SED@
88 GREP    ?= @EGREP@
89
90 MKDIR   ?= @MKDIR@
91 RMDIR   ?= @RMDIR@
92 CP      ?= @CP@
93 MV      ?= @MV@
94 RM      ?= @RM@
95