summaryrefslogtreecommitdiffstatshomepage
path: root/makefile
diff options
context:
space:
mode:
author couriersud <couriersud@arcor.de>2015-03-29 18:58:39 +0200
committer couriersud <couriersud@arcor.de>2015-03-29 18:58:39 +0200
commit4a6023e471d6fbbecfce6fb6ebd00746c26cc34b (patch)
tree1425ca164f368f652383492d093442fc832b3181 /makefile
parenta600e61c5865c2ce31cb2329d271d2aedd0b2f5f (diff)
Added two more options to the build system:
USE_QT: Compile the QT Debugger. Default is USE_QT=1 (except macosx), use USE_QT=0 to disable. LDOPTS: Optional LDFLAGs. These are mainly used for cross compilation. The following will compile a windows SDL build without QT debugger on linux: make TARGETOS=windows PTR64=1 OSD=sdl OS=linux \ OVERRIDE_CC="@x86_64-w64-mingw32-gcc" \ OVERRIDE_CXX="@x86_64-w64-mingw32-g++" \ OVERRIDE_LD="x86_64-w64-mingw32-g++" \ WINDRES="x86_64-w64-mingw32-windres" \ USE_QT=0 \ ARCHOPTS="-idirafter ${MINGW64DIR}/x86_64-w64-mingw32/include/ \ -I${MINGW64DIR}/Qt/include/ -v" SUBTARGET=tiny MINGW64=/usr \ \ LDOPTS="-L/mnt/mfhome/andre/mame/w64crosslibs"
Diffstat (limited to 'makefile')
-rw-r--r--makefile14
1 files changed, 14 insertions, 0 deletions
diff --git a/makefile b/makefile
index 2f41b8f9661..a0b6fa2a537 100644
--- a/makefile
+++ b/makefile
@@ -319,6 +319,20 @@ ifdef TARGETOS
PARAMS+= --targetos=$(TARGETOS)
endif
+ifdef USE_QT
+PARAMS+= --USE_QT=$(USE_QT)
+else
+ifneq ($(TARGETOS),macosx)
+PARAMS+= --USE_QT=1
+else
+PARAMS+= --USE_QT=0
+endif
+endif
+
+ifdef LDOPTS
+PARAMS+= --LDOPTS='$(LDOPTS)'
+endif
+
# extension for executables
EXE =