Editor now operates in a zone context.
[cantaveria.git] / Makefile
blobf3228dacad8ea9f83edfdd0aaf2dc22f0cf30b9e
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)
16 editor: $(OBJ) edit.c
17 $(CC) -o editor -I. $(LIBS) console.o loader.o list.o \
18 video.o graphics.o util.o rng.o zip.o camera.o edit.c
21 $(OBJ): %o: %c
22 $(CC) -c -I. $(CFLAGS) -o $@ $<
24 data.zip:
25 wget http://evanr.infinitymotel.net/cantaveria/data.zip
27 clean:
28 $(RM) $(PROJECT) *{.o,.a} depend editor
30 tarball:
31 mkdir -p dist/cantaveria
32 cp --parents *{.c,.h} Makefile AUTHORS COPYING data.zip dist/cantaveria/
33 cd dist && tar cvzf ../cantaveria.tar.gz cantaveria
34 rm -rf dist
36 depend:
37 gcc -MM -I. $(SRC) > depend
40 include depend