Add top_builddir so glibconfig.h is found properly when build srcdir !=
[platform/upstream/glib.git] / gobject / Makefile.am
1 # GObject - GLib Type, Object, Parameter and Signal Library
2 # Copyright (C) 1997,98,99,2000 Tim Janik and Red Hat, Inc.
3 #
4 ## Process this file with automake to produce Makefile.in
5
6 SUBDIRS =
7
8 INCLUDES = -I$(top_srcdir) -I$(top_builddir) @GLIB_DEBUG_FLAGS@
9
10 # libraries to compile and install
11 lib_LTLIBRARIES = libgobject.la
12
13 # provide g_logv() domain
14 DEFS += -DG_LOG_DOMAIN=g_log_domain_gobject
15
16 # libtool stuff: set version and export symbols for resolving
17 libgobjectincludedir = $(includedir)/gobject
18 libgobject_la_LDFLAGS = @STRIP_BEGIN@ \
19         -version-info $(LT_CURRENT):$(LT_REVISION):$(LT_AGE) \
20         -release $(LT_RELEASE) \
21         -export-dynamic \
22 @STRIP_END@
23 libgobject_la_LIBADD = # $(libglib)
24
25 #
26 # setup source file variables
27 #
28 # GObject header files for public installation (non-generated)
29 gobject_public_h_sources = @STRIP_BEGIN@ \
30         gvalue.h \
31         gparam.h \
32         gparamspecs.h \
33         genums.h \
34         gobject.h \
35         gtype.h \
36         gvaluecollector.h \
37 @STRIP_END@
38 # private GObject header files
39 gobject_private_h_sources = @STRIP_BEGIN@ \
40 @STRIP_END@
41
42 # GObject C sources to build the library from
43 gobject_c_sources = @STRIP_BEGIN@ \
44         gvalue.c \
45         gparam.c \
46         gparamspecs.c \
47         genums.c \
48         gobject.c \
49         gtype.c \
50 @STRIP_END@
51
52 # non-header sources (headers should be specified in the above variables)
53 # that don't serve as direct make target sources, i.e. they don't have
54 # their own .lo rules and don't get publically installed
55 gobject_extra_sources = @STRIP_BEGIN@ \
56 @STRIP_END@
57
58 #
59 # setup GObject sources and their dependancies
60 #
61 gobject_h_sources = $(gobject_private_h_sources) $(gobject_public_h_sources) # $(gobject_built_public_sources)
62 libgobjectinclude_HEADERS = $(gobject_public_h_sources) # $(gobject_built_public_sources)
63 libgobject_la_SOURCES = $(gobject_c_sources)
64 MAINTAINERCLEANFILES += # $(gobject_built_public_sources) $(gobject_built_sources)
65 EXTRA_HEADERS +=
66 EXTRA_DIST += $(gobject_private_h_sources)
67 EXTRA_DIST += $(gobject_extra_sources) # $(gobject_built_sources) $(gobject_built_public_sources)
68
69 #
70 # programs to compile and install
71 #
72 bin_PROGRAMS = gobject-query
73 # source files
74 gobject_query_SOURCES = gobject-query.c
75 # link programs against libgobject
76 progs_LDADD = ../libglib.la libgobject.la
77 gobject_query_LDADD = $(progs_LDADD)
78
79 #
80 # auxillary files
81 #
82 EXTRA_DIST += \
83         TODO            \
84         makefile.mingw  \
85         makefile.mingw.in \
86         gobject.rc      \
87         gobject.rc.in
88
89 gobject.rc: $(top_builddir)/config.status $(top_srcdir)/gobject/gobject.rc.in
90         cd $(top_builddir) && CONFIG_FILES=gobject/$@ CONFIG_HEADERS= $(SHELL) ./config.status
91
92 makefile.mingw: $(top_builddir)/config.status $(top_srcdir)/gobject/makefile.mingw.in
93         cd $(top_builddir) && CONFIG_FILES=gobject/$@ CONFIG_HEADERS= $(SHELL) ./config.status
94