1 ## Process this file with automake to produce Makefile.in.
3 supportexecincludedir = $(pkglibdir)/include
5 INCLUDES = -D_GNU_SOURCE
7 lib_LTLIBRARIES = libgnomesupport.la
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
13 # These are internal headers: they are used only when compiling and
14 # should not be installed
15 noinst_HEADERS = gnomesupport-fake.h \
18 # Hmm... should we move `error.h' here.
19 include_HEADERS = popt-gnome.h
21 popt_sources = findme.c poptconfig.c poptparse.c popt.c popthelp.c
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
27 BUILT_SOURCES = gnomesupport.h
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
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
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