Initial sauer
[SauerbratenRemote.git] / src / mingw / Makefile.mingw
blobf50d7d4f06a2001a1157917c5820795d96f14444
1 CXX=g++\r
2 CXXOPTFLAGS=-O3 -fomit-frame-pointer\r
3 CXXFLAGS= $(CXXOPTFLAGS) -Wall -fsigned-char -Ienet/include -Iinclude -Ishared -Iengine -Ifpsgame\r
4 \r
5 CLIENT_LIBS=-Lenet -Lmingw/lib -lstdc++ -lenet -lmingw32 -lSDLmain -lSDL -lSDL_image -lSDL_mixer -mwindows -lfmod -lz -lopengl32 -lglu32 -lws2_32 -lwinmm\r
6 CLIENT_OBJS= \\r
7         shared/tools.o \\r
8         shared/geom.o \\r
9         engine/3dgui.o \\r
10         engine/bih.o \\r
11         engine/client.o \\r
12         engine/command.o \\r
13         engine/console.o \\r
14         engine/cubeloader.o \\r
15         engine/grass.o \\r
16         engine/lightmap.o \\r
17         engine/main.o \\r
18         engine/material.o \\r
19         engine/menus.o \\r
20         engine/normal.o \\r
21         engine/octa.o \\r
22         engine/octaedit.o \\r
23         engine/octarender.o \\r
24         engine/physics.o \\r
25         engine/rendergl.o \\r
26         engine/rendermodel.o \\r
27         engine/renderparticles.o \\r
28         engine/rendersky.o \\r
29         engine/rendertext.o \\r
30         engine/renderva.o \\r
31         engine/server.o \\r
32         engine/serverbrowser.o \\r
33         engine/shader.o \\r
34         engine/shadowmap.o \\r
35         engine/sound.o \\r
36         engine/texture.o \\r
37         engine/water.o \\r
38         engine/world.o \\r
39         engine/worldio.o \\r
40         fpsgame/fps.o \\r
41         rpggame/rpg.o\r
43 default: all\r
45 all: client\r
47 enet/Makefile:\r
48         cd enet; ./configure\r
50 libenet: enet/Makefile\r
51         $(MAKE) -C enet/ all\r
53 clean:\r
54         -$(RM) $(CLIENT_OBJS)\r
55         $(MAKE) -C enet/ clean\r
57 client: $(CLIENT_OBJS)\r
58         $(CXX) $(CXXFLAGS) -o ../bin/sauerbraten-mingw.exe $(CLIENT_OBJS) $(CLIENT_LIBS)\r
59         strip ../bin/sauerbraten-mingw.exe\r