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 \
11 LIBS
=-lSDL
-lGL
-lm
-lz
14 $(PROJECT
): $(OBJ
) data.zip
15 $(CC
) -o
$(PROJECT
) $(LIBS
) $(OBJ
)
18 $(CC
) -c
-I.
$(CFLAGS
) -o
$@
$<
21 wget http
://evanr.infinitymotel.net
/cantaveria
/data.zip
24 $(RM
) $(PROJECT
) *{.o
,.a
} depend
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
33 gcc
-MM
-I.
$(SRC
) > depend