summaryrefslogtreecommitdiff
path: root/support/Makefile.am
blob: 627e1dfb5b3a31208d6a0568de28b3aeaaad252d (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
46
47
48
## Process this file with automake to produce Makefile.in.

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

INCLUDES = -D_GNU_SOURCE

lib_LTLIBRARIES = libgnomesupport-1.3.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_1_3_la_SOURCES = gnomesupport.h $(popt_sources) gnome-argp.c
libgnomesupport_1_3_la_LIBADD  = @LTLIBOBJS@
libgnomesupport_1_3_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 gnome-support-2.0.pc.in

pkgconfigdir = $(libdir)/pkgconfig
pkgconfig_DATA = gnome-support-2.0.pc