summaryrefslogtreecommitdiffstatshomepage
path: root/src/devices/cpu/m68000
diff options
context:
space:
mode:
author Miodrag Milanovic <mmicko@gmail.com>2016-01-30 08:11:57 +0100
committer Miodrag Milanovic <mmicko@gmail.com>2016-01-30 08:11:57 +0100
commitdbb6c113130adc59b23d92ff38a2e02cb1d71e2f (patch)
tree06ba09fa02126ae4851b28e72b2e96fbaea19232 /src/devices/cpu/m68000
parent02b1050f16899bdd76e081ebfb631e8c49326e54 (diff)
makefile should inherit CC and GCC if set in parent makefile (nw)
Diffstat (limited to 'src/devices/cpu/m68000')
-rw-r--r--src/devices/cpu/m68000/makefile12
1 files changed, 9 insertions, 3 deletions
diff --git a/src/devices/cpu/m68000/makefile b/src/devices/cpu/m68000/makefile
index fbf49c6ce0e..be25a067a78 100644
--- a/src/devices/cpu/m68000/makefile
+++ b/src/devices/cpu/m68000/makefile
@@ -8,6 +8,12 @@ ifeq ($(OS),os2)
EXE := .exe
endif
+ifndef verbose
+ SILENT = @
+endif
+CC = gcc
+CXX = g++
+
.PHONY: all clean
all : m68kmake$(EXE) m68kops.cpp
@@ -19,13 +25,13 @@ clean:
-@rm -f m68kops.*
m68kmake.o: m68kmake.cpp
- @gcc -x c++ -std=c++11 -o "$@" -c "$<"
+ $(SILENT) $(CC) -x c++ -std=c++11 -o "$@" -c "$<"
m68kmake$(EXE) : m68kmake.o
@echo Linking $@...
- @g++ -lstdc++ $^ -o $@
+ $(SILENT) $(CXX) -lstdc++ $^ -o $@
m68kops.cpp: m68kmake$(EXE) m68k_in.cpp
@echo Generating M68K source files...
- @./m68kmake$(EXE) . m68k_in.cpp
+ $(SILENT) ./m68kmake$(EXE) . m68k_in.cpp