Changeset View
Changeset View
Standalone View
Standalone View
build/premake/premake5/build/gmake.macosx/Premake5.make
Show All 21 Lines | ifeq ($(config),release) | ||||
endif | endif | ||||
TARGETDIR = ../../bin/release | TARGETDIR = ../../bin/release | ||||
TARGET = $(TARGETDIR)/premake5 | TARGET = $(TARGETDIR)/premake5 | ||||
OBJDIR = obj/Release/Premake5 | OBJDIR = obj/Release/Premake5 | ||||
DEFINES += -DPREMAKE_COMPRESSION -DCURL_STATICLIB -DPREMAKE_CURL -DNDEBUG -DLUA_USE_MACOSX | DEFINES += -DPREMAKE_COMPRESSION -DCURL_STATICLIB -DPREMAKE_CURL -DNDEBUG -DLUA_USE_MACOSX | ||||
INCLUDES += -I../../contrib/lua/src -I../../contrib/luashim -I../../contrib/zlib -I../../contrib/libzip -I../../contrib/curl/include | INCLUDES += -I../../contrib/lua/src -I../../contrib/luashim -I../../contrib/zlib -I../../contrib/libzip -I../../contrib/curl/include | ||||
FORCE_INCLUDE += | FORCE_INCLUDE += | ||||
ALL_CPPFLAGS += $(CPPFLAGS) -MMD -MP $(DEFINES) $(INCLUDES) | ALL_CPPFLAGS += $(CPPFLAGS) -MMD -MP $(DEFINES) $(INCLUDES) | ||||
ALL_CFLAGS += $(CFLAGS) $(ALL_CPPFLAGS) -O3 -Wall -Wextra -mmacosx-version-min=10.4 | ALL_CFLAGS += $(CFLAGS) $(ALL_CPPFLAGS) -O3 -Wall -Wextra -mmacosx-version-min=$(MIN_OSX_VERSION) | ||||
ALL_CXXFLAGS += $(CXXFLAGS) $(ALL_CPPFLAGS) -O3 -Wall -Wextra -fno-stack-protector -mmacosx-version-min=10.4 | ALL_CXXFLAGS += $(CXXFLAGS) $(ALL_CPPFLAGS) -O3 -Wall -Wextra -fno-stack-protector -mmacosx-version-min=$(MIN_OSX_VERSION) | ||||
ALL_RESFLAGS += $(RESFLAGS) $(DEFINES) $(INCLUDES) | ALL_RESFLAGS += $(RESFLAGS) $(DEFINES) $(INCLUDES) | ||||
LIBS += bin/Release/liblua-lib.a bin/Release/libzip-lib.a bin/Release/libzlib-lib.a bin/Release/libcurl-lib.a -framework CoreServices -framework Foundation -framework Security -lreadline | LIBS += bin/Release/liblua-lib.a bin/Release/libzip-lib.a bin/Release/libzlib-lib.a bin/Release/libcurl-lib.a -framework CoreServices -framework Foundation -framework Security -lreadline | ||||
LDDEPS += bin/Release/liblua-lib.a bin/Release/libzip-lib.a bin/Release/libzlib-lib.a bin/Release/libcurl-lib.a | LDDEPS += bin/Release/liblua-lib.a bin/Release/libzip-lib.a bin/Release/libzlib-lib.a bin/Release/libcurl-lib.a | ||||
ALL_LDFLAGS += $(LDFLAGS) -mmacosx-version-min=10.4 | ALL_LDFLAGS += $(LDFLAGS) -mmacosx-version-min=$(MIN_OSX_VERSION) | ||||
LINKCMD = $(CC) -o "$@" $(OBJECTS) $(RESOURCES) $(ALL_LDFLAGS) $(LIBS) | LINKCMD = $(CC) -o "$@" $(OBJECTS) $(RESOURCES) $(ALL_LDFLAGS) $(LIBS) | ||||
define PREBUILDCMDS | define PREBUILDCMDS | ||||
endef | endef | ||||
define PRELINKCMDS | define PRELINKCMDS | ||||
endef | endef | ||||
define POSTBUILDCMDS | define POSTBUILDCMDS | ||||
endef | endef | ||||
all: prebuild prelink $(TARGET) | all: prebuild prelink $(TARGET) | ||||
Show All 13 Lines | ifeq ($(config),debug) | ||||
endif | endif | ||||
TARGETDIR = ../../bin/debug | TARGETDIR = ../../bin/debug | ||||
TARGET = $(TARGETDIR)/premake5 | TARGET = $(TARGETDIR)/premake5 | ||||
OBJDIR = obj/Debug/Premake5 | OBJDIR = obj/Debug/Premake5 | ||||
DEFINES += -DPREMAKE_COMPRESSION -DCURL_STATICLIB -DPREMAKE_CURL -D_DEBUG -DLUA_USE_MACOSX | DEFINES += -DPREMAKE_COMPRESSION -DCURL_STATICLIB -DPREMAKE_CURL -D_DEBUG -DLUA_USE_MACOSX | ||||
INCLUDES += -I../../contrib/lua/src -I../../contrib/luashim -I../../contrib/zlib -I../../contrib/libzip -I../../contrib/curl/include | INCLUDES += -I../../contrib/lua/src -I../../contrib/luashim -I../../contrib/zlib -I../../contrib/libzip -I../../contrib/curl/include | ||||
FORCE_INCLUDE += | FORCE_INCLUDE += | ||||
ALL_CPPFLAGS += $(CPPFLAGS) -MMD -MP $(DEFINES) $(INCLUDES) | ALL_CPPFLAGS += $(CPPFLAGS) -MMD -MP $(DEFINES) $(INCLUDES) | ||||
ALL_CFLAGS += $(CFLAGS) $(ALL_CPPFLAGS) -g -Wall -Wextra -mmacosx-version-min=10.4 | ALL_CFLAGS += $(CFLAGS) $(ALL_CPPFLAGS) -g -Wall -Wextra -mmacosx-version-min=$(MIN_OSX_VERSION) | ||||
ALL_CXXFLAGS += $(CXXFLAGS) $(ALL_CPPFLAGS) -g -Wall -Wextra -mmacosx-version-min=10.4 | ALL_CXXFLAGS += $(CXXFLAGS) $(ALL_CPPFLAGS) -g -Wall -Wextra -mmacosx-version-min=$(MIN_OSX_VERSION) | ||||
ALL_RESFLAGS += $(RESFLAGS) $(DEFINES) $(INCLUDES) | ALL_RESFLAGS += $(RESFLAGS) $(DEFINES) $(INCLUDES) | ||||
LIBS += bin/Debug/liblua-lib.a bin/Debug/libzip-lib.a bin/Debug/libzlib-lib.a bin/Debug/libcurl-lib.a -framework CoreServices -framework Foundation -framework Security -lreadline | LIBS += bin/Debug/liblua-lib.a bin/Debug/libzip-lib.a bin/Debug/libzlib-lib.a bin/Debug/libcurl-lib.a -framework CoreServices -framework Foundation -framework Security -lreadline | ||||
LDDEPS += bin/Debug/liblua-lib.a bin/Debug/libzip-lib.a bin/Debug/libzlib-lib.a bin/Debug/libcurl-lib.a | LDDEPS += bin/Debug/liblua-lib.a bin/Debug/libzip-lib.a bin/Debug/libzlib-lib.a bin/Debug/libcurl-lib.a | ||||
ALL_LDFLAGS += $(LDFLAGS) -mmacosx-version-min=10.4 | ALL_LDFLAGS += $(LDFLAGS) -mmacosx-version-min=$(MIN_OSX_VERSION) | ||||
LINKCMD = $(CC) -o "$@" $(OBJECTS) $(RESOURCES) $(ALL_LDFLAGS) $(LIBS) | LINKCMD = $(CC) -o "$@" $(OBJECTS) $(RESOURCES) $(ALL_LDFLAGS) $(LIBS) | ||||
define PREBUILDCMDS | define PREBUILDCMDS | ||||
endef | endef | ||||
define PRELINKCMDS | define PRELINKCMDS | ||||
endef | endef | ||||
define POSTBUILDCMDS | define POSTBUILDCMDS | ||||
endef | endef | ||||
all: prebuild prelink $(TARGET) | all: prebuild prelink $(TARGET) | ||||
▲ Show 20 Lines • Show All 502 Lines • ▼ Show 20 Lines | |||||
else | else | ||||
$(SILENT) mkdir $(subst /,\\,$(OBJDIR)) | $(SILENT) mkdir $(subst /,\\,$(OBJDIR)) | ||||
endif | endif | ||||
$(SILENT) $(CC) $(ALL_CFLAGS) $(FORCE_INCLUDE) -o "$@" -MF "$(@:%.o=%.d)" -c "$<" | $(SILENT) $(CC) $(ALL_CFLAGS) $(FORCE_INCLUDE) -o "$@" -MF "$(@:%.o=%.d)" -c "$<" | ||||
-include $(OBJECTS:%.o=%.d) | -include $(OBJECTS:%.o=%.d) | ||||
ifneq (,$(PCH)) | ifneq (,$(PCH)) | ||||
-include $(OBJDIR)/$(notdir $(PCH)).d | -include $(OBJDIR)/$(notdir $(PCH)).d | ||||
endif | endif | ||||
No newline at end of file |
Wildfire Games · Phabricator