freebsd-ports/emulators/x49gp/files/patch-Makefile
Shaun Amott 411724c8b9 Fix build on 10.0-RC5/amd64.
Submitted by:	nox
2014-01-16 22:39:44 +00:00

40 lines
1.3 KiB
Text

--- Makefile.orig 2014-01-09 18:03:02.000000000 +0000
+++ Makefile 2014-01-09 18:04:14.000000000 +0000
@@ -31,10 +31,14 @@
-DDEBUG_X49GP_ENABLE_IRQ \
-DDEBUG_X49GP_UI
+ifdef DEBUGB
DEBUG = -g # -pg
+else
+DEBUG =
+endif
#2.09
-FIRMWARE = 4950_92.bin
+#FIRMWARE = 4950_92.bin
#2.10-7
#FIRMWARE = hp49g-u.bin
#HPGCC3 (copy HPGCC3 ROM first)
@@ -53,9 +57,12 @@
-fno-strict-aliasing
# Use this to debug
-# DEFINES = $(X49GP_DEBUG) $(QEMU_DEFINES)
+ifdef DEBUGB
+DEFINES = $(X49GP_DEBUG) $(QEMU_DEFINES)
+else
# Use this for speed
DEFINES = $(QEMU_DEFINES)
+endif
ifdef QEMU_OLD
QEMUSRC = qemu/prepare.sh \
@@ -81,6 +88,7 @@ QEMU_DIR_BUILD=$(QEMU_DIR)/arm-softmmu
QEMU_DEFINES+=-DNEED_CPU_H
X49GP_LDFLAGS=
X49GP_LIBS= $(QEMU_DIR_BUILD)/exec.o $(QEMU_DIR_BUILD)/translate-all.o $(QEMU_DIR_BUILD)/cpu-exec.o $(QEMU_DIR_BUILD)/translate.o $(QEMU_DIR_BUILD)/fpu/softfloat.o $(QEMU_DIR_BUILD)/op_helper.o $(QEMU_DIR_BUILD)/helper.o $(QEMU_DIR_BUILD)/disas.o $(QEMU_DIR_BUILD)/i386-dis.o $(QEMU_DIR_BUILD)/arm-dis.o $(QEMU_DIR_BUILD)/tcg/tcg.o $(QEMU_DIR_BUILD)/iwmmxt_helper.o $(QEMU_DIR_BUILD)/neon_helper.o
+X49GP_LIBS += -lz -lm
endif
QEMU_INCDIR=$(QEMU_DIR)
QEMU_INC=-I$(QEMU_INCDIR)/target-arm -I$(QEMU_INCDIR) -I$(QEMU_INCDIR)/fpu -I$(QEMU_INCDIR)/arm-softmmu