blob: 137ce693c32b62ff5d52466f1d734dfee46c34d6 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
|
CXX = g++
# for debugging
#CXXFLAGS = -g -march=i686 -O2
# excessive optimizations for pentium pro and later
CXXFLAGS =-Wall -O3 -fexpensive-optimizations -pipe -fomit-frame-pointer -funroll-loops -DMACOSX -fexceptions
CFLAGS=`allegro-config --libs release` -lalfont /usr/lib/libjgmod.a
OBJS = being.o game.o main.o map.o log.o astar.o
OBJS += Chat/chat.o Gui/skill.o
OBJS += Sound/sound.o Graphic/SuperEagle.o
OBJS += Gui/gui.o Gui/login.o Gui/char_server.o Gui/char_select.o Gui/inventory.o
OBJS += Net/network.o Net/protocol.o
OBJS += Mac/mac.o
tmw: $(OBJS)
$(CXX) -o tmw $(OBJS) $(CFLAGS)
@echo -
@echo -
@echo "TYPE ./tmw TO LAUCH THE GAME"
tmw-app: $(OBJS)
$(CXX) -o tmw-app $(OBJS) $(CFLAGS) -DMACOSX_APP
app: tmw-app
rm -rf tmw.app
mkdir tmw.app
mkdir tmw.app/Contents
mkdir tmw.app/Contents/Resources
mkdir tmw.app/Contents/MacOS
cp tmw-app tmw.app/Contents/MacOS/
cp *.dat tmw.app/Contents/Resources/
cp -R Sound tmw.app/Contents/Resources/
cp -R items tmw.app/Contents/Resources/
cp -R Graphic tmw.app/Contents/Resources/
cp -R Aqua tmw.app/Contents/Resources/
cp -R Maps tmw.app/Contents/Resources/
cp aqua.skin tmw.app/Contents/Resources/
cp tmw.ini tmw.app/Contents/Resources/
mv tmw.app tmw.app2
mv tmw.app2 tmw.app
clean:
- rm -fv *.o
- rm -fv Net/*.o
- rm -fv Gui/*.o
- rm -fv Sound/*.o
- rm -fv Graphic/*.o
- rm -fv tmw
- rm -rf tmw.app
|