source: trunk/src/Makefile.am @ 1403

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

build: ensure .lolfx.cpp files get cleaned up.

File size: 3.1 KB
Line 
1
2noinst_LIBRARIES = liblol.a
3
4liblol_a_SOURCES = \
5    core.h tiler.cpp tiler.h dict.cpp dict.h array.h \
6    audio.cpp audio.h scene.cpp scene.h font.cpp font.h layer.cpp layer.h \
7    map.cpp map.h entity.cpp entity.h ticker.cpp ticker.h lolgl.h \
8    tileset.cpp tileset.h forge.cpp forge.h video.cpp video.h log.cpp log.h \
9    timer.cpp timer.h bitfield.h profiler.cpp profiler.h \
10    world.cpp world.h sample.cpp sample.h sampler.cpp sampler.h \
11    text.cpp text.h emitter.cpp emitter.h numeric.h hash.cpp hash.h \
12    worldentity.cpp worldentity.h gradient.cpp gradient.h \
13    platform.cpp platform.h sprite.cpp sprite.h camera.cpp camera.h \
14    \
15    lol/unit.h lol/debug.h \
16    lol/math/vector.h lol/math/half.h lol/math/real.h lol/math/remez.h \
17    \
18    application/application.cpp application/application.h \
19    eglapp.cpp eglapp.h \
20    \
21    $(ps3_sources) \
22    $(xbox_sources) \
23    $(nacl_sources) \
24    $(sdl_sources) \
25    $(d3d9_sources) \
26    $(android_sources) \
27    \
28    thread/threadbase.h thread/thread.h \
29    \
30    math/vector.cpp math/real.cpp math/half.cpp math/trig.cpp math/trig.h \
31    \
32    input/input.cpp input/input.h \
33    input/stick.cpp input/stick.h \
34    \
35    gpu/shader.cpp gpu/shader.h \
36    gpu/indexbuffer.cpp gpu/indexbuffer.h \
37    gpu/vertexbuffer.cpp gpu/vertexbuffer.h \
38    \
39    image/image.cpp image/image.h image/image-private.h \
40    image/codec/gdiplus-image.cpp \
41    image/codec/ios-image.cpp \
42    image/codec/dummy-image.cpp \
43    \
44    loldebug.h \
45    debug/fps.cpp debug/fps.h debug/sphere.cpp debug/sphere.h \
46    debug/record.cpp debug/record.h debug/stats.cpp debug/stats.h \
47    debug/quad.cpp debug/quad.h
48nodist_liblol_a_SOURCES = \
49    gpu/defaultmaterial.lolfx.cpp \
50    gpu/emptymaterial.lolfx.cpp
51liblol_a_CPPFLAGS = @LOL_CFLAGS@
52
53CLEANFILES = $(filter %.lolfx.cpp, $(SOURCES))
54
55SUFFIXES = .lolfx
56%.lolfx.cpp: %.lolfx
57        echo "/* This file was autogenerated. DO NOT MODIFY IT. */" > $@.tmp
58        echo "char const *lolfx_$(notdir $(^:%.lolfx=%)) =" >> $@.tmp
59        $(SED) 's/"/\\"/g' $^ | $(SED) 's/.*/"&\\n"/' >> $@.tmp
60        echo ";" >> $@.tmp
61        mv $@.tmp $@
62
63sdl_sources = \
64    image/codec/sdl-image.cpp \
65    platform/sdl/sdlapp.cpp platform/sdl/sdlapp.h \
66    platform/sdl/sdlinput.cpp platform/sdl/sdlinput.h
67
68d3d9_sources = \
69    platform/xbox/xboxinput.cpp platform/xbox/xboxinput.h
70
71if USE_NACL
72nacl_sources = \
73    platform/nacl/naclapp.cpp platform/nacl/naclapp.h \
74    platform/nacl/nacl_instance.cpp platform/nacl/nacl_instance.h \
75    platform/nacl/nacl_module.cpp \
76    platform/nacl/opengl_context.cpp platform/nacl/opengl_context.h \
77    platform/nacl/opengl_context_ptrs.h
78endif
79
80if HAVE_PS3
81ps3_sources = \
82    image/codec/ps3-image.cpp \
83    platform/ps3/threadbase.h \
84    platform/ps3/ps3app.cpp platform/ps3/ps3app.h \
85    platform/ps3/ps3input.cpp platform/ps3/ps3input.h
86endif
87
88if HAVE_XBOX
89xbox_sources = \
90    platform/xbox/xboxapp.cpp platform/xbox/xboxapp.h \
91    platform/xbox/xboxinput.cpp platform/xbox/xboxinput.h
92endif
93
94android_sources = \
95    image/codec/android-image.cpp \
96    platform/android/androidapp.cpp platform/android/androidapp.h
97
Note: See TracBrowser for help on using the repository browser.