2 OBJECTS= builddate.o chase.o cl_demo.o cl_input.o cl_main.o cl_parse.o cmd.o \
3 common.o console.o crc.o cvar.o fractalnoise.o gl_draw.o r_sky.o \
4 gl_rmain.o gl_rsurf.o host.o host_cmd.o image.o keys.o mathlib.o menu.o \
5 model_alias.o model_brush.o model_shared.o model_sprite.o net_dgrm.o \
6 net_loop.o net_main.o pr_cmds.o pr_edict.o pr_exec.o r_light.o \
7 sbar.o snd_dma.o snd_mem.o snd_mix.o sv_main.o sv_move.o \
8 sv_phys.o sv_user.o sv_light.o view.o wad.o world.o zone.o vid_shared.o \
9 palette.o r_crosshairs.o gl_textures.o gl_models.o r_sprites.o \
10 r_modules.o r_explosion.o r_lerpanim.o protocol.o fs.o ui.o \
11 portals.o sys_shared.o gl_backend.o cl_particles.o cl_screen.o cgamevm.o \
12 cgame.o filematch.o collision.o cl_collision.o matrixlib.o cl_video.o \
13 dpvsimpledecode.o wavefile.o meshqueue.o net_master.o r_shadow.o jpeg.o
15 #K6/athlon optimizations
16 #CPUOPTIMIZATIONS=-march=k6
17 #686 optimizations (note: crashs on k6, works on athlon)
18 #CPUOPTIMIZATIONS=-march=i686
19 #generic (run on anything)
23 #the -Werror can be removed to compile even if there are warnings,
24 #this is used to ensure that all released versions are free of warnings.
26 OPTIMIZATIONS= -O2 -fno-strict-aliasing $(CPUOPTIMIZATIONS)
27 #OPTIMIZATIONS= -O6 -fno-strict-aliasing -ffast-math -funroll-loops -fomit-frame-pointer -fexpensive-optimizations $(CPUOPTIMIZATIONS)
28 # -D WIN32 -D NDEBUG -D _WINDOWS -D _M_IX86
30 CFLAGS= -MD -Wall $(OPTIMIZATIONS)
31 LDFLAGS= -mwindows -luser32 -lgdi32 -lwinmm -ldxguid -ldinput -lopengl32 -lcomctl32 -lwsock32
34 all: builddate darkplaces
43 darkplaces: $(OBJECTS) vid_wgl.o sys_win.o snd_win.o net_win.o net_wins.o net_wipx.o cd_win.o conproc.o
44 gcc -o $@ $^ $(LDFLAGS)
52 .PHONY: clean builddate