summaryrefslogblamecommitdiff
path: root/makefile.mgw
blob: c9bb582d5bab175f48937e43088e7df6add3d9f3 (plain) (tree)
1
2
3
4
5
6
7
8





                                                                                                                 
                                                            



















                                                                  
CXX = g++
# for debugging
#CXXFLAGS += -g -march=i686 -O2

# excessive optimizations for pentium pro and later
CXXFLAGS +=-Wall -march=i686 -O3 -fexpensive-optimizations -pipe -fomit-frame-pointer -funroll-loops -fexceptions

LIBS := -ljgmod -lguichan_allegro -lguichan -lalleg -lws2_32

include file.list

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

tmw.exe: $(OBJS)
	$(CXX) -o tmw $(OBJS) $(LIBS)
	@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 tmw

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