equal
deleted
inserted
replaced
1 # |
1 # |
2 # Copyright 2005-2007 Sun Microsystems, Inc. All Rights Reserved. |
2 # Copyright 2005-2008 Sun Microsystems Microsystems, Inc. All Rights Reserved. |
3 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
3 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
4 # |
4 # |
5 # This code is free software; you can redistribute it and/or modify it |
5 # This code is free software; you can redistribute it and/or modify it |
6 # under the terms of the GNU General Public License version 2 only, as |
6 # under the terms of the GNU General Public License version 2 only, as |
7 # published by the Free Software Foundation. Sun designates this |
7 # published by the Free Software Foundation. Sun designates this |
89 if [ -x $(WINVER) ]; then \ |
89 if [ -x $(WINVER) ]; then \ |
90 $(WINVER) ; \ |
90 $(WINVER) ; \ |
91 else \ |
91 else \ |
92 $(ECHO) "Unknown Windows Version"; \ |
92 $(ECHO) "Unknown Windows Version"; \ |
93 fi) |
93 fi) |
94 DXSDK_VER := $(shell $(EGREP) DIRECTDRAW_VERSION $(DXSDK_INCLUDE_PATH)/ddraw.h 2>&1 | \ |
94 DXSDK_VER := $(shell $(EGREP) DIRECT3D_VERSION $(DXSDK_INCLUDE_PATH)/d3d9.h 2>&1 | \ |
95 $(EGREP) "\#define" | $(NAWK) '{print $$3}') |
95 $(EGREP) "\#define" | $(NAWK) '{print $$3}') |
96 endif |
96 endif |
97 |
97 |
98 # Get the version numbers of what we are using |
98 # Get the version numbers of what we are using |
99 _MAKE_VER :=$(shell $(MAKE) --version 2>&1 | $(HEAD) -n 1) |
99 _MAKE_VER :=$(shell $(MAKE) --version 2>&1 | $(HEAD) -n 1) |
1255 ###################################################### |
1255 ###################################################### |
1256 # Check for windows DirectX sdk directory |
1256 # Check for windows DirectX sdk directory |
1257 ###################################################### |
1257 ###################################################### |
1258 sane-dxsdk: |
1258 sane-dxsdk: |
1259 ifeq ($(PLATFORM), windows) |
1259 ifeq ($(PLATFORM), windows) |
1260 @if [ ! -r $(DXSDK_INCLUDE_PATH)/ddraw.h ]; then \ |
1260 @if [ ! -r $(DXSDK_INCLUDE_PATH)/d3d9.h ]; then \ |
1261 $(ECHO) "ERROR: You do not have access to a valid DirectX SDK Include dir.\n" \ |
1261 $(ECHO) "ERROR: You do not have access to a valid DirectX SDK Include dir.\n" \ |
1262 " The value of DXSDK_INCLUDE_PATH must point a valid DX SDK dir.\n" \ |
1262 " The value of DXSDK_INCLUDE_PATH must point a valid DX SDK dir.\n" \ |
1263 " Please check your access to \n" \ |
1263 " Please check your access to \n" \ |
1264 " $(DXSDK_INCLUDE_PATH) \n" \ |
1264 " $(DXSDK_INCLUDE_PATH) \n" \ |
1265 " and/or check your value of ALT_DXSDK_PATH or ALT_DXSDK_INCLUDE_PATH.\n" \ |
1265 " and/or check your value of ALT_DXSDK_PATH or ALT_DXSDK_INCLUDE_PATH.\n" \ |
1284 $(ECHO) "WARNING: The DirectX SDK Include directory contains a newer basetsd.h,\n" \ |
1284 $(ECHO) "WARNING: The DirectX SDK Include directory contains a newer basetsd.h,\n" \ |
1285 " which may indicate that you're using an incorrect version of DirectX SDK.\n" \ |
1285 " which may indicate that you're using an incorrect version of DirectX SDK.\n" \ |
1286 " This may result in a build failure.\n" \ |
1286 " This may result in a build failure.\n" \ |
1287 " The DirectX SDK Include dir was obtained from the following location:\n" \ |
1287 " The DirectX SDK Include dir was obtained from the following location:\n" \ |
1288 " $(DXSDK_INCLUDE_PATH) \n" \ |
1288 " $(DXSDK_INCLUDE_PATH) \n" \ |
1289 " Please change your DirectX SDK to version 7 or 9 (Summer 2004 Update or newer).\n" \ |
1289 " Please change your DirectX SDK to version 9 (Summer 2004 Update or newer).\n" \ |
1290 " Microsoft DirectX 9 SDK can be downloaded from the following location:\n" \ |
1290 " Microsoft DirectX 9 SDK can be downloaded from the following location:\n" \ |
1291 " http://msdn.microsoft.com/library/default.asp?url=/downloads/list/directx.asp\n" \ |
1291 " http://msdn.microsoft.com/library/default.asp?url=/downloads/list/directx.asp\n" \ |
1292 " Or http://www.microsoft.com/directx\n" \ |
1292 " Or http://www.microsoft.com/directx\n" \ |
1293 "" >> $(WARNING_FILE) ; \ |
1293 "" >> $(WARNING_FILE) ; \ |
1294 fi \ |
1294 fi \ |