Changeset View
Changeset View
Standalone View
Standalone View
build/premake/premake5/build/gmake.macosx/example.make
Show All 21 Lines | ifeq ($(config),release) | ||||
endif | endif | ||||
TARGETDIR = ../../bin/release | TARGETDIR = ../../bin/release | ||||
TARGET = $(TARGETDIR)/example.so | TARGET = $(TARGETDIR)/example.so | ||||
OBJDIR = obj/Release/example | OBJDIR = obj/Release/example | ||||
DEFINES += -DPREMAKE_COMPRESSION -DCURL_STATICLIB -DPREMAKE_CURL -DNDEBUG | DEFINES += -DPREMAKE_COMPRESSION -DCURL_STATICLIB -DPREMAKE_CURL -DNDEBUG | ||||
INCLUDES += -I../../contrib/lua/src -I../../contrib/luashim | INCLUDES += -I../../contrib/lua/src -I../../contrib/luashim | ||||
FORCE_INCLUDE += | FORCE_INCLUDE += | ||||
ALL_CPPFLAGS += $(CPPFLAGS) -MMD -MP $(DEFINES) $(INCLUDES) | ALL_CPPFLAGS += $(CPPFLAGS) -MMD -MP $(DEFINES) $(INCLUDES) | ||||
ALL_CFLAGS += $(CFLAGS) $(ALL_CPPFLAGS) -O3 -fPIC -Wall -Wextra -mmacosx-version-min=10.4 | ALL_CFLAGS += $(CFLAGS) $(ALL_CPPFLAGS) -O3 -fPIC -Wall -Wextra -mmacosx-version-min=$(MIN_OSX_VERSION) | ||||
ALL_CXXFLAGS += $(CXXFLAGS) $(ALL_CPPFLAGS) -O3 -fPIC -Wall -Wextra -fno-stack-protector -mmacosx-version-min=10.4 | ALL_CXXFLAGS += $(CXXFLAGS) $(ALL_CPPFLAGS) -O3 -fPIC -Wall -Wextra -fno-stack-protector -mmacosx-version-min=$(MIN_OSX_VERSION) | ||||
ALL_RESFLAGS += $(RESFLAGS) $(DEFINES) $(INCLUDES) | ALL_RESFLAGS += $(RESFLAGS) $(DEFINES) $(INCLUDES) | ||||
LIBS += bin/Release/libluashim-lib.a | LIBS += bin/Release/libluashim-lib.a | ||||
LDDEPS += bin/Release/libluashim-lib.a | LDDEPS += bin/Release/libluashim-lib.a | ||||
ALL_LDFLAGS += $(LDFLAGS) -dynamiclib -Wl,-install_name,@rpath/example.so -mmacosx-version-min=10.4 | ALL_LDFLAGS += $(LDFLAGS) -dynamiclib -Wl,-install_name,@rpath/example.so -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)/example.so | TARGET = $(TARGETDIR)/example.so | ||||
OBJDIR = obj/Debug/example | OBJDIR = obj/Debug/example | ||||
DEFINES += -DPREMAKE_COMPRESSION -DCURL_STATICLIB -DPREMAKE_CURL -D_DEBUG | DEFINES += -DPREMAKE_COMPRESSION -DCURL_STATICLIB -DPREMAKE_CURL -D_DEBUG | ||||
INCLUDES += -I../../contrib/lua/src -I../../contrib/luashim | INCLUDES += -I../../contrib/lua/src -I../../contrib/luashim | ||||
FORCE_INCLUDE += | FORCE_INCLUDE += | ||||
ALL_CPPFLAGS += $(CPPFLAGS) -MMD -MP $(DEFINES) $(INCLUDES) | ALL_CPPFLAGS += $(CPPFLAGS) -MMD -MP $(DEFINES) $(INCLUDES) | ||||
ALL_CFLAGS += $(CFLAGS) $(ALL_CPPFLAGS) -fPIC -g -Wall -Wextra -mmacosx-version-min=10.4 | ALL_CFLAGS += $(CFLAGS) $(ALL_CPPFLAGS) -fPIC -g -Wall -Wextra -mmacosx-version-min=$(MIN_OSX_VERSION) | ||||
ALL_CXXFLAGS += $(CXXFLAGS) $(ALL_CPPFLAGS) -fPIC -g -Wall -Wextra -mmacosx-version-min=10.4 | ALL_CXXFLAGS += $(CXXFLAGS) $(ALL_CPPFLAGS) -fPIC -g -Wall -Wextra -mmacosx-version-min=$(MIN_OSX_VERSION) | ||||
ALL_RESFLAGS += $(RESFLAGS) $(DEFINES) $(INCLUDES) | ALL_RESFLAGS += $(RESFLAGS) $(DEFINES) $(INCLUDES) | ||||
LIBS += bin/Debug/libluashim-lib.a | LIBS += bin/Debug/libluashim-lib.a | ||||
LDDEPS += bin/Debug/libluashim-lib.a | LDDEPS += bin/Debug/libluashim-lib.a | ||||
ALL_LDFLAGS += $(LDFLAGS) -dynamiclib -Wl,-install_name,@rpath/example.so -mmacosx-version-min=10.4 | ALL_LDFLAGS += $(LDFLAGS) -dynamiclib -Wl,-install_name,@rpath/example.so -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 61 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