mirror of
https://github.com/UberGames/RPG-X2.git
synced 2024-11-15 09:21:55 +00:00
964c631d8b
Added an Installpath and Parameter for my purposes removed allclean as that can be done with 'make clean all'
46 lines
No EOL
1,000 B
Makefile
46 lines
No EOL
1,000 B
Makefile
# option
|
|
RPGXDIRDEFAULT="/c/Program Files/Raven/Star Trek Voyager Elite Force/RPG-X2"
|
|
RPGXDIRYOUNG="/d/games/eliteforce/build-engine/RPG-X2"
|
|
|
|
# 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
|
|
clean:
|
|
make clean -C game
|
|
make clean -C cgame
|
|
make clean -C ui
|
|
|
|
# cleans all and makes all shared libs
|
|
allclean:
|
|
clean
|
|
all
|
|
|
|
# install shared libs (NOTE: $(RPGXDIRXXX) has to be exported in the shell as variable)
|
|
install:
|
|
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)
|