endif
endif
ifeq "$(OP_SYSTEM)" "WIN32"
- COMPILER := GNU_WINDOWS
-# COMPILER := VISUAL_CPP
+# COMPILER := GNU_WINDOWS
+ COMPILER := VISUAL_CPP
endif
ifeq "$(COMPILER)" ""
# if we get into this case, we have no idea how to set the default
# Add the obligatory junk to be cleaned up. Individual compiler sections
# should customize this by adding their object output directories.
-CLEANUPS += $(ACTUAL_TARGETS) $(OUTPUT_PATH)
+CLEANUPS += $(ACTUAL_TARGETS) $(OUTPUT_PATH) $(DEPS_FILE)
# "GENDEPS" is a flag that causes dependencies to be generated into
# statically built applications.
DEFINITIONS += NO_VERSION
endif
+############################################################################
+# compiler specific section below.
+############################################################################
+
ifeq "$(COMPILER)" "GNU_LINUX"
# Unix GNU compiler...
CC = g++
endif
+############################################################################
+
ifeq "$(COMPILER)" "GNU_ARM_LINUX"
# ARM-linux GNU compiler...
COMPILER_ROOT_DIR = /usr/local/arm-linux
endif
+############################################################################
+
ifeq "$(COMPILER)" "GNU_WINDOWS"
# GNU compiler for MS Windoze...
CC = g++
###$(COMPILER_ROOT_DIR)/usr/include/mingw $(COMPILER_ROOT_DIR)/usr/include $(COMPILER_ROOT_DIR)/usr/include/w32api $(COMPILER_ROOT_DIR)/usr/include/extras
COMPILER_LIBRARY_DIR = $(COMPILER_ROOT_DIR)/lib
- DEFINITIONS += __GNU_WINDOWS__ _Windows _WINDOWS WIN32 __WIN32__ __FLAT__ VC_EXTRALEAN WIN32_LEAN_AND_MEAN ATL_NO_LEAN_AND_MEAN _WIN32 __cplusplus __USE_W32_SOCKETS
+ DEFINITIONS += __GNU_WINDOWS__ _Windows _WINDOWS WIN32 __WIN32__ __FLAT__ VC_EXTRALEAN WIN32_LEAN_AND_MEAN ATL_NO_LEAN_AND_MEAN _WIN32 __USE_W32_SOCKETS
+#__cplusplus
#__USE_GNU
LIBRARY_TOOL = ar
LIBRARY_PATH_FLAG = -L
LIB_PREFIX = lib
+ LIB_ENDING = .a
# LOAD_FLAG_PREFIX += -lpthread
LOAD_FLAG_PREFIX += -mwindows
CREATE_LIBRARY_FLAG += -r
MIDL_DEFS = -no_robust
# some lovely definitions used by some of the mfc and other ms code.
DEPENDENCY_DEFINITIONS += __cplusplus __MINGW32__ _WIN32 _CHAR_UNSIGNED M_I86 _M_I86 _M_IX86=500 _WIN32_WINNT=0x501 __RPC_WIN32__ __RPCNDR_H_VERSION__ __RPCPROXY_H_VERSION__ TARGET_IS_NT40_OR_LATER PGM_SETCHILD _MFC_VER=0x0600
+
endif
+############################################################################
+
ifeq "$(COMPILER)" "VISUAL_CPP"
# microsoft visual c++ 4.x, 5.x or 6.x.
# now, vary the flag configuration based on the flags that have been set.
+####override for windows since things are broken with WinMain
+###export CONSOLE_MODE = true
+
ifneq "$(CONSOLE_MODE)" ""
# console type of applications are built using the static flag so that
# they are more redistributable.
endif
+############################################################################
+
ifeq "$(COMPILER)" "GNU_DARWIN"
# Darwin kernel GNU compiler...
CC = g++