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



                                                   

                                                                           
 
                                                                             
 
                 

                                                                  
 
                                       
               
                                            
      



                                
                                  
                    
 
                                      
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 `sdl-config --cflags` \
	   `pkg-config --cflags libxml-2.0`

LIBS := `sdl-config --libs` -lguichan_sdl -lguichan -lSDL_mixer -lSDL_image \
        `pkg-config --libs libxml-2.0`

include file.list
MODULES += src/net/win2mac.cpp

OBJS := $(patsubst src%, obj%, $(patsubst %.cpp, %.o, $(MODULES)))

tmw: $(OBJS)
	$(CXX) -o tmw $(OBJS) $(CFLAGS)
	@echo -
	@echo -
	@echo "TYPE ./tmw TO LAUCH THE GAME"

clean:
	- rm -fv obj/*.o
	- rm -fv obj/net/*.o
	- rm -fv obj/gui/*.o
	- rm -fv obj/sound/*.o
	- rm -fv obj/graphic/*.o
	- rm -fv obj/resources/*.o
	- rm -fv tmw

obj/%.o: src/%.cpp
	$(CXX) $(CXXFLAGS) -c $< -o $@