inc = -Isrc -Isrc/scr -Isrc/dos -Ilibs -Ilibs/imago/src -Ilibs/anim/src -Ilibs/mikmod/include
opt = -O3 -ffast-math -fno-strict-aliasing
dbg = -g
+#prof = -pg
warn = -pedantic -Wall -Wno-unused-function -Wno-unused-variable
CC = $(TOOLPREFIX)gcc
AR = $(TOOLPREFIX)ar
-CFLAGS = $(warn) -march=pentium $(dbg) $(opt) $(inc)
+CFLAGS = $(warn) -march=pentium $(dbg) $(opt) $(prof) $(inc)
LDFLAGS = libs/imago/imago.dja libs/anim/anim.dja libs/mikmod/dos/libmikmod.a
ifneq ($(hostsys), dos)
endif
$(bin): $(obj) imago anim mikmod
- $(CC) -o $@ -Wl,-Map=ld.map $(obj) $(LDFLAGS)
+ $(CC) -o $@ -Wl,-Map=ld.map $(prof) $(obj) $(LDFLAGS)
%.cof: %.asm
nasm -f coff -o $@ $<
g3d_mult_matrix(sball_matrix);
}
- memset(fb_pixels, 0, fb_width * fb_height * 2);
+ /*memset(fb_pixels, 0, fb_width * fb_height * 2);*/
g3d_polygon_mode(G3D_FLAT);
g3d_enable(G3D_TEXTURE_2D);