]> de.git.xonotic.org Git - xonotic/darkplaces.git/blob - makefile
removed net_vcr from the list of objects
[xonotic/darkplaces.git] / makefile
1
2 #uncomment one of these according to your sound driver
3 #if you use ALSA version 0.9.x
4 SND=snd_alsa_0_9.o
5 #if you use ALSA version 0.5.x
6 #SND=snd_alsa_0_5.o
7 #if you use the kernel sound driver or OSS
8 #SND=snd_oss.o
9
10 OBJECTS= buildnumber.o cd_linux.o chase.o cl_demo.o cl_input.o cl_main.o cl_parse.o cl_tent.o cmd.o common.o console.o crc.o cvar.o fractalnoise.o gl_draw.o gl_poly.o gl_rmain.o gl_rmisc.o gl_rsurf.o gl_screen.o gl_warp.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_bsd.o net_udp.o net_dgrm.o net_loop.o net_main.o pr_cmds.o pr_edict.o pr_exec.o r_light.o r_part.o r_explosion.o sbar.o snd_dma.o snd_mem.o snd_mix.o $(SND) sv_main.o sv_move.o sv_phys.o sv_user.o sv_light.o sys_linux.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 cl_effects.o r_decals.o
11
12 OPTIMIZATIONS= -O6 -ffast-math -funroll-loops -fomit-frame-pointer -fexpensive-optimizations
13
14 CFLAGS= -Wall -Werror -I/usr/X11R6/include -I/usr/include/glide $(OPTIMIZATIONS)
15 #CFLAGS= -Wall -Werror -I/usr/X11/include -ggdb $(OPTIMIZATIONS)
16 #LDFLAGS= -L/usr/X11R6/lib -lm -lX11 -lXext -lXIE -lXxf86dga -lXxf86vm -lGL -ldl
17 LDFLAGS= -L/usr/X11R6/lib -lm -lX11 -lXext -lXIE -lXxf86dga -lXxf86vm -lGL -ldl -lasound
18
19 all: darkplaces-glx darkplaces-3dfx
20
21 .c.o:
22         gcc $(CFLAGS) -c $*.c
23
24 darkplaces-glx: $(OBJECTS) vid_glx.o
25         gcc -o $@ $^ $(LDFLAGS)
26
27 darkplaces-3dfx: $(OBJECTS) in_svgalib.o vid_3dfxsvga.o
28         gcc -o $@ $^ $(LDFLAGS)
29
30
31 clean:
32         rm -f darkplaces-glx darkplaces-3dfx $(OBJECTS)