mirror of
https://github.com/brl/mutter.git
synced 2024-11-27 10:30:47 -05:00
[build] Clean up the makefile
Split out the files into their own variables to clean up the Makefile template; also use top_srcdir with the header files instead of top_builddir.
This commit is contained in:
parent
c065524b9f
commit
43fa38fcf5
@ -1,35 +1,55 @@
|
|||||||
libclutterincludedir = $(includedir)/clutter-@CLUTTER_API_VERSION@/cogl
|
NULL =
|
||||||
libclutterinclude_HEADERS = \
|
|
||||||
$(top_builddir)/clutter/cogl/cogl.h \
|
cogl_headers = \
|
||||||
$(top_builddir)/clutter/cogl/cogl-defines-gl.h \
|
$(top_builddir)/clutter/cogl/cogl-defines-gl.h \
|
||||||
$(top_builddir)/clutter/cogl/cogl-color.h \
|
$(top_srcdir)/clutter/cogl/cogl-color.h \
|
||||||
$(top_builddir)/clutter/cogl/cogl-deprecated.h \
|
$(top_srcdir)/clutter/cogl/cogl-deprecated.h \
|
||||||
$(top_builddir)/clutter/cogl/cogl-fixed.h \
|
$(top_srcdir)/clutter/cogl/cogl-fixed.h \
|
||||||
$(top_builddir)/clutter/cogl/cogl-offscreen.h \
|
$(top_srcdir)/clutter/cogl/cogl-offscreen.h \
|
||||||
$(top_builddir)/clutter/cogl/cogl-path.h \
|
$(top_srcdir)/clutter/cogl/cogl-path.h \
|
||||||
$(top_builddir)/clutter/cogl/cogl-shader.h \
|
$(top_srcdir)/clutter/cogl/cogl-shader.h \
|
||||||
$(top_builddir)/clutter/cogl/cogl-bitmap.h \
|
$(top_srcdir)/clutter/cogl/cogl-bitmap.h \
|
||||||
$(top_builddir)/clutter/cogl/cogl-texture.h \
|
$(top_srcdir)/clutter/cogl/cogl-texture.h \
|
||||||
$(top_builddir)/clutter/cogl/cogl-types.h \
|
$(top_srcdir)/clutter/cogl/cogl-types.h \
|
||||||
$(top_builddir)/clutter/cogl/cogl-vertex-buffer.h \
|
$(top_srcdir)/clutter/cogl/cogl-vertex-buffer.h \
|
||||||
$(top_builddir)/clutter/cogl/cogl-material.h \
|
$(top_srcdir)/clutter/cogl/cogl-material.h \
|
||||||
$(top_builddir)/clutter/cogl/cogl-matrix.h \
|
$(top_srcdir)/clutter/cogl/cogl-matrix.h \
|
||||||
$(top_builddir)/clutter/cogl/cogl-debug.h
|
$(top_srcdir)/clutter/cogl/cogl-debug.h \
|
||||||
|
$(NULL)
|
||||||
|
|
||||||
|
cogl_priv_headers = \
|
||||||
|
cogl-internal.h \
|
||||||
|
cogl-texture-private.h \
|
||||||
|
cogl-fbo.h \
|
||||||
|
cogl-shader-private.h \
|
||||||
|
cogl-program.h \
|
||||||
|
cogl-context.h \
|
||||||
|
$(NULL)
|
||||||
|
|
||||||
|
cogl_sources = \
|
||||||
|
cogl.c \
|
||||||
|
cogl-primitives.c \
|
||||||
|
cogl-texture.c \
|
||||||
|
cogl-fbo.c \
|
||||||
|
cogl-shader.c \
|
||||||
|
cogl-program.c \
|
||||||
|
cogl-context.c \
|
||||||
|
$(NULL)
|
||||||
|
|
||||||
|
coglincludedir = $(includedir)/clutter-@CLUTTER_API_VERSION@/cogl
|
||||||
|
coglinclude_HEADERS = \
|
||||||
|
$(cogl_headers) \
|
||||||
|
$(top_builddir)/clutter/cogl/cogl.h
|
||||||
|
|
||||||
INCLUDES = \
|
INCLUDES = \
|
||||||
-I$(top_srcdir) \
|
|
||||||
-I$(top_srcdir)/clutter \
|
|
||||||
-I$(top_srcdir)/clutter/cogl \
|
-I$(top_srcdir)/clutter/cogl \
|
||||||
-I$(top_srcdir)/clutter/cogl/common \
|
-I$(top_srcdir)/clutter/cogl/common \
|
||||||
-I$(top_srcdir)/clutter/cogl/$(CLUTTER_COGL) \
|
-I$(top_srcdir)/clutter/cogl/$(CLUTTER_COGL) \
|
||||||
-I$(top_builddir)/clutter \
|
-I$(top_builddir)/clutter \
|
||||||
-I$(top_builddir)/clutter/cogl \
|
|
||||||
-DG_LOG_DOMAIN=\"Cogl-GL\" \
|
-DG_LOG_DOMAIN=\"Cogl-GL\" \
|
||||||
-DCLUTTER_COMPILATION \
|
-DCLUTTER_COMPILATION
|
||||||
$(CLUTTER_CFLAGS) \
|
|
||||||
$(CLUTTER_DEBUG_CFLAGS) \
|
AM_CPPFLAGS = $(CLUTTER_CFLAGS) $(CLUTTER_DEBUG_CFLAGS) $(MAINTAINER_CFLAGS)
|
||||||
$(MAINTAINER_CFLAGS) \
|
|
||||||
$(GCC_FLAGS)
|
|
||||||
|
|
||||||
LDADD = $(CLUTTER_LIBS)
|
LDADD = $(CLUTTER_LIBS)
|
||||||
|
|
||||||
@ -37,30 +57,10 @@ noinst_LTLIBRARIES = libclutter-cogl.la
|
|||||||
|
|
||||||
libclutter_cogl_la_SOURCES = \
|
libclutter_cogl_la_SOURCES = \
|
||||||
$(top_builddir)/clutter/cogl/cogl.h \
|
$(top_builddir)/clutter/cogl/cogl.h \
|
||||||
$(top_builddir)/clutter/cogl/cogl-defines-gl.h \
|
$(cogl_headers) \
|
||||||
$(top_builddir)/clutter/cogl/cogl-color.h \
|
$(cogl_priv_headers) \
|
||||||
$(top_builddir)/clutter/cogl/cogl-deprecated.h \
|
$(cogl_sources) \
|
||||||
$(top_builddir)/clutter/cogl/cogl-fixed.h \
|
$(NULL)
|
||||||
$(top_builddir)/clutter/cogl/cogl-offscreen.h \
|
|
||||||
$(top_builddir)/clutter/cogl/cogl-path.h \
|
|
||||||
$(top_builddir)/clutter/cogl/cogl-shader.h \
|
|
||||||
$(top_builddir)/clutter/cogl/cogl-bitmap.h \
|
|
||||||
$(top_builddir)/clutter/cogl/cogl-texture.h \
|
|
||||||
$(top_builddir)/clutter/cogl/cogl-types.h \
|
|
||||||
$(top_builddir)/clutter/cogl/cogl-debug.h \
|
|
||||||
cogl-internal.h \
|
|
||||||
cogl-texture-private.h \
|
|
||||||
cogl-fbo.h \
|
|
||||||
cogl-shader-private.h \
|
|
||||||
cogl-program.h \
|
|
||||||
cogl-context.h \
|
|
||||||
cogl.c \
|
|
||||||
cogl-primitives.c \
|
|
||||||
cogl-texture.c \
|
|
||||||
cogl-fbo.c \
|
|
||||||
cogl-shader.c \
|
|
||||||
cogl-program.c \
|
|
||||||
cogl-context.c
|
|
||||||
|
|
||||||
EXTRA_DIST = cogl-defines.h.in
|
EXTRA_DIST = cogl-defines.h.in
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user