]> icculus.org git repositories - divverent/darkplaces.git/blob - makefile.mingw
redesigned surfmesh allocation in brush model loader, in preparation for some more...
[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 \
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
14
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)
20 CPUOPTIMIZATIONS=
21
22 #note:
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.
25
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
29
30 CFLAGS= -MD -Wall $(OPTIMIZATIONS)
31 LDFLAGS= -mwindows -luser32 -lgdi32 -lwinmm -ldxguid -ldinput -lopengl32 -lcomctl32 -lwsock32
32
33
34 all: builddate darkplaces
35
36 builddate:
37         del builddate.o
38         del builddate.d
39
40 .c.o:
41         gcc $(CFLAGS) -c $*.c
42
43 darkplaces: $(OBJECTS) vid_wgl.o sys_win.o snd_win.o net_bsd.o net_udp.o cd_win.o conproc.o
44         gcc -o $@ $^ $(LDFLAGS)
45
46
47 clean:
48         del darkplaces.exe
49         del *.o
50         del *.d
51
52 .PHONY: clean builddate
53
54 -include *.d