mirror of
https://github.com/UberGames/RPG-X2.git
synced 2025-02-08 15:51:49 +00:00
- invoke make with make or make all to compile all shared libraries - invoke make clean to clean up - invoke make allclean to clean up and then compile everything - Setup RPGXDIR properly and you'll be able to use make install to install everything
40 lines
No EOL
766 B
Makefile
40 lines
No EOL
766 B
Makefile
# option
|
|
RPGXDIR="/c/Program Files/Raven/Star Trek Voyager Elite Force/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: $(RPGXDIR) has to be exported in the shell as variable)
|
|
install:
|
|
mv game/qagame$(ARCH).$(EXT) $(RPGXDIR)
|
|
mv cgame/cgame$(ARCH).$(EXT) $(RPGXDIR)
|
|
mv ui/ui$(ARCH).$(EXT) $(RPGXDIR)
|