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:
Tobiasz Laskowski
2025-01-22 15:45:06 +00:00
committed by Josh Tynjala
parent c9ad850578
commit d375d74459
2 changed files with 26 additions and 22 deletions

View File

@@ -5,18 +5,10 @@ endif
HAXE_BUILDS := $(ARCHS:%=build-haxe-%) HAXE_BUILDS := $(ARCHS:%=build-haxe-%)
ifeq ("$(ACTION)","clean")
default: clean
else
default: $(HAXE_BUILDS)
endif
ifeq ("$(CONFIGURATION)","Debug") ifeq ("$(CONFIGURATION)","Debug")
BUILD_STYLE := Debug BUILD_STYLE := Debug
endif endif
default: debug_print
ifeq ("$(BUILD_STYLE)","Debug") ifeq ("$(BUILD_STYLE)","Debug")
DEBUG := -debug DEBUG := -debug
CONFIG := Debug CONFIG := Debug
@@ -31,12 +23,19 @@ ifeq ("$(HAXE_OS)","iphonesimulator")
endif endif
CONFIG := $(CONFIG)-$(HAXE_OS) CONFIG := $(CONFIG)-$(HAXE_OS)
LIB_DEST := $(DEBUG)/libApplicationMain.a
ifeq ("$(ACTION)","clean")
default: clean
else
default: $(HAXE_BUILDS)
endif
default: debug_print
debug_print: debug_print:
@echo "Make $(HAXE_BUILDS)" @echo "Make $(HAXE_BUILDS)"
LIB_BASE := build/$(CONFIG)/::CPP_LIBPREFIX::ApplicationMain$(DEBUG)
LIB_DEST := $(DEBUG)/libApplicationMain.a
build-haxe-i386: build-haxe-i386:
@echo "Haxe simulator build: $(CONFIG)" @echo "Haxe simulator build: $(CONFIG)"
haxe Build.hxml -D simulator -cpp build/$(CONFIG) $(DEBUG) haxe Build.hxml -D simulator -cpp build/$(CONFIG) $(DEBUG)
@@ -74,3 +73,6 @@ build-haxe-arm64:
clean: clean:
rm -rf build rm -rf build
.PHONY: default debug_print clean $(HAXE_BUILDS)
.SUFFIXES:

View File

@@ -5,18 +5,10 @@ endif
HAXE_BUILDS := $(ARCHS:%=build-haxe-%) HAXE_BUILDS := $(ARCHS:%=build-haxe-%)
ifeq ("$(ACTION)","clean")
default: clean
else
default: $(HAXE_BUILDS)
endif
ifeq ("$(CONFIGURATION)","Debug") ifeq ("$(CONFIGURATION)","Debug")
BUILD_STYLE := Debug BUILD_STYLE := Debug
endif endif
default: debug_print
ifeq ("$(BUILD_STYLE)","Debug") ifeq ("$(BUILD_STYLE)","Debug")
DEBUG := -debug DEBUG := -debug
CONFIG := Debug CONFIG := Debug
@@ -31,12 +23,19 @@ ifeq ("$(HAXE_OS)","appletvsimulator")
endif endif
CONFIG := $(CONFIG)-$(HAXE_OS) CONFIG := $(CONFIG)-$(HAXE_OS)
LIB_DEST := $(DEBUG)/libApplicationMain.a
ifeq ("$(ACTION)","clean")
default: clean
else
default: $(HAXE_BUILDS)
endif
default: debug_print
debug_print: debug_print:
@echo "Make $(HAXE_BUILDS)" @echo "Make $(HAXE_BUILDS)"
LIB_BASE := build/$(CONFIG)/::CPP_LIBPREFIX::ApplicationMain$(DEBUG)
LIB_DEST := $(DEBUG)/libApplicationMain.a
build-haxe-x86_64: build-haxe-x86_64:
@echo "Haxe simulator build: $(CONFIG)-64" @echo "Haxe simulator build: $(CONFIG)-64"
haxe Build.hxml -D simulator -D HXCPP_M64 -cpp build/$(CONFIG)-64 $(DEBUG) haxe Build.hxml -D simulator -D HXCPP_M64 -cpp build/$(CONFIG)-64 $(DEBUG)
@@ -53,3 +52,6 @@ build-haxe-arm64:
clean: clean:
rm -rf build rm -rf build
.PHONY: default debug_print clean $(HAXE_BUILDS)
.SUFFIXES: