Skip to content
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Updating Makefile to support both 32 and 64bit
  • Loading branch information
tarekwiz authored Mar 7, 2019
commit 0fd1fc39c7456ae1d7701120df3b17a2cb85e72d
22 changes: 20 additions & 2 deletions NativeCore/Unix/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,29 @@ LD = g++
WINDRES = windres

INC = -I../Dependencies/distorm/include
CFLAGS = -Wall -fPIC -m32
CFLAGS = -Wall -fPIC
RESINC =
LIBDIR =

LIB = -lstdc++
LDFLAGS = -m32 --shared -Wl
LDFLAGS = -shared -Wl,--no-undefined

UNAME_S := $(shell uname -s)
find_32 = $(findstring 32,$(firstword -$(MAKEFLAGS)))$(filter -32,$(MAKEFLAGS))
ifeq ($(UNAME_S),Linux)
LIB += -lstdc++fs
endif



if $(find_s)
LDFLAGS += -m32
CFLAGS += -m32
else
CFLAGS += -DRECLASSNET64=1
endif



INC_DEBUG = $(INC)
CFLAGS_DEBUG = $(CFLAGS) -g
Expand Down