summaryrefslogblamecommitdiff
path: root/makefile.macosx
blob: 41f078b13e849cee8e0c225be32089824e7a2614 (plain) (tree)
1
2
3
4
5
6
7
8
9
10




                                                   
                                                                                                             



                                                
                                                      


                                                                 
 

                                       

               
                                            






                            
                     
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

OBJS = being.o game.o main.o map.o log.o astar.o
OBJS += Sound/sound.o Graphic/SuperEagle.o Chat/chat.o
OBJS += Gui/gui.o Gui/login.o Gui/char_server.o Gui/char_select.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"

clean:
	- rm -fv *.o
	- rm -fv Net/*.o
	- rm -fv Gui/*.o
	- rm -fv Sound/*.o
	- rm -fv Graphic/*.o
	- rm -fv tmw