diff --git a/mupen64plus-rsp-hle/projects/unix/Makefile b/mupen64plus-rsp-hle/projects/unix/Makefile index 27a58b4..43b7368 100755 --- a/mupen64plus-rsp-hle/projects/unix/Makefile +++ b/mupen64plus-rsp-hle/projects/unix/Makefile @@ -134,10 +134,13 @@ ifeq ("$(CPU)","NONE") $(error CPU type "$(HOST_CPU)" not supported. Please file bug report at 'https://github.com/mupen64plus/mupen64plus-core/issues') endif +SRCDIR = ../../src +OBJDIR = _obj$(POSTFIX) + # base CFLAGS, LDLIBS, and LDFLAGS OPTFLAGS ?= -O3 -flto WARNFLAGS ?= -Wall -CFLAGS += $(OPTFLAGS) $(WARNFLAGS) -ffast-math -fno-strict-aliasing -fvisibility=hidden -I../../src +CFLAGS += $(OPTFLAGS) $(WARNFLAGS) -ffast-math -fno-strict-aliasing -fvisibility=hidden -I$(SRCDIR) LDFLAGS += $(SHARED) # Since we are building a shared library, we must compile with -fPIC on some architectures @@ -245,10 +248,6 @@ ifeq ($(DUMP), 1) CFLAGS += -DENABLE_TASK_DUMP endif - -SRCDIR = ../../src -OBJDIR = _obj$(POSTFIX) - # list of source files to compile SOURCE = \ $(SRCDIR)/alist.c \