add framework for boxes
[turbulence.git] / Makefile.in
blobc5ecc3aa6d8362b5d7175abd3f21d6ca5f6a69d4
1 SHELL=/bin/bash
3 top_builddir=@top_builddir@
4 top_srcdir=@top_srcdir@
5 prefix=@prefix@
6 srcdir=@srcdir@
8 LIBTOOL=libtool
9 CC=@CC@
10 VALAC=@VALAC@
11 CFLAGS=-g -Wall -I$(top_builddir)/src @GLIB_CFLAGS@ @GOBJECT_CFLAGS@ \
12 @GEE_CFLAGS@ @CLUTTER_CFLAGS@ @CAIRO_CFLAGS@ @PANGO_CFLAGS@ @GDK_CFLAGS@
13 LDFLAGS=-g @GLIB_LIBS@ @GOBJECT_LIBS@ @GEE_LIBS@ @CLUTTER_LIBS@ @CAIRO_LIBS@ \
14 @PANGO_LIBS@ @GDK_LIBS@ -lGL
15 VALAFLAGS=--vapidir $(top_srcdir)/vapi --pkg glib-2.0 --pkg gee-1.0 --pkg \
16 clutter-turbulence-0.6 --pkg cairo-turbulence --pkg pango --pkg gdk-2.0 \
17 --pkg gl-turbulence --pkg gdk-pixbuf-2.0
18 VERSIONINFO=@VERSIONINFO@
20 TURBULENCE_VALA_SRC=actor-model.vala animatable.vala animation.vala \
21 bloom-filter.vala box.vala box-element.vala cairo-actor.vala \
22 cairo-software-actor.vala container-model.vala filter.vala \
23 filter-behavior.vala float.vala geometry-primitives.vala \
24 layout-manager.vala transaction.vala unit-functions.vala update.vala
25 TURBULENCE_C_SRC=
26 TESTS_VALA_SRC=bloom.vala cairo.vala hierarchy.vala position.vala
27 VAPI=vapi/cairo-turbulence.vapi vapi/clutter-turbulence-0.6.vapi \
28 vapi/gl-turbulence.vapi
30 all: libturbulence.la
32 TURBULENCE_VALA_FP_SRC=$(TURBULENCE_VALA_SRC:%=src/turbulence/%)
33 TURBULENCE_C_FP_SRC=$(TURBULENCE_C_SRC:%=src/turbulence/%)
34 TURBULENCE_VALA_C_FP_SRC=$(TURBULENCE_VALA_FP_SRC:%.vala=%.c)
35 TURBULENCE_FP_SRC=$(TURBULENCE_VALA_C_FP_SRC) $(TURBULENCE_C_FP_SRC)
36 TURBULENCE_FP_OBJ=$(TURBULENCE_FP_SRC:%.c=%.lo)
38 QUIET=@qp() { local tag=$$1 ; shift ; printf " %-12s %s\n" "$$tag" $@ ; $$* \
39 ; } ; qp
41 # Uncomment this to be noisy
42 #QUIET=@qp() { shift ; echo $$* ; $$* ; } ; qp
44 libturbulence.la: $(TURBULENCE_FP_OBJ)
45 $(QUIET) "LINK [LT]" $(LIBTOOL) --silent --mode=link $(CC) $(LDFLAGS) -o \
46 $@ -rpath $(prefix)/lib -export-symbols-regex '^turbulence\w+$$' \
47 -version-info $(VERSIONINFO) $(TURBULENCE_FP_OBJ)
49 %.lo: %.c
50 $(QUIET) "CC [LT]" $(LIBTOOL) --silent --mode=compile $(CC) $(CFLAGS) -c \
51 -o $@ $^
53 $(TURBULENCE_VALA_C_FP_SRC): turbulence-vala.stamp $(VAPI)
55 turbulence-vala.stamp: $(TURBULENCE_VALA_FP_SRC)
56 $(QUIET) "VALAC" $(VALAC) $(VALAFLAGS) --library turbulence --basedir src \
57 -C $^ && touch $@
59 .PHONY: clean tests
61 TESTS_VALA_FP_SRC=$(TESTS_VALA_SRC:%=t/%)
62 TESTS_VALA_C_FP_SRC=$(TESTS_VALA_FP_SRC:%.vala=%.c)
63 TESTS_FP_OBJ=$(TESTS_VALA_C_FP_SRC:%.c=%.o)
64 TESTS_FP_EXE=$(TESTS_VALA_C_FP_SRC:%.c=%)
66 tests: $(TESTS_FP_EXE)
68 $(TESTS_FP_EXE): libturbulence.la
70 $(TESTS_FP_EXE): %: %.o
71 $(QUIET) "LINK [LT]" $(LIBTOOL) --silent --mode=link $(CC) $(CFLAGS) -o \
72 $@ $^ libturbulence.la
74 $(TESTS_FP_OBJ): %.o: %.c
75 $(QUIET) CC $(CC) $(CFLAGS) -I. -Isrc -c -o $@ $^
77 $(TESTS_VALA_C_FP_SRC): libturbulence.la $(VAPI)
79 $(TESTS_VALA_C_FP_SRC): %.c: %.vala
80 $(QUIET) VALAC $(VALAC) $(VALAFLAGS) --vapidir $(top_builddir) --pkg \
81 turbulence --basedir . -C $<
83 clean:
84 rm -f $(TURBULENCE_VALA_C_FP_SRC) $(TURBULENCE_FP_OBJ) \
85 libturbulence.la $(TESTS_FP_EXE) $(TESTS_FP_OBJ) \
86 $(TESTS_VALA_C_FP_SRC) turbulence-vala.stamp
89 # Boilerplate Autoconf remaking
92 $(srcdir)/configure: configure.ac aclocal.m4
93 cd '$(srcdir)' && autoconf
95 Makefile: Makefile.in config.status
96 ./config.status
98 config.status: configure
99 ./config.status --recheck