Make minor ios/tvos makefile adjustments
The targets do not create a file with the target name, so they should be
marked as .PHONY
We are not using implicit rules either, so we can disable them by
making .SUFFIXES empty
Group targets together
Also remove LIB_BASE variable, it has been unused since:
f7ab6ab36b
This commit is contained in:
committed by
Josh Tynjala
parent
c9ad850578
commit
d375d74459
@@ -5,18 +5,10 @@ endif
|
||||
|
||||
HAXE_BUILDS := $(ARCHS:%=build-haxe-%)
|
||||
|
||||
ifeq ("$(ACTION)","clean")
|
||||
default: clean
|
||||
else
|
||||
default: $(HAXE_BUILDS)
|
||||
endif
|
||||
|
||||
ifeq ("$(CONFIGURATION)","Debug")
|
||||
BUILD_STYLE := Debug
|
||||
endif
|
||||
|
||||
default: debug_print
|
||||
|
||||
ifeq ("$(BUILD_STYLE)","Debug")
|
||||
DEBUG := -debug
|
||||
CONFIG := Debug
|
||||
@@ -31,12 +23,19 @@ ifeq ("$(HAXE_OS)","iphonesimulator")
|
||||
endif
|
||||
CONFIG := $(CONFIG)-$(HAXE_OS)
|
||||
|
||||
LIB_DEST := $(DEBUG)/libApplicationMain.a
|
||||
|
||||
ifeq ("$(ACTION)","clean")
|
||||
default: clean
|
||||
else
|
||||
default: $(HAXE_BUILDS)
|
||||
endif
|
||||
|
||||
default: debug_print
|
||||
|
||||
debug_print:
|
||||
@echo "Make $(HAXE_BUILDS)"
|
||||
|
||||
LIB_BASE := build/$(CONFIG)/::CPP_LIBPREFIX::ApplicationMain$(DEBUG)
|
||||
LIB_DEST := $(DEBUG)/libApplicationMain.a
|
||||
|
||||
build-haxe-i386:
|
||||
@echo "Haxe simulator build: $(CONFIG)"
|
||||
haxe Build.hxml -D simulator -cpp build/$(CONFIG) $(DEBUG)
|
||||
@@ -74,3 +73,6 @@ build-haxe-arm64:
|
||||
|
||||
clean:
|
||||
rm -rf build
|
||||
|
||||
.PHONY: default debug_print clean $(HAXE_BUILDS)
|
||||
.SUFFIXES:
|
||||
|
||||
@@ -5,18 +5,10 @@ endif
|
||||
|
||||
HAXE_BUILDS := $(ARCHS:%=build-haxe-%)
|
||||
|
||||
ifeq ("$(ACTION)","clean")
|
||||
default: clean
|
||||
else
|
||||
default: $(HAXE_BUILDS)
|
||||
endif
|
||||
|
||||
ifeq ("$(CONFIGURATION)","Debug")
|
||||
BUILD_STYLE := Debug
|
||||
endif
|
||||
|
||||
default: debug_print
|
||||
|
||||
ifeq ("$(BUILD_STYLE)","Debug")
|
||||
DEBUG := -debug
|
||||
CONFIG := Debug
|
||||
@@ -31,12 +23,19 @@ ifeq ("$(HAXE_OS)","appletvsimulator")
|
||||
endif
|
||||
CONFIG := $(CONFIG)-$(HAXE_OS)
|
||||
|
||||
LIB_DEST := $(DEBUG)/libApplicationMain.a
|
||||
|
||||
ifeq ("$(ACTION)","clean")
|
||||
default: clean
|
||||
else
|
||||
default: $(HAXE_BUILDS)
|
||||
endif
|
||||
|
||||
default: debug_print
|
||||
|
||||
debug_print:
|
||||
@echo "Make $(HAXE_BUILDS)"
|
||||
|
||||
LIB_BASE := build/$(CONFIG)/::CPP_LIBPREFIX::ApplicationMain$(DEBUG)
|
||||
LIB_DEST := $(DEBUG)/libApplicationMain.a
|
||||
|
||||
build-haxe-x86_64:
|
||||
@echo "Haxe simulator build: $(CONFIG)-64"
|
||||
haxe Build.hxml -D simulator -D HXCPP_M64 -cpp build/$(CONFIG)-64 $(DEBUG)
|
||||
@@ -53,3 +52,6 @@ build-haxe-arm64:
|
||||
|
||||
clean:
|
||||
rm -rf build
|
||||
|
||||
.PHONY: default debug_print clean $(HAXE_BUILDS)
|
||||
.SUFFIXES:
|
||||
|
||||
Reference in New Issue
Block a user