Fixed function prototypes.
[cantaveria.git] / Makefile
blob69b548a14804e4b4bf25f3cd31310a3aaf993aed
1 PROJECT=cantaveria
2 CFLAGS=-g -O2 -Wall -Wextra -Wno-unused-parameter -W -Wundef \
3 -Wshadow -Wbad-function-cast -Wcast-align -Wwrite-strings \
4 -Wnested-externs -Werror -Wno-unused-function -Wno-unused-variable
5 SRC=video.c audio.c input.c kernel.c main.c gameover.c \
6 loader.c graphics.c sfx.c text.c console.c music.c stage.c \
7 intro.c title.c splash.c inner.c \
8 synth.c seq.c midi.c orc.c dsp.c \
9 rng.c util.c list.c zip.c \
10 hud.c camera.c testplayer.c
11 OBJ:=$(SRC:.c=.o)
12 CC=gcc
13 LIBS=-lSDL -lGL -lm -lz
16 $(PROJECT): $(OBJ) data.zip
17 $(CC) -o $(PROJECT) $(LIBS) $(OBJ)
18 editor: $(OBJ) edit.c
19 $(CC) -o editor -I. $(LIBS) console.o loader.o list.o \
20 video.o graphics.o util.o rng.o zip.o camera.o edit.c
23 $(OBJ): %o: %c
24 $(CC) -c -I. $(CFLAGS) -o $@ $<
26 data.zip:
27 wget http://evanr.infinitymotel.net/cantaveria/data.zip
29 clean:
30 $(RM) $(PROJECT) *{.o,.a} depend editor
32 tarball:
33 mkdir -p dist/cantaveria
34 cp --parents *{.c,.h} Makefile AUTHORS COPYING data.zip dist/cantaveria/
35 cd dist && tar cvzf ../cantaveria.tar.gz cantaveria
36 rm -rf dist
38 depend:
39 gcc -MM -I. $(SRC) > depend
42 include depend