even further cleanup of the makefile
This commit is contained in:
parent
50af1393c3
commit
3c6bf53dea
11
Makefile
11
Makefile
|
@ -473,9 +473,7 @@ ASFLAGS := -I include -I $(BUILD_DIR) $(VERSION_ASFLAGS)
|
||||||
|
|
||||||
ifeq ($(TARGET_WEB),1)
|
ifeq ($(TARGET_WEB),1)
|
||||||
LDFLAGS := -lm -lGL -lSDL2 -no-pie -s TOTAL_MEMORY=20MB -g4 --source-map-base http://localhost:8080/ -s "EXTRA_EXPORTED_RUNTIME_METHODS=['callMain']"
|
LDFLAGS := -lm -lGL -lSDL2 -no-pie -s TOTAL_MEMORY=20MB -g4 --source-map-base http://localhost:8080/ -s "EXTRA_EXPORTED_RUNTIME_METHODS=['callMain']"
|
||||||
else
|
else ifeq ($(WINDOWS_BUILD),1)
|
||||||
|
|
||||||
ifeq ($(WINDOWS_BUILD),1)
|
|
||||||
LDFLAGS := $(BITS) -march=$(TARGET_ARCH) -Llib -lpthread -lglew32 `$(SDLCONFIG) --static-libs` -lm -lglu32 -lsetupapi -ldinput8 -luser32 -lgdi32 -limm32 -lole32 -loleaut32 -lshell32 -lwinmm -lversion -luuid -lopengl32 -static
|
LDFLAGS := $(BITS) -march=$(TARGET_ARCH) -Llib -lpthread -lglew32 `$(SDLCONFIG) --static-libs` -lm -lglu32 -lsetupapi -ldinput8 -luser32 -lgdi32 -limm32 -lole32 -loleaut32 -lshell32 -lwinmm -lversion -luuid -lopengl32 -static
|
||||||
ifneq ($(CROSS),i686-w64-mingw32.static-)
|
ifneq ($(CROSS),i686-w64-mingw32.static-)
|
||||||
ifneq ($(CROSS),x86_64-w64-mingw32.static-)
|
ifneq ($(CROSS),x86_64-w64-mingw32.static-)
|
||||||
|
@ -485,17 +483,12 @@ ifeq ($(WINDOWS_BUILD),1)
|
||||||
ifeq ($(WINDOWS_CONSOLE),1)
|
ifeq ($(WINDOWS_CONSOLE),1)
|
||||||
LDFLAGS += -mconsole
|
LDFLAGS += -mconsole
|
||||||
endif
|
endif
|
||||||
endif
|
else ifeq ($(TARGET_RPI),1)
|
||||||
else
|
|
||||||
|
|
||||||
# Linux / Other builds below
|
# Linux / Other builds below
|
||||||
ifeq ($(TARGET_RPI),1)
|
|
||||||
LDFLAGS := $(OPT_FLAGS) -lm -lGLESv2 `$(SDLCONFIG) --libs` -no-pie
|
LDFLAGS := $(OPT_FLAGS) -lm -lGLESv2 `$(SDLCONFIG) --libs` -no-pie
|
||||||
else
|
else
|
||||||
LDFLAGS := $(BITS) -march=$(TARGET_ARCH) -lm -lGL `$(SDLCONFIG) --libs` -no-pie -lpthread
|
LDFLAGS := $(BITS) -march=$(TARGET_ARCH) -lm -lGL `$(SDLCONFIG) --libs` -no-pie -lpthread
|
||||||
endif
|
endif
|
||||||
endif
|
|
||||||
endif #Added for Pi ifeq
|
|
||||||
|
|
||||||
|
|
||||||
# Prevent a crash with -sopt
|
# Prevent a crash with -sopt
|
||||||
|
|
Loading…
Reference in New Issue