-
Notifications
You must be signed in to change notification settings - Fork 2
/
Makefile.32bit
executable file
·48 lines (36 loc) · 1.67 KB
/
Makefile.32bit
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
#CXX = g++
CXX = colorgcc
CXXFLAGS = -m32 -ffunction-sections -fdata-sections -Wall -pedantic -Os -fno-exceptions -fno-unwind-tables -fno-rtti -DGL_GLEXT_PROTOTYPES
# -Weffc++
# NDEBUG pro release ?
LDFLAGS = -Wl,--gc-sections -m32
LIBS = /usr/lib32/libglfw.a -pthread -lGL -lX11 -lXrandr -lm -lGLU
INCLUDES =
FILE2C = utils/file2c.rb
OBJECTS = main.o snoutlib/glfwapp.o snoutlib/settings.o snoutlib/loadingscreen.o snoutlib/procedural.o \
snoutlib/misc.o snoutlib/timer.o snoutlib/mfont.o snoutlib/svg.o snoutlib/tesselate.o \
snoutlib/menu.o snoutlib/shader.o snoutlib/staticmesh.o snoutlib/rtt_fbo.o snoutlib/gldefs.o\
snoutlib/particles.o snoutlib/perlin.o snoutlib/bbox.o snoutlib/fx.o\
gamemenu.o layout.o background.o boat.o pboat.o pe_smoke.o resources.o credits.o hiscore.o \
torpedo.o pe_bubbles.o pe_bubble_expl.o game.o missile.o fx_missile_expl.o pe_smoketrail.o \
fx_ship_expl.o fx_torpedo_expl.o pe_torpedo_expl.o fx_moving_text.o
BINARY = sea32
.SUFFIXES: .cpp .o
all: $(BINARY)
resources: data/sha/seawaves.vs
$(FILE2C) data/sha/seawaves.vs data/res/seawaves.vs.h text
$(FILE2C) data/sha/clouds.vs data/res/clouds.vs.h text
$(FILE2C) data/sha/clouds.fs data/res/clouds.fs.h text
$(FILE2C) data/model/torpedo.m data/res/torpedo.m.h binary
$(FILE2C) data/model/torpedo2.m data/res/torpedo2.m.h binary
$(FILE2C) data/model/tanker.m data/res/tanker.m.h binary
$(FILE2C) data/model/pboat.m data/res/pboat.m.h binary
$(BINARY): $(OBJECTS)
$(CXX) $(LDFLAGS) -o $(BINARY) $(OBJECTS) $(LIBS)
strip: $(BINARY)
strip -s -R .comment $(BINARY)
pack: $(BINARY) strip
upx --ultra-brute $(BINARY)
size: clean pack
clean:
rm -f $(OBJECTS) $(BINARY) core