Fixed up ENDIAN warning with mingw32. Added ability to disable ucsim and device...
[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 STRIP           = @STRIP@
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 # Modules to enable/disable
37 OPT_ENABLE_UCSIM = @OPT_ENABLE_UCSIM@
38 OPT_ENABLE_DEVICE_LIB_BUILD = @OPT_ENABLE_DEVICE_LIB_BUILD@
39
40 SLIB                    = $(PRJDIR)/support/Util
41
42 transform       = @program_transform_name@
43
44 # Flags
45
46 DEFS            = $(subs -DHAVE_CONFIG_H,,@DEFS@)
47 CPPFLAGS        = $(INCLUDEFLAGS) -I. -I$(PRJDIR) -I$(SLIB)
48 CFLAGS          = @CFLAGS@ -Wall
49 M_OR_MM         = @M_OR_MM@
50
51 # Shared settings between all the sub Makefiles
52 # Done here so that we don't have to start a Make from the top levelport
53 # directory.
54
55 # Library compilation options
56 SCC = $(PRJDIR)/src/sdcc
57 SAS = $(PRJDIR)/as/$(PORT)/as
58 CLEANSPEC = *.lst *.asm *.sym *~ *.cdb *.dep *.rul
59
60 OBJ = $(SOURCES:.c=.o)