aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorretro-wertz2019-05-16 09:56:54 +0800
committerretro-wertz2019-05-19 11:40:50 +0800
commitb0ec2e6d0719603212373bcdaaedd5b7b5e43121 (patch)
treed274c1ddfd56a9e05138eacd73da147be3347185 /Makefile
parent4e0deb4b36b49a45061098fc531556bb6cea3e9e (diff)
downloadpcsx_rearmed-b0ec2e6d0719603212373bcdaaedd5b7b5e43121.tar.gz
pcsx_rearmed-b0ec2e6d0719603212373bcdaaedd5b7b5e43121.tar.bz2
pcsx_rearmed-b0ec2e6d0719603212373bcdaaedd5b7b5e43121.zip
Allow building without CHD, disable CHD for 3DS
- all platforms compiles with CHD support. - compile with HAVE_CHD=0 for no chd support. - CHD fails building for 3DS, not sure its even fast enough for the device. I tried asking in discord channel but haven't got reply. Disabling it till someone familiar with 3ds can fix it. http://p.0bl.net/123458
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile4
1 files changed, 3 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 98498c8..5732c14 100644
--- a/Makefile
+++ b/Makefile
@@ -159,6 +159,7 @@ endif
OBJS += plugins/cdrcimg/cdrcimg.o
# libchdr
+ifeq "$(HAVE_CHD)" "1"
CFLAGS += -Ideps/libchdr
OBJS += deps/crypto/md5.o
OBJS += deps/crypto/sha1.o
@@ -208,8 +209,9 @@ else
endif
CFLAGS += -Ideps/crypto -Ideps/flac-1.3.2/include -Ideps/flac-1.3.2/src/libFLAC/include -Ideps/flac-1.3.2/src/libFLAC/include -Ideps/lzma-16.04/C
-CFLAGS += -D'PACKAGE_VERSION="1.3.2"' -DFLAC__HAS_OGG=0 -DFLAC__NO_DLL -DHAVE_LROUND -DHAVE_STDINT_H -DHAVE_STDLIB_H -DFLAC__NO_DLL -D_7ZIP_ST
+CFLAGS += -DHAVE_CHD -D'PACKAGE_VERSION="1.3.2"' -DFLAC__HAS_OGG=0 -DFLAC__NO_DLL -DHAVE_LROUND -DHAVE_STDINT_H -DHAVE_STDLIB_H -DFLAC__NO_DLL -D_7ZIP_ST
LDFLAGS += -lm
+endif
# dfinput
OBJS += plugins/dfinput/main.o plugins/dfinput/pad.o plugins/dfinput/guncon.o