diff --git a/common/Makefile.am b/common/Makefile.am index d3f836093..47d24199b 100644 --- a/common/Makefile.am +++ b/common/Makefile.am @@ -7,17 +7,13 @@ INCLUDES = \ -I$(top_builddir)/clutter \ -I$(top_builddir)/clutter/cogl \ -DG_LOG_DOMAIN=\"Cogl-Common\" \ - -DCLUTTER_COMPILATION \ - $(CLUTTER_CFLAGS) \ - $(CLUTTER_DEBUG_CFLAGS) \ - $(MAINTAINER_CFLAGS) \ - $(GCC_FLAGS) - -LDADD = $(CLUTTER_LIBS) + -DCLUTTER_COMPILATION noinst_LTLIBRARIES = libclutter-cogl-common.la EXTRA_DIST = stb_image.c +libclutter_cogl_common_la_CPPFLAGS = $(CLUTTER_CFLAGS) $(CLUTTER_DEBUG_CFLAGS) $(MAINTAINER_CFLAGS) +libclutter_cogl_common_la_LIBADD = -lm $(CLUTTER_LIBS) libclutter_cogl_common_la_SOURCES = \ cogl-handle.h \ cogl-internal.h \ diff --git a/gl/Makefile.am b/gl/Makefile.am index 4d360e63d..0e251f457 100644 --- a/gl/Makefile.am +++ b/gl/Makefile.am @@ -51,12 +51,11 @@ INCLUDES = \ -DG_LOG_DOMAIN=\"Cogl-GL\" \ -DCLUTTER_COMPILATION -AM_CPPFLAGS = $(CLUTTER_CFLAGS) $(CLUTTER_DEBUG_CFLAGS) $(MAINTAINER_CFLAGS) - -LDADD = $(CLUTTER_LIBS) - noinst_LTLIBRARIES = libclutter-cogl.la +libclutter_cogl_la_CPPFLAGS = $(CLUTTER_CFLAGS) $(CLUTTER_DEBUG_CFLAGS) $(MAINTAINER_CFLAGS) +libclutter_cogl_la_LIBADD = -lm $(CLUTTER_LIBS) $(top_builddir)/clutter/cogl/common/libclutter-cogl-common.la +libclutter_cogl_la_DEPENDENCIES = $(top_builddir)/clutter/cogl/common/libclutter-cogl-common.la libclutter_cogl_la_SOURCES = \ $(top_builddir)/clutter/cogl/cogl.h \ $(cogl_headers) \ @@ -65,5 +64,3 @@ libclutter_cogl_la_SOURCES = \ $(NULL) EXTRA_DIST = cogl-defines.h.in - -libclutter_cogl_la_LIBADD = $(top_builddir)/clutter/cogl/common/libclutter-cogl-common.la diff --git a/gles/Makefile.am b/gles/Makefile.am index 409f655b8..5a2b8e429 100644 --- a/gles/Makefile.am +++ b/gles/Makefile.am @@ -25,16 +25,13 @@ INCLUDES = \ -I$(top_builddir)/clutter \ -I$(top_builddir)/clutter/cogl \ -DG_LOG_DOMAIN=\"Cogl-GLES\" \ - -DCLUTTER_COMPILATION \ - $(CLUTTER_CFLAGS) \ - $(CLUTTER_DEBUG_CFLAGS) \ - $(MAINTAINER_CFLAGS) \ - $(GCC_FLAGS) - -LDADD = $(CLUTTER_LIBS) + -DCLUTTER_COMPILATION noinst_LTLIBRARIES = libclutter-cogl.la +libclutter_cogl_la_CPPFLAGS = $(CLUTTER_CFLAGS) $(CLUTTER_DEBUG_CFLAGS) $(MAINTAINER_CFLAGS) +libclutter_cogl_la_LIBADD = -lm $(CLUTTER_LIBS) $(top_builddir)/clutter/cogl/common/libclutter-cogl-common.la +libclutter_cogl_la_DEPENDENCIES = $(top_builddir)/clutter/cogl/common/libclutter-cogl-common.la libclutter_cogl_la_SOURCES = \ $(top_builddir)/clutter/cogl/cogl.h \ $(top_builddir)/clutter/cogl/cogl-defines-gles.h \ @@ -77,8 +74,6 @@ EXTRA_DIST = cogl-defines.h.in \ cogl-fixed-vertex-shader.glsl \ cogl-fixed-fragment-shader.glsl -libclutter_cogl_la_LIBADD = $(top_builddir)/clutter/cogl/common/libclutter-cogl-common.la - .glsl.h : /bin/sh $(top_srcdir)/clutter/cogl/gles/stringify.sh -h $<