summaryrefslogtreecommitdiff
path: root/Makefile.common
blob: 5f8687d881ac20c287cc3f8e81a793dcecfb7f01 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
#
#
#

# Version
PACKAGE         = sdcc
VERSION         = 0.0.0
VERSIONHI       = 0
VERSIONLO       = 0
VERSIONP        = 0

# Programs
SHELL           = /bin/sh
CC              = ccache gcc
CPP             = ccache gcc -E
CXX             = ccache g++
AR              = ar
RANLIB          = ranlib
INSTALL         = /usr/bin/install -c
YACC            = bison -y
PYTHON          = python3.6
LEX             = flex
AWK             = gawk
STRIP           = strip
MAKEDEP         = g++ -MM
prefix          = /usr/local
exec_prefix     = ${prefix}
bindir          = ${exec_prefix}/bin
libdir          = ${exec_prefix}/lib
datadir         = ${datarootdir}
datarootdir     = ${prefix}/share
includedir      = ${prefix}/include
mandir          = ${datarootdir}/man
man1dir         = $(mandir)/man1
man2dir         = $(mandir)/man2
infodir         = ${datarootdir}/info
docdir          = ${datarootdir}/doc/${PACKAGE}
DESTDIR         =

include_dir_suffix = sdcc/include
lib_dir_suffix     = sdcc/lib

# Modules to enable/disable
OPT_DISABLE_AVR         = 1
OPT_DISABLE_DS390       = 1
OPT_DISABLE_DS400       = 1
OPT_DISABLE_HC08        = 1
OPT_DISABLE_S08         = 1
OPT_DISABLE_MCS51       = 1
OPT_DISABLE_PIC14       = 1
OPT_DISABLE_PIC16       = 1
OPT_DISABLE_XA51        = @OPT_DISABLE_XA51@
OPT_DISABLE_Z80         = 1
OPT_DISABLE_Z180        = 1
OPT_DISABLE_R2K         = 1
OPT_DISABLE_R3KA        = 1
OPT_DISABLE_TLCS90      = 1
OPT_DISABLE_GBZ80       = 1
OPT_DISABLE_STM8        = 0
OPT_DISABLE_PDK13       = 1
OPT_DISABLE_PDK14       = 1
OPT_DISABLE_PDK15       = 1
OPT_DISABLE_PDK16       = 1

OPT_ENABLE_DOC          = 0

OPT_DISABLE_DEVICE_LIB  = 1
OPT_DISABLE_PACKIHX     = 1
OPT_DISABLE_SDBINUTILS  = 0
OPT_DISABLE_SDCPP       = 0
OPT_DISABLE_UCSIM       = 1
OPT_DISABLE_NON_FREE    = 0

SLIB                    = $(top_builddir)/support/util

EXEEXT          = 
transform       = s,x,x,

# Flags

DEFS           += $(subs -DHAVE_CONFIG_H,,-DHAVE_CONFIG_H)
CPPFLAGS       +=  $(INCLUDEFLAGS) -I. -I$(top_builddir) -I$(srcdir)/$(SLIB) -I$(srcdir)
CFLAGS         +=  -pipe -ggdb -g -Og -Wall -Wno-parentheses
CXXFLAGS       += -pipe -ggdb -g -Og
LDFLAGS        += 

EXTRALIBS      += 

# Shared settings between all the sub Makefiles
# Done here so that we don't have to start a Make from the top levelport
# directory.

# Library compilation options
CLEANSPEC = *.lst *.asm *.sym *~ *.cdb *.dep *.rul

OBJ = $(SOURCES:.c=.o) $(CXXSOURCES:.cc=.o)