Clean up the array copying for the new high scores list. It was way
[attac-man.git] / Makefile.in
blob9678b9728dcbc24ad2332a26faf560c513537127
1 #
2 # Build file for attac-man, a fork of Pacman Arena
5 prefix?=@prefix@
7 CFLAGS=@CFLAGS@ -I@top_srcdir@/include -DDATADIR="\"@datadir@/attac-man\"" \
8 -DGRP="\"@GAME_GROUP@\"" -DUSR="\"@GAME_USER@\""
9 LDFLAGS=@LDFLAGS@
10 OBJS=file.o bomb.o particle.o shot.o audio.o map.o object.o math.o gfx.o \
11 game.o player.o ghost.o menu.o input.o screen.o render.o render_bomb.o \
12 render_player.o render_ghost.o render_map.o render_particle.o \
13 render_shot.o net.o oglconsole.o console_args.o score.o
15 # data files to be installed
17 DATA_SFX=sfx/chomp.wav sfx/eat-ghost.wav sfx/explosion.wav sfx/gameover.ogg \
18 sfx/ghost-return.wav sfx/glomp.wav sfx/hiscore.ogg \
19 sfx/hummingbird.ogg sfx/pacman-die.wav sfx/rocket-launch.wav \
20 sfx/tranzy.ogg
22 DATA_GFX=gfx/1024-768-high.tga gfx/1024-768-low.tga gfx/1400-1050-high.tga \
23 gfx/1400-1050-low.tga gfx/640-480-high.tga gfx/640-480-low.tga \
24 gfx/800-600-high.tga gfx/800-600-low.tga gfx/high_scores-high.tga \
25 gfx/high_scores-low.tga gfx/bomb.3d gfx/dot-yellow.tga \
26 gfx/exit-high.tga gfx/exit-low.tga gfx/game-over.tga \
27 gfx/ghost-green-dying.3d gfx/ghost-green-moving.3d \
28 gfx/ghost-green-returning.3d gfx/level-complete.tga \
29 gfx/pacman-arena-banner.tga gfx/pacman-dying.3d \
30 gfx/pacman-jumping.3d gfx/pacman-moving.3d gfx/pacman-stopped.3d \
31 gfx/particle.tga gfx/resolution-high.tga gfx/resolution-low.tga \
32 gfx/rocket.3d gfx/start-game-high.tga gfx/start-game-low.tga \
33 gfx/wall-horizontal.3d gfx/wall-ll.3d gfx/wall-lr.3d gfx/wall-ul.3d \
34 gfx/wall-ur.3d gfx/wall-vertical.3d
36 all: attac-man
38 attac-man: $(OBJS) main.c
39 $(CC) $(CFLAGS) -o attac-man main.c $(OBJS) $(LDFLAGS)
41 3dsconv: 3dsconv.c tds.o object-3ds.o file.o
42 $(CC) $(CFLAGS) -o $@ $^ $(LDFLAGS) -l3ds
44 object-3ds.o: object.c
45 $(CC) $(CFLAGS) -DTDSCONV -c -o $@ $^
47 %.o: %.c
48 $(CC) $(CFLAGS) -c $<
50 install: attac-man
51 cd @top_srcdir@
52 install -g @GAME_GROUP@ -m 2775 -d @datadir@/attac-man
53 install -g @GAME_GROUP@ -d @datadir@/attac-man/sfx @datadir@/attac-man/gfx
54 # XXX - @bindir@ ends up in /bin, what to do here ?
55 install -c -g @GAME_GROUP@ -m 2755 attac-man ${prefix}/bin
56 install -c $(DATA_SFX) @datadir@/attac-man/sfx
57 install -c $(DATA_GFX) @datadir@/attac-man/gfx
58 touch @datadir@/attac-man/high-scores
59 chmod 0664 @datadir@/attac-man/high-scores
61 clean:
62 rm -f attac-man $(OBJS) main.o 3dsconv 3dsconv.o tds.o object-3ds.o *~
64 distclean: clean
65 rm -rf aclocal.m4 autom4te.cache config.h config.h.in \
66 config.log config.status config.sub configure \
67 configure.lineno Makefile config.guess missing \
68 stamp-h1 install-sh