Previous 199869 Revisions Next

r36714 Friday 27th March, 2015 at 14:11:41 UTC by Miodrag Milanović
renamed CC to OVERRIDE_CC and same for CXX and LD since otherwise values sent to GENie are makefile defaults and they always overwrite values in built scripts (nw)
[/trunk]makefile

trunk/makefile
r245225r245226
1818ifdef TOOLS
1919PARAMS+= --with-tools
2020endif
21ifdef CC
22PARAMS+= --CC='$(CC)'
23endif
24ifdef CXX
25PARAMS+= --CXX='$(CXX)'
26endif
27ifdef LD
28PARAMS+= --LD='$(LD)'
29endif
3021
3122#-------------------------------------------------
3223# specify core target: mame, mess, etc.
r245225r245226
154145
155146
156147PYTHON = @python
148CC = @gcc
149LD = @g++
157150
158151#-------------------------------------------------
159152# distribution may change things
r245225r245226
165158ifeq ($(DISTRO),debian-stable)
166159else
167160ifeq ($(DISTRO),ubuntu-intrepid)
161# Force gcc-4.2 on ubuntu-intrepid
162CC = @gcc -V 4.2
163LD = @g++-4.2
168164else
169165ifeq ($(DISTRO),gcc44-generic)
166CC = @gcc-4.4
167LD = @g++-4.4
170168else
171169ifeq ($(DISTRO),gcc45-generic)
170CC = @gcc-4.5
171LD = @g++-4.5
172172else
173173ifeq ($(DISTRO),gcc46-generic)
174CC = @gcc-4.6
175LD = @g++-4.6
174176else
175177ifeq ($(DISTRO),gcc47-generic)
178CC = @gcc-4.7
179LD = @g++-4.7
176180else
177181$(error DISTRO $(DISTRO) unknown)
178182endif
r245225r245226
185189
186190PARAMS+= --distro=$(DISTRO)
187191
192ifdef OVERRIDE_CC
193PARAMS+= --CC='$(OVERRIDE_CC)'
194CC = $(OVERRIDE_CC)
195endif
196ifdef OVERRIDE_CXX
197PARAMS+= --CXX='$(OVERRIDE_CXX)'
198CXX = $(OVERRIDE_CXX)
199endif
200ifdef OVERRIDE_LD
201PARAMS+= --LD='$(OVERRIDE_LD)'
202LD = $(OVERRIDE_LD)
203endif
204
188205#-------------------------------------------------
189206# sanity check the configuration
190207#-------------------------------------------------


Previous 199869 Revisions Next


© 1997-2024 The MAME Team