Imported Upstream version 2.9.0
[debian/cc1111] / device / lib / pic / Makefile.common.in
1 ###########################################################
2 ### Makefile.common.in for the SDCC/PIC14 Library
3 ###
4 ### Copyright (C) 2005 by Raphael Neider <rneider AT web.de>
5 ###
6 ### The library is currently maintained by
7 ###     Raphael Neider <rneider AT web.de>
8 ###
9 ### This file may be distributed under the terms of the the
10 ### GNU General Public License (GPL). See GPL for details.
11 ###
12 ### $Id: Makefile.common.in 4785 2007-05-05 07:41:17Z borutr $
13 ###
14
15 #################################################
16 ### verboseness
17 #Q      ?=              # be verbose
18 Q       ?= @            # be quiet
19 # be really quiet (suppress "Entering/Leaving directory...")
20 #MAKEFLAGS := $(filter-out -s,$(MAKEFLAGS)) -s
21
22 #################################################
23 ### compiler switches
24 # ARCH might be overwritten in libio
25 ARCH   ?= 877
26
27 CFLAGS ?=
28 CFLAGS += -mpic14 -p16f$(ARCH)
29 CFLAGS += --std-c99
30 CFLAGS += -I. -I$(top_srcdir)/../../include/pic
31
32 #################################################
33 ### optimization flags
34
35 #################################################
36 ### debugging PIC14 port
37 #CFLAGS += --debug-ralloc
38 #CFLAGS += --debug-xtra
39 #CFLAGS += --pcode-verbose
40 CFLAGS += --i-code-in-asm
41
42 #################################################
43 ### debugging SDCC's optimizations
44 #CFLAGS += --nooverlay
45 #CFLAGS += --nogcse
46 #CFLAGS += --nolabelopt
47 #CFLAGS += --noinvariant
48 #CFLAGS += --noinduction
49 #CFLAGS += --nojtbound
50 #CFLAGS += --noloopreverse
51
52 #################################################
53 ### assembler switches
54 ASFLAGS ?=
55 ASFLAGS += -pp16f$(ARCH)
56 ASFLAGS += -I$(top_srcdir)/../../include/pic
57 ASFLAGS += -I. -I$(srcdir)
58
59 #################################################
60 ### linker switches
61 LDFLAGS ?=
62 LDFLAGS += -m -l -w
63
64 #################################################
65 ### librarian switches
66 LIBFLAGS ?=
67 LIBFLAGS += -c
68
69 #################################################
70 ### programs to use
71 CPP     = $(top_builddir)/../../../bin/sdcpp
72 CC      = $(top_builddir)/../../../bin/sdcc
73 AS      = @GPASM@
74 LD      = @GPLINK@
75 LIB     = @GPLIB@
76
77 SED     ?= @SED@
78 GREP    ?= @EGREP@
79
80 MKDIR   ?= @MKDIR@
81 RMDIR   ?= @RMDIR@
82 CP      ?= @CP@
83 MV      ?= @MV@
84 RM      ?= @RM@
85