Fixed image load bug. Added to stage.
[cantaveria.git] / Makefile
blob96333f4c90af0e3b6e2b569c550ab02f31cb95db
1 PROJECT=cantaveria
2 CFLAGS=-g -O2 -Wall -Wextra -Wno-unused-parameter
3 SRC=video.c audio.c input.c kernel.c main.c gameover.c \
4 loader.c graphics.c sfx.c text.c console.c music.c stage.c \
5 intro.c title.c splash.c inner.c \
6 synth.c seq.c midi.c orc.c dsp.c \
7 rng.c util.c list.c zip.c \
8 hud.c camera.c
9 OBJ:=$(SRC:.c=.o)
10 CC=gcc
11 LIBS=-lSDL -lGL -lm -lz
14 $(PROJECT): $(OBJ) data.zip
15 $(CC) -o $(PROJECT) $(LIBS) $(OBJ)
17 $(OBJ): %o: %c
18 $(CC) -c -I. $(CFLAGS) -o $@ $<
20 data.zip:
21 wget http://evanr.infinitymotel.net/cantaveria/data.zip
23 clean:
24 $(RM) $(PROJECT) *{.o,.a} depend
26 tarball:
27 mkdir -p dist/cantaveria
28 cp --parents *{.c,.h} Makefile AUTHORS COPYING data.zip dist/cantaveria/
29 cd dist && tar cvzf ../cantaveria.tar.gz cantaveria
30 rm -rf dist
32 depend:
33 gcc -MM -I. $(SRC) > depend
36 include depend