2011-12-12 21:52:16 +00:00
|
|
|
# option
|
2011-12-13 12:38:36 +00:00
|
|
|
RPGXDIRDEFAULT="/c/Program Files/Raven/Star Trek Voyager Elite Force/RPG-X2"
|
|
|
|
RPGXDIRYOUNG="/d/games/eliteforce/build-engine/RPG-X2"
|
2011-12-12 21:52:16 +00:00
|
|
|
|
|
|
|
# determine arch and platform
|
|
|
|
ARCH=$(shell uname -m | sed -e s/i.86/i386/)
|
|
|
|
PLATFORM=$(shell uname|sed -e s/_.*//|tr '[:upper:]' '[:lower:]')
|
|
|
|
|
|
|
|
# set extension
|
|
|
|
ifeq ($(PLATFORM), mingw32)
|
|
|
|
EXT=dll
|
|
|
|
ARCH=x86
|
|
|
|
else
|
|
|
|
EXT=so
|
|
|
|
endif
|
|
|
|
|
|
|
|
#default
|
|
|
|
default: all
|
|
|
|
|
|
|
|
# makes all shared libraries
|
|
|
|
all:
|
|
|
|
make -C game
|
|
|
|
make -C cgame
|
|
|
|
make -C ui
|
|
|
|
|
|
|
|
# cleans up everthing
|
2011-06-01 12:20:56 +00:00
|
|
|
clean:
|
2011-12-12 21:52:16 +00:00
|
|
|
make clean -C game
|
|
|
|
make clean -C cgame
|
|
|
|
make clean -C ui
|
|
|
|
|
|
|
|
# cleans all and makes all shared libs
|
|
|
|
allclean:
|
|
|
|
clean
|
|
|
|
all
|
|
|
|
|
2011-12-13 12:38:36 +00:00
|
|
|
# install shared libs (NOTE: $(RPGXDIRXXX) has to be exported in the shell as variable)
|
2011-12-12 21:52:16 +00:00
|
|
|
install:
|
2011-12-13 12:38:36 +00:00
|
|
|
mv game/qagame$(ARCH).$(EXT) $(RPGXDIRDEFAULT)
|
|
|
|
mv cgame/cgame$(ARCH).$(EXT) $(RPGXDIRDEFAULT)
|
|
|
|
mv ui/ui$(ARCH).$(EXT) $(RPGXDIRDEFAULT)
|
|
|
|
|
|
|
|
installyoung:
|
|
|
|
mv game/qagame$(ARCH).$(EXT) $(RPGXDIRYOUNG)
|
|
|
|
mv cgame/cgame$(ARCH).$(EXT) $(RPGXDIRYOUNG)
|
|
|
|
mv ui/ui$(ARCH).$(EXT) $(RPGXDIRYOUNG)
|