11 VERSIONHI = @VERSIONHI@
12 VERSIONLO = @VERSIONLO@
29 MAKEDEP_CXX = @MAKEDEP_CXX@
31 exec_prefix = @exec_prefix@
35 datarootdir = @datarootdir@
36 includedir = @includedir@
38 man1dir = $(mandir)/man1
39 man2dir = $(mandir)/man2
44 include_dir_suffix = @include_dir_suffix@
45 lib_dir_suffix = @lib_dir_suffix@
47 # Modules to enable/disable
48 OPT_DISABLE_AVR = @OPT_DISABLE_AVR@
49 OPT_DISABLE_DS390 = @OPT_DISABLE_DS390@
50 OPT_DISABLE_DS400 = @OPT_DISABLE_DS400@
51 OPT_DISABLE_HC08 = @OPT_DISABLE_HC08@
52 OPT_DISABLE_S08 = @OPT_DISABLE_S08@
53 OPT_DISABLE_MCS51 = @OPT_DISABLE_MCS51@
54 OPT_DISABLE_PIC14 = @OPT_DISABLE_PIC14@
55 OPT_DISABLE_PIC16 = @OPT_DISABLE_PIC16@
56 OPT_DISABLE_XA51 = @OPT_DISABLE_XA51@
57 OPT_DISABLE_Z80 = @OPT_DISABLE_Z80@
58 OPT_DISABLE_Z180 = @OPT_DISABLE_Z180@
59 OPT_DISABLE_R2K = @OPT_DISABLE_R2K@
60 OPT_DISABLE_R2KA = @OPT_DISABLE_R2KA@
61 OPT_DISABLE_R3KA = @OPT_DISABLE_R3KA@
62 OPT_DISABLE_SM83 = @OPT_DISABLE_SM83@
63 OPT_DISABLE_TLCS90 = @OPT_DISABLE_TLCS90@
64 OPT_DISABLE_Z80N = @OPT_DISABLE_Z80N@
65 OPT_DISABLE_R800 = @OPT_DISABLE_R800@
66 OPT_DISABLE_STM8 = @OPT_DISABLE_STM8@
67 OPT_DISABLE_PDK13 = @OPT_DISABLE_PDK13@
68 OPT_DISABLE_PDK14 = @OPT_DISABLE_PDK14@
69 OPT_DISABLE_PDK15 = @OPT_DISABLE_PDK15@
70 OPT_DISABLE_PDK16 = @OPT_DISABLE_PDK16@
71 OPT_DISABLE_MOS6502 = @OPT_DISABLE_MOS6502@
72 OPT_DISABLE_MOS65C02 = @OPT_DISABLE_MOS65C02@
73 OPT_DISABLE_F8 = @OPT_DISABLE_F8@
75 OPT_ENABLE_DOC = @OPT_ENABLE_DOC@
77 OPT_DISABLE_DEVICE_LIB = @OPT_DISABLE_DEVICE_LIB@
78 OPT_DISABLE_PACKIHX = @OPT_DISABLE_PACKIHX@
79 OPT_DISABLE_SDBINUTILS = @OPT_DISABLE_SDBINUTILS@
80 OPT_DISABLE_SDCPP = @OPT_DISABLE_SDCPP@
81 OPT_DISABLE_UCSIM = @OPT_DISABLE_UCSIM@
82 OPT_DISABLE_NON_FREE = @OPT_DISABLE_NON_FREE@
84 SLIB = $(top_builddir)/support/util
87 transform = @program_transform_name@
91 DEFS += $(subs -DHAVE_CONFIG_H,,@DEFS@)
92 CPPFLAGS += @CPPFLAGS@ $(INCLUDEFLAGS) -I. -I$(top_builddir) -I$(srcdir)/$(SLIB) -I$(srcdir)
93 CFLAGS += @CFLAGS@ @WALL_FLAG@
94 CXXFLAGS += @CXXFLAGS@
99 # Shared settings between all the sub Makefiles
100 # Done here so that we don't have to start a Make from the top levelport
103 # Library compilation options
104 CLEANSPEC = *.lst *.asm *.sym *~ *.cdb *.dep *.rul
106 OBJ = $(SOURCES:.c=.o) $(CXXSOURCES:.cc=.o)
108 # for historical reasons, dependencies are mixed up, and then split by extension.
110 DEPENDENCIES_ = $(PREBUILD) Makefile $(SOURCES) $(ASSOURCES) $(CXXSOURCES) $(SLIBSOURCES) $(SPECIAL)
111 DEPENDENCIES_CC = $(filter %.c,${DEPENDENCIES_})
112 DEPENDENCIES_CXX = $(filter %.cc,${DEPENDENCIES_})
115 Makefile.depcc: $(DEPENDENCIES_)
116 ( test -z "${DEPENDENCIES_CC}" || $(MAKEDEP) $(CPPFLAGS) $(filter %.c,$^) ) > $@
118 Makefile.depcxx: $(DEPENDENCIES_)
119 ( test -z "${DEPENDENCIES_CXX}" || $(MAKEDEP_CXX) $(CPPFLAGS) $(filter %.cc,$^) ) > $@
121 Makefile.dep: Makefile.depcc Makefile.depcxx
122 cat Makefile.depcc Makefile.depcxx > $@
124 # don't include Makefile.dep for the listed targets:
125 ifeq "$(findstring $(MAKECMDGOALS),uninstall check installcheck installdirs checkconf \
126 clean distclean mostlyclean realclean)" ""
127 -include Makefile.dep