From a94f5607067b3c76c19f7ab153b1f180b67f9119 Mon Sep 17 00:00:00 2001 From: Holger Wirtz Date: Mon, 9 Jan 2017 11:13:13 +0100 Subject: [PATCH] Added options for standard PC (Intel) to Makefile --- src/Makefile | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/src/Makefile b/src/Makefile index d079d94..298d3ba 100644 --- a/src/Makefile +++ b/src/Makefile @@ -1,5 +1,5 @@ BUNDLE=dexed.lv2 -INSTALL_DIR=/zynthian/zynthian-plugins/lv2 +INSTALL_DIR=/zynthian/zynthian-plugins/mod-lv2 TARGET=dexed.so OBJ=fm_core.o env.o lfo.o dx7note.o sin.o pitchenv.o fm_op_kernel.o freqlut.o exp2.o EngineMkI.o EngineOpl.o PluginFx.o trace.o CFLAGS=-fPIC -DPIC -std=c++11 -I. -I/usr/local/include/lvtk-2 -DLVTK_DEBUG=false @@ -12,6 +12,12 @@ ifeq ($(ARCH),) endif machine = $(shell sh -c 'uname -m 2>/dev/null || echo unknown') +# Intel-PC +ifneq (,$(findstring x86,$(machine))) + CPU = + FPU = +endif + # Raspberry Pi B+, Zero, etc ifneq (,$(findstring armv6l,$(machine))) CPU = -mcpu=arm1176jzf-s @@ -48,8 +54,8 @@ ifeq ($(DEBUG), 1) CXXFLAGS += -DDEBUG $(CFLAGS) $(CFLAGS_OPTIONS) endif else - #CXXFLAGS += -Ofast $(CFLAGS) $(CPU) $(FPU) - CXXFLAGS += $(CFLAGS) $(CFLAGS_OPTIONS) -O3 -mcpu=cortex-a7 -mtune=cortex-a7 -mfpu=neon-vfpv4 -mfloat-abi=hard -mvectorize-with-neon-quad + #CXXFLAGS += $(CFLAGS) $(CFLAGS_OPTIONS) -O3 -mcpu=cortex-a7 -mtune=cortex-a7 -mfpu=neon-vfpv4 -mfloat-abi=hard -mvectorize-with-neon-quad + CXXFLAGS += $(CFLAGS) $(CFLAGS_OPTIONS) -O3 endif all: $(BUNDLE) Makefile