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