代码拉取完成,页面将自动刷新
# Linux Makefile for QSanguosha
# Author: pansz at github
#
# you can use the following to compile the first time:
#
# make -f linux.mk
#
# Next time you could just use 'make'
#
# This makefile only works for GNU Linux and don't try it on other platforms.
#
PREFIX:=/usr/local
OLDPWD:=$(PWD)
BUILD:=$(OLDPWD)_build
DEBUG_BUILD:=$(OLDPWD)_debugbuild
all: sanguosha.qm
debug: debugQSanguosha
debugQSanguosha: $(DEBUG_BUILD)/QSanguosha
cp $(DEBUG_BUILD)/QSanguosha debugQSanguosha
@rm $(DEBUG_BUILD)/QSanguosha
$(BUILD)/libfmodex.so:
mkdir -p $(BUILD)
@echo "NOTE: if you had installed fmodex please copy the .so file from /usr/local/lib/ to $(BUILD)/libfmodex.so"
@ls $@
$(DEBUG_BUILD)/libfmodex.so:
mkdir -p $(DEBUG_BUILD)
@echo "NOTE: if you had installed fmodex please copy the .so file from /usr/local/lib/ to $(DEBUG_BUILD)/libfmodex.so"
@ls $@
swig/sanguosha_wrap.cxx: swig/ai.i swig/card.i swig/list.i swig/luaskills.i swig/native.i swig/naturalvar.i swig/qvariant.i swig/sanguosha.i
cd swig && swig -c++ -lua sanguosha.i
$(BUILD)/Makefile: $(OLDPWD)/QSanguosha.pro
cd $(BUILD) && qmake $(OLDPWD)/QSanguosha.pro "CONFIG+=release"
$(DEBUG_BUILD)/Makefile: $(OLDPWD)/QSanguosha.pro
cd $(DEBUG_BUILD) && qmake $(OLDPWD)/QSanguosha.pro "CONFIG+=debug"
$(BUILD)/swig/sanguosha_wrap.cxx: swig/sanguosha_wrap.cxx
mkdir -p $(BUILD)/swig
cp $(PWD)/swig/sanguosha_wrap.cxx $(BUILD)/swig/sanguosha_wrap.cxx
$(DEBUG_BUILD)/swig/sanguosha_wrap.cxx: swig/sanguosha_wrap.cxx
mkdir -p $(DEBUG_BUILD)/swig
cp $(PWD)/swig/sanguosha_wrap.cxx $(DEBUG_BUILD)/swig/sanguosha_wrap.cxx
$(BUILD)/QSanguosha: $(BUILD)/libfmodex.so $(BUILD)/swig/sanguosha_wrap.cxx $(BUILD)/Makefile
@echo "PWD is: $(OLDPWD)"
@ln -sf linux.mk Makefile
cd $(BUILD) && $(MAKE)
@rm -f QSanguosha
@cp $(BUILD)/QSanguosha QSanguosha
$(DEBUG_BUILD)/QSanguosha: $(DEBUG_BUILD)/libfmodex.so $(DEBUG_BUILD)/swig/sanguosha_wrap.cxx $(DEBUG_BUILD)/Makefile
@echo "PWD is: $(OLDPWD)"
@ln -sf linux.mk Makefile
cd $(DEBUG_BUILD) && $(MAKE)
@rm -f QSanguosha
sanguosha.qm: $(BUILD)/QSanguosha sanguosha.ts
lupdate QSanguosha.pro
lrelease QSanguosha.pro
@cp builds/vs2010/sanguosha.qm sanguosha.qm
@echo "Well, compile done. Now you can run make install with root "
install: $(BUILD)/QSanguosha
mkdir -p $(PREFIX)/games
mkdir -p $(PREFIX)/share/QSanguosha
rm -rf $(PREFIX)/share/QSanguosha/*
install -s $(BUILD)/QSanguosha $(PREFIX)/games/QSanguosha
cp -r acknowledgement $(PREFIX)/share/QSanguosha/.
cp -r audio $(PREFIX)/share/QSanguosha/.
cp -r backdrop $(PREFIX)/share/QSanguosha/.
cp -r developers $(PREFIX)/share/QSanguosha/.
cp -r diy $(PREFIX)/share/QSanguosha/.
cp -r font $(PREFIX)/share/QSanguosha/.
cp -r image $(PREFIX)/share/QSanguosha/.
cp -r lang $(PREFIX)/share/QSanguosha/.
cp -r lua $(PREFIX)/share/QSanguosha/.
cp -r scenarios $(PREFIX)/share/QSanguosha/.
cp -r skins $(PREFIX)/share/QSanguosha/.
cp gpl-3.0.txt $(PREFIX)/share/QSanguosha/COPYING
cp sanguosha.qm $(PREFIX)/share/QSanguosha/.
cp sanguosha.qss $(PREFIX)/share/QSanguosha/.
clean:
-cd $(BUILD) && $(MAKE) clean
distclean:
-cd $(BUILD) && $(MAKE) distclean
rm -f QSanguosha Makefile swig/sanguosha_wrap.cxx sanguosha.qm
.PHONY: $(BUILD)/QSanguosha debug
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。