source: trunk/src/Makefile.am @ 1540

Last change on this file since 1540 was 1540, checked in by sam, 11 years ago

build: factor the LolFx compilation rule into configure.ac.

File size: 3.5 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        $(LOLFX_BUILD)
68
69if TRUE
70generated: .FORCE
71        $(MKDIR_P) generated
72        rm -f generated/[a-zA-Z]*
73        flex -o generated/easymesh-scanner.cpp easymesh/easymesh-scanner.l
74        bison -o generated/easymesh-parser.cpp --defines=generated/easymesh-parser.h \
75              -d -b generated/easymesh easymesh/easymesh-parser.y
76.FORCE:
77endif
78
79EXTRA_DIST = easymesh/easymesh-scanner.l easymesh/easymesh-parser.y
80
81sdl_sources = \
82    image/codec/sdl-image.cpp \
83    platform/sdl/sdlapp.cpp platform/sdl/sdlapp.h \
84    platform/sdl/sdlinput.cpp platform/sdl/sdlinput.h
85
86d3d9_sources = \
87    platform/d3d9/d3d9input.cpp platform/d3d9/d3d9input.h
88
89if USE_NACL
90nacl_sources = \
91    platform/nacl/nacl-app.cpp platform/nacl/nacl-app.h \
92    platform/nacl/nacl-instance.cpp platform/nacl/nacl-instance.h \
93    platform/nacl/nacl-module.cpp \
94    platform/nacl/opengl_context.cpp platform/nacl/opengl_context.h \
95    platform/nacl/opengl_context_ptrs.h
96endif
97
98if HAVE_PS3
99ps3_sources = \
100    image/codec/ps3-image.cpp \
101    platform/ps3/threadbase.h \
102    platform/ps3/ps3app.cpp platform/ps3/ps3app.h \
103    platform/ps3/ps3input.cpp platform/ps3/ps3input.h
104endif
105
106if HAVE_XBOX
107xbox_sources = \
108    platform/xbox/xboxapp.cpp platform/xbox/xboxapp.h \
109    platform/xbox/xboxinput.cpp platform/xbox/xboxinput.h
110endif
111
112android_sources = \
113    image/codec/android-image.cpp \
114    platform/android/androidapp.cpp platform/android/androidapp.h
115
Note: See TracBrowser for help on using the repository browser.