3 # --- default build option values ---
7 # -----------------------------------
9 gawsrc_gl = src/gaw/gaw_gl.c
10 gawsrc_sw = src/gaw/gaw_sw.c src/gaw/gawswtnl.c src/gaw/polyfill.c src/gaw/polyclip.c
15 src = $(wildcard src/*.c) $(wildcard src/modern/*.c) $(gawsrc_$(build_gfx))
20 warn = -pedantic -Wall
23 def = -DMINIGLUT_USE_LIBC $(gawdef_$(build_gfx))
24 inc = -Isrc -Isrc/modern -Ilibs -Ilibs/imago/src -Ilibs/treestor/include -Ilibs/drawtext
25 libs = libs/unix/imago.a libs/unix/treestor.a libs/unix/drawtext.a
27 CFLAGS = $(warn) $(dbg) $(opt) $(inc) $(def) $(cflags_$(rend)) -MMD
28 LDFLAGS = $(ldsys_pre) $(libs) $(ldsys)
30 sys := $(shell uname -s | sed 's/MINGW.*/mingw/')
34 ldsys = -lopengl32 -lglu32 -lgdi32 -lwinmm
35 ldsys_pre = -static-libgcc -lmingw32 -mconsole
37 ldsys = -lGL -lGLU -lX11 -lm
41 $(CC) -o $@ $(obj) $(LDFLAGS)
46 $(CC) $(CFLAGS) -c $< -o $@
70 $(MAKE) CC=i686-w64-mingw32-gcc sys=mingw
72 .PHONY: crosswin-clean
74 $(MAKE) CC=i686-w64-mingw32-gcc sys=mingw clean
76 .PHONY: crosswin-cleandep
78 $(MAKE) CC=i686-w64-mingw32-gcc sys=mingw cleandep