6 LDFLAGS
:= ${LDFLAGS} -llua
-lSDL
-lSDL_image
-lSDL_mixer
-lSDL_gfx
-lSDL_ttf
7 CFLAGS
:= ${CFLAGS} -O2
-I
/usr
/include
9 objects
= funcs_draw.o funcs_font.o funcs.o funcs_input.o funcs_sound.o funcs_video.o globals.o
10 doc_source
= doc
/class_eventmanager.txt doc
/index.txt doc
/class_objectlist.txt doc
/class_object.txt doc
/fun_ref.txt
14 luagame
: main.o
$(objects
)
15 ${CXX} -o luagame main.o
$(objects
) ${LDFLAGS}
17 main.o
: $(objects
) main.
cpp globals.h
18 ${CXX} -c main.
cpp ${CFLAGS}
20 funcs_draw.o
: funcs_draw.
cpp funcs_draw.h globals.h
21 ${CXX} -c funcs_draw.
cpp ${CFLAGS}
23 funcs_font.o
: funcs_font.
cpp funcs_font.h globals.h
24 ${CXX} -c funcs_font.
cpp ${CFLAGS}
26 funcs.o
: funcs.
cpp funcs.h globals.h
27 ${CXX} -c funcs.
cpp ${CFLAGS}
29 funcs_input.o
: funcs_input.
cpp funcs_input.h globals.h
30 ${CXX} -c funcs_input.
cpp ${CFLAGS}
32 funcs_sound.o
: funcs_sound.
cpp funcs_sound.h globals.h
33 ${CXX} -c funcs_sound.
cpp ${CFLAGS}
35 funcs_video.o
: funcs_video.
cpp funcs_video.h globals.h
36 ${CXX} -c funcs_video.
cpp $(CFLAGS
)
38 globals.o
: globals.h globals.
cpp
39 ${CXX} -c globals.
cpp $(CFLAGS
)
47 rm -f main.o
$(objects
)
52 cp luagame
${PREFIX}/bin
/
55 mkdir
${PREFIX}/share
/luagame
/
56 mkdir
${PREFIX}/share
/luagame
/doc
58 cp
*.html
${PREFIX}/share
/luagame
/doc
/
62 rm -f
${PREFIX}/bin
/luagame
63 rm -rf
${PREFIX}/share
/luagame