Rename from supportincludedir so that `gnomesupport.h' can be installed
[platform/upstream/gnome-common.git] / support / Makefile.am
1 ## Process this file with automake to produce Makefile.in.
2
3 supportexecincludedir = $(pkglibdir)/include
4
5 INCLUDES = -D_GNU_SOURCE
6
7 lib_LTLIBRARIES = libgnomesupport.la
8
9 # it is in _DATA since we don't want `gnomesupport.h' to be part of
10 # the distributed `.tar.gz' file
11 supportexecinclude_DATA = gnomesupport.h
12
13 # These are internal headers: they are used only when compiling and
14 # should not be installed
15 noinst_HEADERS = gnomesupport-fake.h \
16                  findme.h poptint.h
17
18 # Hmm... should we move `error.h' here.
19 include_HEADERS = popt-gnome.h
20
21 popt_sources = findme.c poptconfig.c poptparse.c popt.c popthelp.c
22
23 libgnomesupport_la_SOURCES = gnomesupport.h $(popt_sources) gnome-argp.c
24 libgnomesupport_la_LIBADD  = @LTLIBOBJS@
25 libgnomesupport_la_LDFLAGS = -version-info 0:0:0
26
27 BUILT_SOURCES = gnomesupport.h
28
29 # error.o is not always built.  In the case when it is built, make
30 # sure gnomesupport.h is built first.
31 error.o: gnomesupport.h
32
33 gnomesupport.h: gnomesupport.awk $(top_builddir)/config.h
34         $(AWK) -f $(srcdir)/gnomesupport.awk < $(top_builddir)/config.h > gsh-t
35         mv gsh-t gnomesupport.h
36
37 EXTRA_DIST = gnomesupport.awk README-gnome \
38         canonicalize.c easy-vsnprintf.c error.c error.h \
39         findme.c findme.h getopt.c getopt.h getopt1.c \
40         gnome-argp.c gnome-argp.h gnomesupport-fake.h \
41         memmove.c mkstemp.c popt-gnome.h popt.c poptconfig.c \
42         popthelp.c poptint.h poptparse.c scandir.c strcasecmp.c \
43         strerror.c strndup.c strnlen.c strtod.c strtok_r.c strtol.c \
44         strtoul.c vasprintf.c vsnprintf.c