Add support for the --disable-boehm-gc flag for systems that lack -lgc.
[fw/sdcc] / Makefile.common.in
1 #
2 #
3 #
4
5 # HACK
6 PORT            = mcs51
7
8 # Version
9 VERSION         = @VERSION@
10 VERSIONHI       = @VERSIONHI@
11 VERSIONLO       = @VERSIONLO@
12 VERSIONP        = @VERSIONP@
13
14 # Programs
15 SHELL           = /bin/sh
16 CC              = @CC@
17 CPP             = @CPP@
18 RANLIB          = @RANLIB@
19 INSTALL         = @INSTALL@
20 YACC            = @YACC@ 
21 LEX             = @LEX@ 
22 AWK             = @AWK@
23
24 prefix          = @prefix@
25 exec_prefix     = @exec_prefix@
26 bindir          = @bindir@
27 libdir          = @libdir@
28 datadir         = @datadir@
29 includedir      = @includedir@
30 mandir          = @mandir@
31 man1dir         = $(mandir)/man1
32 man2dir         = $(mandir)/man2
33 infodir         = @infodir@
34 srcdir          = @srcdir@
35
36 # Flags
37 HAVE_LIBGC      = @HAVE_LIBGC@
38 DISABLE_GC      = @DISABLE_GC@
39 DEFS            = $(subs -DHAVE_CONFIG_H,,@DEFS@)
40 CPPFLAGS        = @CPPFLAGS@ -I$(PRJDIR)
41 ifeq ($(DISABLE_GC),1)
42 # Skip the Boehm GC library in special, manually configured cases.
43 else
44 ifeq ($(HAVE_LIBGC),1)
45 else
46 CPPFLAGS        += -I$(PRJDIR)/support
47 endif
48 endif
49 CFLAGS          = @CFLAGS@ -Wall
50 M_OR_MM         = @M_OR_MM@
51
52 # Shared settings between all the sub Makefiles
53 # Done here so that we don't have to start a Make from the top levelport
54 # directory.
55
56 # Library compilation options
57 SCC = $(PRJDIR)/src/sdcc
58 SAS = $(PRJDIR)/as/$(PORT)/as
59 CLEANSPEC = *.lst *.asm *.sym *~ *.cdb