Made configure use the native libgc if available. Saves 40k on the exec.
[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 DEFS            = $(subs -DHAVE_CONFIG_H,,@DEFS@)
39 CPPFLAGS        = @CPPFLAGS@ -I$(PRJDIR)
40 ifeq ($(HAVE_LIBGC),1)
41 else
42 CPPFLAGS        += -I$(PRJDIR)/support
43 endif
44 CFLAGS          = @CFLAGS@ -Wall
45 M_OR_MM         = @M_OR_MM@
46
47 # Shared settings between all the sub Makefiles
48 # Done here so that we don't have to start a Make from the top levelport
49 # directory.
50
51 # Library compilation options
52 SCC = $(PRJDIR)/src/sdcc
53 SAS = $(PRJDIR)/as/$(PORT)/as
54 CLEANSPEC = *.lst *.asm *.sym *~ *.cdb