1# Time-stamp: <04/04/30 23:41:02 ptr> 2# $Id$ 3 4!ifdef TARGET_PROC 5TARGET_NAME=$(COMPILER_NAME)-$(TARGET_PROC) 6!else 7TARGET_NAME=$(COMPILER_NAME) 8!endif 9 10# special case for evc3/evc4 emulator compiles 11!if "$(TARGET_PROC)-$(TARGET_PROC_SUBTYPE)" == "x86-emulator" 12TARGET_NAME=$(COMPILER_NAME)-$(TARGET_PROC_SUBTYPE) 13!endif 14 15OUTPUT_ROOT_DIR = obj 16OUTPUT_TARGET_DIR = $(OUTPUT_ROOT_DIR)\$(TARGET_NAME) 17OUTPUT_DIR = $(OUTPUT_TARGET_DIR)\shared$(EXTRA_DIRS) 18OUTPUT_DIR_DBG = $(OUTPUT_TARGET_DIR)\shared-g$(EXTRA_DIRS) 19OUTPUT_DIR_STLDBG = $(OUTPUT_TARGET_DIR)\shared-stlg$(EXTRA_DIRS) 20OUTPUT_DIR_A = $(OUTPUT_TARGET_DIR)\static$(EXTRA_DIRS) 21OUTPUT_DIR_A_DBG = $(OUTPUT_TARGET_DIR)\static-g$(EXTRA_DIRS) 22OUTPUT_DIR_A_STLDBG = $(OUTPUT_TARGET_DIR)\static-stlg$(EXTRA_DIRS) 23 24# file to store generated dependencies for make: 25DEPENDS_COLLECTION = $(OUTPUT_TARGET_DIR)\.make.depend 26 27SRCROOT = $(SRCROOT:/=\) 28!ifdef CROSS_COMPILING 29TARGET_LIB_BIN_SUBFOLDER=$(TARGET_NAME) 30!else 31TARGET_LIB_BIN_SUBFOLDER= 32!endif 33INSTALL_LIB_DIR = $(SRCROOT)\..\lib\$(TARGET_LIB_BIN_SUBFOLDER) 34INSTALL_LIB_DIR_DBG = $(SRCROOT)\..\lib\$(TARGET_LIB_BIN_SUBFOLDER) 35INSTALL_LIB_DIR_STLDBG = $(SRCROOT)\..\lib\$(TARGET_LIB_BIN_SUBFOLDER) 36INSTALL_STATIC_LIB_DIR = $(SRCROOT)\..\lib\$(TARGET_LIB_BIN_SUBFOLDER) 37INSTALL_STATIC_LIB_DIR_DBG = $(SRCROOT)\..\lib\$(TARGET_LIB_BIN_SUBFOLDER) 38INSTALL_STATIC_LIB_DIR_STLDBG = $(SRCROOT)\..\lib\$(TARGET_LIB_BIN_SUBFOLDER) 39INSTALL_BIN_DIR = $(SRCROOT)\..\bin\$(TARGET_LIB_BIN_SUBFOLDER) 40INSTALL_BIN_DIR_DBG = $(SRCROOT)\..\bin\$(TARGET_LIB_BIN_SUBFOLDER) 41INSTALL_BIN_DIR_STLDBG = $(SRCROOT)\..\bin\$(TARGET_LIB_BIN_SUBFOLDER) 42INSTALL_STATIC_BIN_DIR = $(SRCROOT)\..\bin\$(TARGET_LIB_BIN_SUBFOLDER) 43INSTALL_STATIC_BIN_DIR_DBG = $(SRCROOT)\..\bin\$(TARGET_LIB_BIN_SUBFOLDER) 44INSTALL_STATIC_BIN_DIR_STLDBG = $(SRCROOT)\..\bin\$(TARGET_LIB_BIN_SUBFOLDER) 45 46 47OUTPUT_DIRS = $(OUTPUT_DIR) $(OUTPUT_DIR_DBG) $(OUTPUT_DIR_STLDBG) 48!if "$(OUTPUT_DIR_A)" != "$(OUTPUT_DIR)" 49OUTPUT_DIRS = $(OUTPUT_DIRS) $(OUTPUT_DIR_A) 50!endif 51!if "$(OUTPUT_DIR_A_DBG)" != "$(OUTPUT_DIR_DBG)" 52OUTPUT_DIRS = $(OUTPUT_DIRS) $(OUTPUT_DIR_A_DBG) 53!endif 54!if "$(OUTPUT_DIR_A_STLDBG)" != "$(OUTPUT_DIR_STLDBG)" 55OUTPUT_DIRS = $(OUTPUT_DIRS) $(OUTPUT_DIR_A_STLDBG) 56!endif 57 58 59# shortcut: all install lib dirs are the same 60INSTALL_LIB_DIRS = $(INSTALL_LIB_DIR) 61 62# shortcut: all install bin dirs are the same 63INSTALL_BIN_DIRS = $(INSTALL_BIN_DIR) 64 65INSTALL_DIRS = $(INSTALL_LIB_DIRS) $(INSTALL_BIN_DIRS) 66 67# replace slashes with backslashes; mkdir and copy don't like them. 68INSTALL_DIRS = $(INSTALL_DIRS:/=\) 69 70 71dirs: $(OUTPUT_DIRS) $(INSTALL_DIRS) 72 73output-dirs: $(OUTPUT_DIRS) 74install-dirs: $(INSTALL_DIRS) 75 76install-lib-dirs: $(INSTALL_LIB_DIRS) 77install-bin-dirs: $(INSTALL_BIN_DIRS) 78 79$(OUTPUT_DIRS): 80 @if not exist $@ mkdir $@ 81 82$(INSTALL_DIRS): 83 @if not exist $@ mkdir $@ 84