1## Process this file with automake to produce Makefile.in
2
3AUTOMAKE_OPTIONS= foreign
4
5SUBDIRS = include libsee libltdl shell doc
6if SSP
7SUBDIRS += ssp
8endif
9
10EXTRA_DIST = AUTHORS COPYING INSTALL NEWS README TODO ChangeLog
11
12DISTCLEANFILES= ChangeLog
13ChangeLog:
14	svn2cl --strip-prefix=see/trunk \
15	    --include-rev --stdout $(srcdir) --revision=796:HEAD > $@ || \
16	echo "No ChangeLog available" > $@
17
18## -- test that installation allows a simple program to work
19EXTRA_DIST += test1.c
20installcheck:
21	$(LIBTOOL) --mode=compile $(CC) -c \
22	  `$(DESTDIR)$(bindir)/libsee-config --cppflags` \
23	  $(srcdir)/test1.c -o test1.o
24	$(LIBTOOL) --mode=link $(CC) \
25	  `$(DESTDIR)$(bindir)/libsee-config --libs` \
26	  test1.o -o test1
27	$(LIBTOOL) --mode=execute ./test1
28	-rm -f test1.o test1
29