Skip to content


Subversion checkout URL

You can clone with
Download ZIP
Branch: master
Fetching contributors…

Cannot retrieve contributors at this time

executable file 51 lines (37 sloc) 1.72 KB
#CXX = g++
CXX = i586-mingw32msvc-g++
CXXFLAGS = -DWIN32 -DMINGW -ffunction-sections -fdata-sections -Wall -Os -fno-exceptions -fno-unwind-tables -fno-rtti -DGL_GLEXT_PROTOTYPES
# -Weffc++
# NDEBUG pro release ?
LDFLAGS = -Wl,--gc-sections
LIBS = /usr/i586-mingw32msvc/lib/libglfw.a -lopengl32 -lglu32
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
SRCS = $(OBJECTS:.o=.cpp)
BINARY = sea.exe
.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
strip: $(BINARY)
i586-mingw32msvc-strip -s -R .comment $(BINARY)
pack: $(BINARY) strip
upx --ultra-brute $(BINARY)
size: clean pack
rm -f $(OBJECTS) $(BINARY) core
Jump to Line
Something went wrong with that request. Please try again.