2 |
# Makefile prototype for Enigma. |
# Makefile prototype for Enigma. |
3 |
# |
# |
4 |
SUBDIRS = px |
SUBDIRS = px |
5 |
|
|
6 |
bin_PROGRAMS = enigma |
bin_PROGRAMS = enigma |
7 |
|
|
8 |
# Build font converter only if SDL_ttf library is present |
# Build font converter only if SDL_ttf library is present |
9 |
if BUILDTTF2BMF |
if BUILDTTF2BMF |
10 |
noinst_PROGRAMS = ttf2bmf |
noinst_PROGRAMS = ttf2bmf |
11 |
ttf2bmf_SOURCES = ttf2bmf.cc getopt.c getopt1.c getopt.h |
ttf2bmf_SOURCES = ttf2bmf.cc getopt.c getopt1.c getopt.h |
12 |
|
ttf2bmf_CXXFLAGS = @SDL_CFLAGS@ |
13 |
ttf2bmf_LDADD = -lSDL_ttf |
ttf2bmf_LDADD = -lSDL_ttf |
14 |
endif |
endif |
15 |
|
|
23 |
enigma-lua.cc enigma-lua.hh \ |
enigma-lua.cc enigma-lua.hh \ |
24 |
px-lua.cc px-lua.hh |
px-lua.cc px-lua.hh |
25 |
|
|
26 |
|
LIBS = @SDL_LIBS@ |
27 |
|
|
28 |
enigma_SOURCES = \ |
enigma_SOURCES = \ |
29 |
$(LUA_IF_SOURCES) \ |
$(LUA_IF_SOURCES) \ |
30 |
SDL_gfxPrimitives.c \ |
SDL_gfxPrimitives.c \ |
56 |
world.cc world.hh |
world.cc world.hh |
57 |
|
|
58 |
if MINGW32 |
if MINGW32 |
59 |
enigma_LDADD = px/libpx.a enigma_ico.o -llua -llualib \ |
wingw_ldadd = enigma_ico.o |
|
../lib-src/libtolua/libtolua.a \ |
|
|
../lib-src/oxydlib/liboxyd.a |
|
|
|
|
60 |
enigma_ico.o: enigma.rc enigma.ico |
enigma_ico.o: enigma.rc enigma.ico |
61 |
$(WINDRES) enigma.rc -O coff -o enigma_ico.o |
$(WINDRES) enigma.rc -O coff -o enigma_ico.o |
62 |
else |
else |
63 |
enigma_LDADD = px/libpx.a -llua -llualib \ |
mingw_ldadd = |
64 |
|
endif |
65 |
|
|
66 |
|
enigma_LDADD = $(mingw_ldadd) \ |
67 |
|
@SDL_LIBS@ px/libpx.a -llua -llualib \ |
68 |
../lib-src/libtolua/libtolua.a \ |
../lib-src/libtolua/libtolua.a \ |
69 |
../lib-src/oxydlib/liboxyd.a |
../lib-src/oxydlib/liboxyd.a |
70 |
endif |
|
71 |
|
enigma_CXXFLAGS = @SDL_CFLAGS@ |
72 |
|
enigma_CFLAGS = @SDL_CFLAGS@ |
73 |
|
|
74 |
# Rule for creating Lua interfaces from package descriptions using 'tolua' |
# Rule for creating Lua interfaces from package descriptions using 'tolua' |
75 |
%-lua.cc %-lua.hh: %-lua.pkg |
%-lua.cc %-lua.hh: %-lua.pkg |