Rename Makefile to Makefile.old

This commit is contained in:
2022-07-31 13:46:16 +02:00
parent c77e90ab76
commit 633adb50ae
2 changed files with 76 additions and 76 deletions

View File

@@ -0,0 +1,68 @@
VERBOSE_BUILD := false
GAMELIB_DIR := ..
GameLibConfig := $(GAMELIB_DIR)/gamelib-config
GAMELIB_MAKEPARAMS :=
ARCH :=
ifeq ($(arch),emscripten)
ARCH := emscripten
GAMELIB_MAKEPARAMS := arch=emscripten
endif
LIBS := $(shell $(GameLibConfig) $(ARCH) --libs)
STATICLIBS := $(shell $(GameLibConfig) $(ARCH) --static-libs)
CFLAGS := $(shell $(GameLibConfig) $(ARCH) --cflags)
PLATFORM := $(shell $(GameLibConfig) $(ARCH) --platform)
EXEEXT := $(shell $(GameLibConfig) $(ARCH) --exe-extension)
LDFLAGS := $(shell $(GameLibConfig) $(ARCH) --ldflags)
RES_GAME := game$(EXEEXT)
BUILDDIR := build-$(PLATFORM)
HOST_ARCH :=
HOST_OS := $(shell uname -o )
HOST_KERNEL := $(shell uname -s )
ifeq ($(HOST_OS),Msys)
HOST_ARCH := mingw
endif
ifeq ($(HOST_KERNEL),Linux)
HOST_ARCH := linux
endif
ifeq ($(HOST_KERNEL),Darwin)
HOST_ARCH := macosx
endif
ifeq ($(HOST_ARCH),mingw)
CC := gcc
AR := ar
LAUNCHER :=
RM := rm -rf
MKDIR := mkdir
ECHO := echo
endif
ifeq ($(HOST_ARCH),linux)
CC := gcc
AR := ar
LAUNCHER :=
RM := rm -rf
MKDIR := mkdir
ECHO := echo
endif
ifeq ($(HOST_ARCH),macosx)
CC := gcc
AR := ar
LAUNCHER :=
RM := rm -rf
MKDIR := mkdir
ECHO := echo
endif
ifeq ($(ARCH),emscripten)
CC := emcc
AR := emar
LAUNCHER := emrun --port 8080
endif
include Makefile.common.mk