source: trunk/src/Makefile.am @ 2575

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

build: reorganise automake build system.

File size: 4.6 KB
Line 
1
2include $(top_srcdir)/build/autotools/common.am
3
4SUBDIRS = bullet lua data
5
6noinst_LIBRARIES = liblolcore.a
7
8liblolcore_a_SOURCES = \
9    core.h tiler.cpp tiler.h dict.cpp dict.h \
10    audio.cpp audio.h scene.cpp scene.h font.cpp font.h layer.cpp layer.h \
11    map.cpp map.h entity.cpp entity.h ticker.cpp ticker.h lolgl.h \
12    tileset.cpp tileset.h forge.cpp forge.h video.cpp video.h \
13    world.cpp world.h sample.cpp sample.h sampler.cpp sampler.h \
14    profiler.cpp profiler.h text.cpp text.h emitter.cpp emitter.h numeric.h \
15    worldentity.cpp worldentity.h gradient.cpp gradient.h gradient.lolfx \
16    platform.cpp platform.h sprite.cpp sprite.h camera.cpp camera.h \
17    light.cpp light.h \
18    \
19    $(liblolcore_headers) \
20    $(liblolcore_sources) \
21    \
22    $(ps3_sources) \
23    $(xbox_sources) \
24    $(nacl_sources) \
25    $(sdl_sources) \
26    $(d3d9_sources) \
27    $(android_sources)
28liblolcore_a_CPPFLAGS = $(AM_CPPFLAGS) -I$(srcdir)/bullet -I$(srcdir)/lua
29
30EXTRA_DIST += easymesh/easymesh-scanner.l easymesh/easymesh-parser.y \
31              gpu/lolfx-scanner.l gpu/lolfx-parser.y
32
33liblolcore_headers = \
34    lol/base/all.h \
35    lol/base/log.h lol/base/array.h lol/base/types.h lol/base/array.h \
36    lol/base/assert.h lol/base/string.h lol/base/hash.h lol/base/map.h \
37    \
38    lol/math/all.h \
39    lol/math/functions.h lol/math/vector.h lol/math/half.h lol/math/real.h \
40    lol/math/remez.h lol/math/geometry.h lol/math/interp.h lol/math/rand.h \
41    \
42    lol/sys/all.h \
43    lol/sys/init.h lol/sys/file.h lol/sys/thread.h lol/sys/atomic.h \
44    lol/sys/timer.h \
45    \
46    lol/image/all.h \
47    lol/image/color.h lol/image/image.h \
48    \
49    lol/gpu/all.h \
50    lol/gpu/shader.h lol/gpu/indexbuffer.h lol/gpu/vertexbuffer.h \
51    lol/gpu/framebuffer.h lol/gpu/texture.h lol/gpu/lolfx.h \
52    \
53    lol/debug/all.h \
54    lol/debug/lines.h \
55    \
56    lol/unit.h
57
58liblolcore_sources = \
59    generated/location.hh generated/position.hh generated/stack.hh \
60    \
61    application/application.cpp application/application.h \
62    eglapp.cpp eglapp.h \
63    \
64    easymesh/easymesh.cpp easymesh/easymesh.h \
65    easymesh/csgbsp.cpp easymesh/csgbsp.h \
66    easymesh/shiny.lolfx easymesh/shinydebugwireframe.lolfx \
67    easymesh/shinydebuglighting.lolfx easymesh/shinydebugnormal.lolfx \
68    easymesh/shinydebugUV.lolfx easymesh/shiny_SK.lolfx \
69    easymesh/easymesh-compiler.cpp easymesh/easymesh-compiler.h \
70    generated/easymesh-parser.cpp generated/easymesh-parser.h \
71    generated/easymesh-scanner.cpp \
72    \
73    base/assert.cpp base/hash.cpp base/log.cpp base/string.cpp \
74    \
75    math/vector.cpp math/real.cpp math/half.cpp math/trig.cpp \
76    math/geometry.cpp \
77    \
78    gpu/shader.cpp gpu/indexbuffer.cpp gpu/vertexbuffer.cpp \
79    gpu/framebuffer.cpp gpu/texture.cpp \
80    \
81    input/input.cpp input/input.h \
82    input/keyboard.cpp input/keyboard.h \
83    input/stick.cpp input/stick.h \
84    \
85    gpu/defaultmaterial.lolfx \
86    gpu/tile.lolfx gpu/line.lolfx \
87    gpu/emptymaterial.lolfx \
88    gpu/testmaterial.lolfx \
89    \
90    gpu/lolfx.cpp \
91    gpu/lolfx-compiler.cpp gpu/lolfx-compiler.h \
92    generated/lolfx-parser.cpp generated/lolfx-parser.h \
93    generated/lolfx-scanner.cpp \
94    \
95    mesh/mesh.cpp mesh/mesh.h \
96    \
97    sys/init.cpp sys/timer.cpp sys/file.cpp \
98    sys/threadbase.h \
99    \
100    image/image.cpp image/image-private.h \
101    image/codec/gdiplus-image.cpp \
102    image/codec/ios-image.cpp \
103    image/codec/dummy-image.cpp \
104    image/color/cie1931.cpp \
105    \
106    loldebug.h \
107    debug/fps.cpp debug/fps.h debug/lines.cpp \
108    debug/record.cpp debug/record.h debug/stats.cpp debug/stats.h
109
110sdl_sources = \
111    image/codec/sdl-image.cpp \
112    platform/sdl/sdlapp.cpp platform/sdl/sdlapp.h \
113    platform/sdl/sdlinput.cpp platform/sdl/sdlinput.h
114
115d3d9_sources = \
116    platform/d3d9/d3d9input.cpp platform/d3d9/d3d9input.h
117
118if USE_NACL
119nacl_sources = \
120    platform/nacl/nacl-app.cpp platform/nacl/nacl-app.h \
121    platform/nacl/nacl-instance.cpp platform/nacl/nacl-instance.h \
122    platform/nacl/nacl-module.cpp \
123    platform/nacl/opengl_context.cpp platform/nacl/opengl_context.h \
124    platform/nacl/opengl_context_ptrs.h
125endif
126
127if USE_PS3
128ps3_sources = \
129    image/codec/ps3-image.cpp \
130    platform/ps3/threadbase.h \
131    platform/ps3/ps3app.cpp platform/ps3/ps3app.h \
132    platform/ps3/ps3input.cpp platform/ps3/ps3input.h
133endif
134
135if USE_X360
136xbox_sources = \
137    platform/xbox/xboxapp.cpp platform/xbox/xboxapp.h \
138    platform/xbox/xboxinput.cpp platform/xbox/xboxinput.h
139endif
140
141android_sources = \
142    image/codec/android-image.cpp \
143    platform/android/androidapp.cpp platform/android/androidapp.h
144
Note: See TracBrowser for help on using the repository browser.