projects
/
rocksndiamonds.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
rnd-20000908-1-src
[rocksndiamonds.git]
/
Makefile
diff --git
a/Makefile
b/Makefile
index d8c400de583e62e06c42487315345bd092fd5548..10909b9667877a40052a6719fa20e75c2b5e78de 100644
(file)
--- a/
Makefile
+++ b/
Makefile
@@
-15,6
+15,7
@@
CC = gcc
# PLATFORM = solaris
# PLATFORM = unix
# PLATFORM = dos
# PLATFORM = solaris
# PLATFORM = unix
# PLATFORM = dos
+# PLATFORM = windows
# specify path to X11 on your system
# if undefined, use system defaults (works with Linux/gcc/libc5)
# specify path to X11 on your system
# if undefined, use system defaults (works with Linux/gcc/libc5)
@@
-41,6
+42,9
@@
X11_PATH = /usr/X11
# when installing the game in a single user environment, choose this
# SCORE_ENTRIES = MANY_PER_NAME
# when installing the game in a single user environment, choose this
# SCORE_ENTRIES = MANY_PER_NAME
+# specify path for cross-compiling (only needed for Windows build)
+CROSS_PATH=/usr/local/cross-tools/i386-mingw32/bin
+
#-----------------------------------------------------------------------------#
# you should not need to change anything below #
#-----------------------------------------------------------------------------#
#-----------------------------------------------------------------------------#
# you should not need to change anything below #
#-----------------------------------------------------------------------------#
@@
-50,13
+54,25
@@
X11_PATH = /usr/X11
MAKE = make
SRC_DIR = src
MAKE = make
SRC_DIR = src
-MAKE_CMD =
@
$(MAKE) -C $(SRC_DIR)
+MAKE_CMD = $(MAKE) -C $(SRC_DIR)
all:
all:
- $(MAKE_CMD)
+ @$(MAKE_CMD) TARGET=sdl
+
+x11:
+ @$(MAKE_CMD) TARGET=x11
+
+sdl:
+ @$(MAKE_CMD) TARGET=sdl
+
+sdl_old:
+ @$(MAKE_CMD) TARGET=sdl_old_10
solaris:
solaris:
- $(MAKE_CMD) PLATFORM=solaris
+ @$(MAKE_CMD) PLATFORM=solaris
+
+windows:
+ @PATH=$(CROSS_PATH):${PATH} $(MAKE_CMD) PLATFORM=windows
clean:
clean:
- $(MAKE_CMD) clean
+
@
$(MAKE_CMD) clean