diff --git a/include/engine/archtypes.h b/include/engine/archtypes.h index 060383b..f5e4aea 100644 --- a/include/engine/archtypes.h +++ b/include/engine/archtypes.h @@ -73,6 +73,8 @@ typedef unsigned int uint; #include // Maximum and minimum representable values +// fixing compiling againt maxosx10.10 +#if 0 #define INT8_MAX SCHAR_MAX #define INT16_MAX SHRT_MAX #define INT32_MAX LONG_MAX @@ -102,6 +104,7 @@ typedef unsigned int uint; #define FLOAT32_MIN FLT_MIN #define FLOAT64_MIN DBL_MIN +#endif // portability / compiler settings #if defined(_WIN32) && !defined(WINDED) diff --git a/project/makefile b/project/makefile index 764110e..88315da 100644 --- a/project/makefile +++ b/project/makefile @@ -14,11 +14,11 @@ SRC_DIR = ../source OBJECTS = $(SRC_DIR)/basecode.cpp \ $(SRC_DIR)/manager.cpp \ $(SRC_DIR)/chatlib.cpp \ - $(SRC_DIR)/combat.cpp \ + $(SRC_DIR)/combat.cpp \ $(SRC_DIR)/globals.cpp \ $(SRC_DIR)/interface.cpp \ $(SRC_DIR)/navigate.cpp \ - $(SRC_DIR)/netmsg.cpp \ + $(SRC_DIR)/netmsg.cpp \ $(SRC_DIR)/support.cpp \ $(SRC_DIR)/waypoint.cpp \ @@ -32,7 +32,12 @@ CPP_OSX = clang LINK = INCLUDE = -I../include -I../include/engine -OS := $(shell uname -s) +ifeq "$(OSX)" "true" + OS = Darwin + CPP_OSX = o32-clang +else + OS := $(shell uname -s) +endif ifeq "$(OS)" "Darwin" CPP = $(CPP_OSX) @@ -58,7 +63,10 @@ ifeq "$(DEBUG)" "true" else BIN_DIR = release CFLAGS += $(C_OPT_FLAGS) - LINK += -s + + ifeq "$(OS)" "Linux" + LINK += -s + endif endif IS_CLANG := $(shell $(CPP) --version | head -1 | grep clang > /dev/null && echo "1" || echo "0") @@ -104,7 +112,7 @@ $(BIN_DIR)/%.o: %.cpp $(CPP) $(INCLUDE) $(CFLAGS) $(CPPFLAGS) -o $(subst $(SRC_DIR)/,,$@) -c $< main: - make $(PROJECT) + $(MAKE) $(PROJECT) $(PROJECT): $(OBJ_BIN) $(CPP) $(INCLUDE) $(subst $(SRC_DIR)/,,$(OBJ_BIN)) $(LINK) -o $(BIN_DIR)/$(BINARY) @@ -117,11 +125,20 @@ release: mkdir -p release $(MAKE) main DEBUG=false -all: release debug +release_osx: + mkdir -p release + $(MAKE) main OSX=true DEBUG=false + +debug_osx: + mkdir -p debug + $(MAKE) main OSX=true DEBUG=true + +all_linux: release debug +all_osx: release_osx debug_osx +all: all_linux all_osx default: all clean: rm -rf release rm -rf debug - diff --git a/project/yapb.vcxproj.filters b/project/yapb.vcxproj.filters index 6c66ac5..65ed8c9 100644 --- a/project/yapb.vcxproj.filters +++ b/project/yapb.vcxproj.filters @@ -30,9 +30,6 @@ include - - include\engine - include\engine @@ -66,6 +63,9 @@ include\engine + + include\engine +