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
13 LIBS
=-lSDL
-lGL
-lm
-lz
16 $(PROJECT
): $(OBJ
) data.zip
17 $(CC
) -o
$(PROJECT
) $(LIBS
) $(OBJ
)
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
24 $(CC
) -c
-I.
$(CFLAGS
) -o
$@
$<
27 wget http
://evanr.infinitymotel.net
/cantaveria
/data.zip
30 $(RM
) $(PROJECT
) *{.o
,.a
} depend editor
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
39 gcc
-MM
-I.
$(SRC
) > depend