new experimental shadow volumes, try r_shadows 2 to see the shadow volumes cast by...
[divverent/darkplaces.git] / makefile.mingw
1
2 OBJECTS= builddate.o chase.o cl_demo.o cl_input.o cl_main.o cl_parse.o cmd.o common.o console.o crc.o cvar.o fractalnoise.o gl_draw.o r_sky.o gl_rmain.o gl_rsurf.o host.o host_cmd.o image.o keys.o mathlib.o menu.o model_alias.o model_brush.o model_shared.o model_sprite.o net_dgrm.o net_loop.o net_main.o pr_cmds.o pr_edict.o pr_exec.o r_light.o r_explosion.o sbar.o snd_dma.o snd_mem.o snd_mix.o sv_main.o sv_move.o sv_phys.o sv_user.o sv_light.o transform.o view.o wad.o world.o zone.o vid_shared.o palette.o r_crosshairs.o gl_textures.o gl_models.o r_sprites.o r_modules.o r_explosion.o r_lerpanim.o protocol.o quakeio.o ui.o portals.o sys_shared.o gl_backend.o cl_particles.o cl_screen.o cgamevm.o cgame.o filematch.o collision.o cl_collision.o matrixlib.o cl_video.o dpvsimpledecode.o wavefile.o meshqueue.o net_master.o r_shadow.o
3
4 #K6/athlon optimizations
5 #CPUOPTIMIZATIONS=-march=k6
6 #686 optimizations (note: crashs on k6, works on athlon)
7 #CPUOPTIMIZATIONS=-march=i686
8 #generic (run on anything)
9 CPUOPTIMIZATIONS=
10
11 #note:
12 #the -Werror can be removed to compile even if there are warnings,
13 #this is used to ensure that all released versions are free of warnings.
14
15 OPTIMIZATIONS= -O6 -fno-strict-aliasing -ffast-math -funroll-loops -fomit-frame-pointer -fexpensive-optimizations $(CPUOPTIMIZATIONS) -Werror
16 # -D WIN32 -D NDEBUG -D _WINDOWS -D _M_IX86
17
18 CFLAGS= -MD -Wall $(OPTIMIZATIONS)
19 LDFLAGS= -mwindows -luser32 -lgdi32 -lwinmm -ldxguid -ldinput -lopengl32 -lcomctl32 -lwsock32
20
21
22 all: builddate darkplaces
23
24 builddate:
25         del builddate.o
26         del builddate.d
27
28 .c.o:
29         gcc $(CFLAGS) -c $*.c
30
31 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
32         gcc -o $@ $^ $(LDFLAGS)
33
34
35 clean:
36         del darkplaces.exe
37         del *.o
38         del *.d
39
40 .PHONY: clean builddate
41
42 -include *.d