Changed relevant printf to boot_msg and error_msg.
[cantaveria.git] / Makefile
blob8db46fea2df4ed2ebe87aed2675802d35b243f6e
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 OBJ:=$(SRC:.c=.o)
9 CC=gcc
10 LIBS=-lSDL -lGL -lm -lz
13 $(PROJECT): $(OBJ) data.zip
14 $(CC) -o $(PROJECT) $(LIBS) $(OBJ)
16 $(OBJ): %o: %c
17 $(CC) -c -I. $(CFLAGS) -o $@ $<
19 data.zip:
20 wget http://evanr.infinitymotel.net/cantaveria/data.zip
22 clean:
23 $(RM) $(PROJECT) *{.o,.a}
25 tarball:
26 mkdir -p dist/cantaveria
27 cp --parents *{.c,.h} Makefile AUTHORS COPYING data.zip dist/cantaveria/
28 cd dist && tar cvzf ../cantaveria.tar.gz cantaveria
29 rm -rf dist
31 depend:
32 gcc -MM -I. $(SRC) > depend
35 include depend