summaryrefslogtreecommitdiff
path: root/support/Makefile.am
blob: 6b4e715117b39beb68b8906fec4466b68ec0a648 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
## Process this file with automake to produce Makefile.in.

supportexecincludedir = $(includedir)/gnome/$(GNOME_INTERFACE_VERSION)

INCLUDES = -D_GNU_SOURCE

noinst_LTLIBRARIES = libgnomesupport.la

# it is in _DATA since we don't want `gnomesupport.h' to be part of
# the distributed `.tar.gz' file
supportexecinclude_DATA = gnomesupport.h

# These are internal headers: they are used only when compiling and
# should not be installed
#noinst_HEADERS = gnomesupport-fake.h \
#		 findme.h poptint.h system.h

# Hmm... should we move `error.h' here.
#include_HEADERS = popt-gnome.h

#popt_sources = findme.c poptconfig.c poptparse.c popt.c popthelp.c
popt_sources=

libgnomesupport_la_SOURCES = gnomesupport.h $(popt_sources) gnome-argp.c
libgnomesupport_la_LIBADD  = @LTLIBOBJS@
libgnomesupport_la_LDFLAGS = -version-info 0:0:0

BUILT_SOURCES = gnomesupport.h

# error.o is not always built.  In the case when it is built, make
# sure gnomesupport.h is built first.
error.o: gnomesupport.h

gnomesupport.h: gnomesupport.awk $(top_builddir)/config.h
	$(AWK) -f $(srcdir)/gnomesupport.awk < $(top_builddir)/config.h > gsh-t
	mv gsh-t gnomesupport.h

EXTRA_DIST = gnomesupport.awk README-gnome \
	canonicalize.c easy-vsnprintf.c error.c error.h \
	findme.c findme.h getopt.c getopt.h getopt1.c \
	gnome-argp.c gnome-argp.h gnomesupport-fake.h \
	memmove.c mkstemp.c popt-gnome.h popt.c poptconfig.c \
	popthelp.c poptint.h poptparse.c scandir.c strcasecmp.c \
	strerror.c strndup.c strnlen.c strtod.c strtok_r.c strtol.c \
	strtoul.c vasprintf.c vsnprintf.c