X-Git-Url: http://git.mutantstargoat.com/user/nuclear/?a=blobdiff_plain;f=GNUmakefile;h=d897cc1feba556e448ab11289db0539e2fcc657c;hb=208078d05078a27b5cdfc213031d91e88180994b;hp=f14e89a340e96e96e42c62d110e07da6eca8eede;hpb=7fccf8b3543c8cdb993252f0cf9a6b9ed826408e;p=retroray diff --git a/GNUmakefile b/GNUmakefile index f14e89a..d897cc1 100644 --- a/GNUmakefile +++ b/GNUmakefile @@ -9,15 +9,18 @@ build_dbg ?= true gawsrc_gl = src/gaw/gaw_gl.c gawsrc_sw = src/gaw/gaw_sw.c src/gaw/gawswtnl.c src/gaw/polyfill.c src/gaw/polyclip.c +gawdef_gl = -DGFX_GL +gawdef_sw = -DGFX_SW + src = $(wildcard src/*.c) $(wildcard src/modern/*.c) $(gawsrc_$(build_gfx)) obj = $(src:.c=.o) dep = $(src:.c=.d) -bin = game +bin = retroray warn = -pedantic -Wall dbg = -g #opt = -O3 -def = -DMINIGLUT_USE_LIBC +def = -DMINIGLUT_USE_LIBC $(gawdef_$(build_gfx)) inc = -Isrc -Isrc/modern -Ilibs -Ilibs/imago/src -Ilibs/treestor/include -Ilibs/drawtext libs = libs/unix/imago.a libs/unix/treestor.a libs/unix/drawtext.a @@ -31,7 +34,7 @@ ifeq ($(sys), mingw) ldsys = -lopengl32 -lglu32 -lgdi32 -lwinmm ldsys_pre = -static-libgcc -lmingw32 -mconsole else - ldsys = -lGL -lGLU -lX11 + ldsys = -lGL -lGLU -lX11 -lm endif $(bin): $(obj) libs