Permalink
Switch branches/tags
Nothing to show
Find file
Fetching contributors…
Cannot retrieve contributors at this time
executable file 49 lines (36 sloc) 1.67 KB
#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