source: trunk/src/Makefile.am @ 1524

Last change on this file since 1524 was 1524, checked in by sam, 8 years ago

build: move all games to a "games" subdirectory to clean up the root
directory layout mess.

File size: 3.7 KB
Line 
1
2SUBDIRS = data
3
4noinst_LIBRARIES = liblol.a
5
6liblol_a_SOURCES = \
7    core.h tiler.cpp tiler.h dict.cpp dict.h array.h \
8    audio.cpp audio.h scene.cpp scene.h font.cpp font.h layer.cpp layer.h \
9    map.cpp map.h entity.cpp entity.h ticker.cpp ticker.h lolgl.h \
10    tileset.cpp tileset.h forge.cpp forge.h video.cpp video.h log.cpp log.h \
11    timer.cpp timer.h bitfield.h profiler.cpp profiler.h \
12    world.cpp world.h sample.cpp sample.h sampler.cpp sampler.h \
13    text.cpp text.h emitter.cpp emitter.h numeric.h hash.cpp hash.h \
14    worldentity.cpp worldentity.h gradient.cpp gradient.h \
15    platform.cpp platform.h sprite.cpp sprite.h camera.cpp camera.h \
16    \
17    lol/unit.h lol/debug.h \
18    lol/math/vector.h lol/math/half.h lol/math/real.h lol/math/remez.h \
19    lol/math/math.h \
20    \
21    generated/location.hh generated/position.hh generated/stack.hh \
22    \
23    application/application.cpp application/application.h \
24    eglapp.cpp eglapp.h \
25    \
26    easymesh/easymesh.cpp easymesh/easymesh.h \
27    easymesh/shiny.lolfx \
28    easymesh/easymesh-compiler.cpp easymesh/easymesh-compiler.h \
29    generated/easymesh-parser.cpp generated/easymesh-parser.h \
30    generated/easymesh-scanner.cpp \
31    \
32    $(ps3_sources) \
33    $(xbox_sources) \
34    $(nacl_sources) \
35    $(sdl_sources) \
36    $(d3d9_sources) \
37    $(android_sources) \
38    \
39    thread/threadbase.h thread/thread.h \
40    \
41    math/vector.cpp math/real.cpp math/half.cpp math/trig.cpp \
42    \
43    input/input.cpp input/input.h \
44    input/stick.cpp input/stick.h \
45    \
46    gpu/shader.cpp gpu/shader.h \
47    gpu/indexbuffer.cpp gpu/indexbuffer.h \
48    gpu/vertexbuffer.cpp gpu/vertexbuffer.h \
49    gpu/framebuffer.cpp gpu/framebuffer.h \
50    gpu/defaultmaterial.lolfx \
51    gpu/emptymaterial.lolfx \
52    gpu/testmaterial.lolfx \
53    \
54    image/image.cpp image/image.h image/image-private.h \
55    image/codec/gdiplus-image.cpp \
56    image/codec/ios-image.cpp \
57    image/codec/dummy-image.cpp \
58    \
59    loldebug.h \
60    debug/fps.cpp debug/fps.h debug/sphere.cpp debug/sphere.h \
61    debug/record.cpp debug/record.h debug/stats.cpp debug/stats.h \
62    debug/quad.cpp debug/quad.h
63liblol_a_CPPFLAGS = @LOL_CFLAGS@
64
65SUFFIXES = .lolfx
66.lolfx.o:
67        (echo "char const *"; \
68         echo "lolfx_$(notdir $(basename $(filter %.lolfx, $^))) ="; \
69         $(SED) 's/"/\\"/g' $(filter %.lolfx, $^) | \
70         $(SED) 's/\([^\r]*\).*/"\1\\n"/'; \
71         echo ";") | $(CXXCOMPILE) -xc++ -c - -o $@
72
73if TRUE
74generated: .FORCE
75        $(MKDIR_P) generated
76        rm -f generated/[a-zA-Z]*
77        flex -o generated/easymesh-scanner.cpp easymesh/easymesh-scanner.l
78        bison -o generated/easymesh-parser.cpp --defines=generated/easymesh-parser.h \
79              -d -b generated/easymesh easymesh/easymesh-parser.y
80.FORCE:
81endif
82
83EXTRA_DIST = easymesh/easymesh-scanner.l easymesh/easymesh-parser.y
84
85sdl_sources = \
86    image/codec/sdl-image.cpp \
87    platform/sdl/sdlapp.cpp platform/sdl/sdlapp.h \
88    platform/sdl/sdlinput.cpp platform/sdl/sdlinput.h
89
90d3d9_sources = \
91    platform/d3d9/d3d9input.cpp platform/d3d9/d3d9input.h
92
93if USE_NACL
94nacl_sources = \
95    platform/nacl/nacl-app.cpp platform/nacl/nacl-app.h \
96    platform/nacl/nacl-instance.cpp platform/nacl/nacl-instance.h \
97    platform/nacl/nacl-module.cpp \
98    platform/nacl/opengl_context.cpp platform/nacl/opengl_context.h \
99    platform/nacl/opengl_context_ptrs.h
100endif
101
102if HAVE_PS3
103ps3_sources = \
104    image/codec/ps3-image.cpp \
105    platform/ps3/threadbase.h \
106    platform/ps3/ps3app.cpp platform/ps3/ps3app.h \
107    platform/ps3/ps3input.cpp platform/ps3/ps3input.h
108endif
109
110if HAVE_XBOX
111xbox_sources = \
112    platform/xbox/xboxapp.cpp platform/xbox/xboxapp.h \
113    platform/xbox/xboxinput.cpp platform/xbox/xboxinput.h
114endif
115
116android_sources = \
117    image/codec/android-image.cpp \
118    platform/android/androidapp.cpp platform/android/androidapp.h
119
Note: See TracBrowser for help on using the repository browser.