6296bce3187be94b2b573db72628e68c7d6e95bc
[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 INCLUDES = -I$(top_srcdir) -I$(top_builddir) @GLIB_DEBUG_FLAGS@
7
8 # libraries to compile and install
9 lib_LTLIBRARIES = libgobject-1.3.la
10
11 # provide g_logv() domain
12 AM_CFLAGS = -DG_LOG_DOMAIN=g_log_domain_gobject
13
14 # libtool stuff: set version and export symbols for resolving
15 libgobjectincludedir = $(includedir)/glib-2.0/gobject
16 libgobject_1_3_la_LDFLAGS = \
17         -version-info $(LT_CURRENT):$(LT_REVISION):$(LT_AGE) \
18         -export-dynamic
19 libgobject_1_3_la_LIBADD = # $(libglib)
20
21 #
22 # setup source file variables
23 #
24 # GObject header files for public installation (non-generated)
25 gobject_public_h_sources = @STRIP_BEGIN@ \
26         gboxed.h \
27         gbsearcharray.h \
28         gclosure.h \
29         genums.h \
30         gobject.h \
31         gparam.h \
32         gparamspecs.h \
33         gsignal.h \
34         gtype.h \
35         gtypemodule.h \
36         gtypeplugin.h \
37         gvalue.h \
38         gvaluecollector.h \
39         gvaluetypes.h \
40 @STRIP_END@
41
42 # private GObject header files
43 gobject_private_h_sources = 
44
45 # GObject C sources to build the library from
46 gobject_c_sources = @STRIP_BEGIN@ \
47         gboxed.c \
48         gbsearcharray.c \
49         gclosure.c \
50         genums.c \
51         gobject.c \
52         gparam.c \
53         gparamspecs.c \
54         gsignal.c \
55         gtype.c \
56         gtypemodule.c \
57         gtypeplugin.c \
58         gvalue.c \
59         gvaluetypes.c \
60 @STRIP_END@
61
62 # non-header sources (headers should be specified in the above variables)
63 # that don't serve as direct make target sources, i.e. they don't have
64 # their own .lo rules and don't get publically installed
65 gobject_extra_sources = 
66
67 #
68 # setup GObject sources and their dependancies
69 #
70 gobject_h_sources = $(gobject_private_h_sources) $(gobject_public_h_sources) # $(gobject_built_public_sources)
71 libgobjectinclude_HEADERS = $(gobject_public_h_sources) # $(gobject_built_public_sources)
72 libgobject_1_3_la_SOURCES = $(gobject_c_sources)
73 MAINTAINERCLEANFILES += 
74 # $(gobject_built_public_sources) $(gobject_built_sources)
75 EXTRA_HEADERS +=
76 EXTRA_DIST += $(gobject_private_h_sources)
77 EXTRA_DIST += $(gobject_extra_sources) 
78 # $(gobject_built_sources) $(gobject_built_public_sources)
79
80 #
81 # programs to compile and install
82 #
83 bin_PROGRAMS = gobject-query glib-genmarshal
84 # source files
85 gobject_query_SOURCES = gobject-query.c
86 glib_genmarshal_SOURCES = glib-genmarshal.c
87 # link programs against libgobject
88 progs_LDADD = ../libglib-1.3.la libgobject-1.3.la
89 gobject_query_LDADD = $(progs_LDADD)
90 glib_genmarshal_LDADD = $(progs_LDADD)
91
92 #
93 # manual pages to install
94 #
95 man_MANS = glib-genmarshal.1
96
97 #
98 # auxillary files
99 #
100 EXTRA_DIST +=                   \
101         makefile.mingw.in       \
102         makefile.msc.in         \
103         gobject.def             \
104         gobject.rc.in           \
105         glib-genmarshal.1
106
107 BUILT_EXTRA_DIST = \
108         makefile.mingw          \
109         makefile.msc            \
110         gobject.rc
111
112 gobject.rc: $(top_builddir)/config.status $(top_srcdir)/gobject/gobject.rc.in
113         cd $(top_builddir) && CONFIG_FILES=gobject/$@ CONFIG_HEADERS= $(SHELL) ./config.status
114
115 makefile.mingw: $(top_builddir)/config.status $(top_srcdir)/gobject/makefile.mingw.in
116         cd $(top_builddir) && CONFIG_FILES=gobject/$@ CONFIG_HEADERS= $(SHELL) ./config.status
117
118 makefile.msc: $(top_builddir)/config.status $(top_srcdir)/gobject/makefile.msc.in
119         cd $(top_builddir) && CONFIG_FILES=gobject/$@ CONFIG_HEADERS= $(SHELL) ./config.status
120
121 dist-hook: $(BUILT_EXTRA_DIST)
122         files='$(BUILT_EXTRA_DIST)'; \
123         for f in $$files; do \
124           if test -f $$f; then d=.; else d=$(srcdir); fi; \
125           cp $$d/$$f $(distdir) || exit 1; done
126