forgot to add .pc.in to EXTRA_DIST
[platform/upstream/glib.git] / glib / Makefile.am
1 ## Process this file with automake to produce Makefile.in
2
3 AUTOMAKE_OPTIONS = 1.4
4
5 SUBDIRS = . gobject gmodule gthread docs tests build
6
7 bin_SCRIPTS=glib-config-2.0
8 BUILT_SOURCES=glib-config-2.0
9 glib-config-2.0: glib-config-2.0.in
10
11 INCLUDES = -DG_LOG_DOMAIN=g_log_domain_glib @GLIB_DEBUG_FLAGS@
12
13 EXTRA_DIST =                    \
14         ChangeLog.pre-1-2       \
15         glib-2.0.m4             \
16         glib.spec.in            \
17         acglib.m4               \
18         sanity_check            \
19         README.win32            \
20         TODO.xml                \
21         glib.def                \
22         makefile.msc            \
23         makefile.msc.in         \
24         makefile.mingw          \
25         makefile.mingw.in       \
26         giowin32.c              \
27         glibconfig.h.win32      \
28         glibconfig.h.win32.in   \
29         gwin32.c                \
30         config.h.win32          \
31         config.h.win32.in       \
32         build-dll               \
33         glib.rc                 \
34         glib.rc.in              \
35         glib-2.0.pc.in          \
36         gobject-2.0.pc.in       \
37         gmodule-2.0.pc.in       \
38         gthread-2.0.pc.in
39
40 lib_LTLIBRARIES = libglib-1.3.la
41
42 libglib_1_3_la_SOURCES =        \
43         garray.c                \
44         gasyncqueue.c           \
45         gbacktrace.c            \
46         gcache.c                \
47         gcompletion.c           \
48         gdataset.c              \
49         gdate.c                 \
50         gerror.c                \
51         ghash.c                 \
52         ghook.c                 \
53         giochannel.c            \
54         giounix.c               \
55         glist.c                 \
56         gmain.c                 \
57         gmem.c                  \
58         gmessages.c             \
59         gnode.c                 \
60         gprimes.c               \
61         gqueue.c                \
62         grel.c                  \
63         grand.c                 \
64         gscanner.c              \
65         gslist.c                \
66         gstrfuncs.c             \
67         gstring.c               \
68         gthread.c               \
69         gthreadpool.c           \
70         gtimer.c                \
71         gtree.c                 \
72         guniprop.c              \
73         gutf8.c                 \
74         gunichartables.h        \
75         gunidecomp.h            \
76         gunidecomp.c            \
77         gutils.c
78
79 glibincludedir=$(includedir)/glib-2.0
80 glibinclude_HEADERS =   \
81         gerror.h        \
82         glib.h          \
83         glib-object.h   \
84         gunicode.h
85
86 configexecincludedir = $(libdir)/glib-2.0/include
87 #configexecinclude_DATA = glibconfig.h
88
89 install-exec-local: glibconfig.h
90         $(mkinstalldirs) $(DESTDIR)$(configexecincludedir)
91         file=$(DESTDIR)$(configexecincludedir)/glibconfig.h; \
92         if test -r $$file && cmp -s glibconfig.h $$file; then :; \
93         else $(INSTALL_DATA) glibconfig.h $$file; fi
94
95 configure: configure.in acglib.m4               
96
97 BUILT_SOURCES = stamp-gc-h #note: not glibconfig.h
98 glibconfig.h: stamp-gc-h
99         @if test -f glibconfig.h; then :; \
100         else rm -f stamp-gc-h; $(MAKE) stamp-gc-h; fi
101 stamp-gc-h: config.status
102         CONFIG_FILES= CONFIG_HEADERS= CONFIG_OTHER=glibconfig.h ./config.status
103         echo timestamp > stamp-gc-h
104
105 libglib_1_3_la_LDFLAGS = \
106         -version-info $(LT_CURRENT):$(LT_REVISION):$(LT_AGE) \
107         -export-dynamic
108
109 noinst_PROGRAMS = testglib testgdate testgdateparser
110 testglib_LDADD = libglib-1.3.la
111 testgdate_LDADD = libglib-1.3.la
112 testgdateparser_LDADD = libglib-1.3.la
113
114 m4datadir = $(datadir)/aclocal
115 m4data_DATA = glib-2.0.m4
116
117 pkgconfigdir = $(libdir)/pkgconfig
118 pkgconfig_DATA = glib-2.0.pc gobject-2.0.pc gmodule-2.0.pc gthread-2.0.pc
119
120 glibconfig.h.win32: $(top_builddir)/config.status $(top_srcdir)/glibconfig.h.win32.in
121         cd $(top_builddir) && CONFIG_FILES=$@ CONFIG_HEADERS= $(SHELL) ./config.status
122
123 config.h.win32: $(top_builddir)/config.status $(top_srcdir)/config.h.win32.in
124         cd $(top_builddir) && CONFIG_FILES=$@ CONFIG_HEADERS= $(SHELL) ./config.status
125
126 makefile.msc: $(top_builddir)/config.status $(top_srcdir)/makefile.msc.in
127         cd $(top_builddir) && CONFIG_FILES=$@ CONFIG_HEADERS= $(SHELL) ./config.status
128
129 makefile.mingw: $(top_builddir)/config.status $(top_srcdir)/makefile.mingw.in
130         cd $(top_builddir) && CONFIG_FILES=$@ CONFIG_HEADERS= $(SHELL) ./config.status
131
132 glib.rc: $(top_builddir)/config.status $(top_srcdir)/glib.rc.in
133         cd $(top_builddir) && CONFIG_FILES=$@ CONFIG_HEADERS= $(SHELL) ./config.status
134
135 .PHONY: files release sanity snapshot
136
137 files:
138         @files=`ls $(DISTFILES) 2> /dev/null `; for p in $$files; do \
139           echo $$p; \
140         done
141
142 release:
143         rm -rf .deps */.deps
144         cd docs && make glib.html
145         $(MAKE) distcheck
146
147 sanity:
148         ./sanity_check $(VERSION)
149
150 snapshot:
151         $(MAKE) dist distdir=$(PACKAGE)-snap`date +"%Y%m%d"`
152
153 snapcheck:
154         $(MAKE) distcheck distdir=$(PACKAGE)-snap`date +"%Y%m%d"`
155
156 dist-hook:
157         cp glib.spec $(distdir)