summaryrefslogtreecommitdiff
blob: 5e174999a5f3dd92142d5223d3369acf988dd3dc (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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
--- configure.ac 	1970-01-01 01:00:00.000000000 +0100
+++ configure.ac	2008-01-30 12:45:53.174426797 +0000
@@ -0,0 +1,10 @@
+# -*- Autoconf -*-
+AC_PREREQ(2.59)
+AC_INIT(ldl, 2.0.3, davis@cise.ufl.edu)
+AM_INIT_AUTOMAKE([foreign])
+AC_PROG_INSTALL
+AC_PROG_LIBTOOL
+AC_CHECK_LIB(m, sqrt)
+AC_CHECK_HEADERS(UFconfig.h)
+AC_CONFIG_FILES([Makefile Source/Makefile Demo/Makefile])
+AC_OUTPUT
--- Makefile.am 	1970-01-01 01:00:00.000000000 +0100
+++ Makefile.am	2008-01-30 15:49:41.835515468 +0000
@@ -0,0 +1,4 @@
+SUBDIRS = Source Demo
+EXTRA_DIST = README.txt
+include_HEADERS = Include/ldl.h
+
--- Source/Makefile.am 	1970-01-01 01:00:00.000000000 +0100
+++ Source/Makefile.am	2008-01-30 12:49:25.858546974 +0000
@@ -0,0 +1,11 @@
+AM_CPPFLAGS = -I$(top_srcdir)/Include
+
+LDLSRC=ldl.c
+lib_LTLIBRARIES = libldl.la
+noinst_LTLIBRARIES = libldli.la libldll.la
+libldli_la_SOURCES = $(LDLSRC)
+libldli_la_CPPFLAGS = $(AM_CPPFLAGS)
+libldll_la_SOURCES = $(LDLSRC)
+libldll_la_CPPFLAGS = $(AM_CPPFLAGS) -DLDL_LONG
+libldl_la_SOURCES = 
+libldl_la_LIBADD = libldll.la libldli.la
--- Demo/Makefile.am 	1970-01-01 01:00:00.000000000 +0100
+++ Demo/Makefile.am	2008-01-30 15:43:45.603214946 +0000
@@ -0,0 +1,27 @@
+LDADD = $(top_builddir)/Source/libldl.la -lm
+AM_CPPFLAGS =  -I$(top_srcdir)/Include
+check_PROGRAMS = ldlsimple ldllsimple ldlmain ldllmain ldlamd ldllamd
+
+ldlmain_SOURCES = ldlmain.c
+ldllmain_SOURCES = ldlmain.c
+ldllmain_CPPFLAGS = $(AM_CPPFLAGS) -DLDL_LONG
+
+ldlsimple_SOURCES = ldlsimple.c
+ldllsimple_SOURCES = ldlsimple.c
+ldllsimple_CPPFLAGS = $(AM_CPPFLAGS) -DLDL_LONG
+
+ldlamd_SOURCES = ldlamd.c
+ldllamd_CPPFLAGS =  $(AM_CPPFLAGS) -DUSE_AMD
+ldllamd_SOURCES = ldlamd.c
+ldllamd_CPPFLAGS =  $(AM_CPPFLAGS) -DUSE_AMD -DLDL_LONG
+ldllamd_LDADD = $(LDADD) -lamd
+
+check-local: $(check_PROGRAMS)
+	@for i in $(check_PROGRAMS); do \
+		echo "Testing $$i"; \
+		./$$i > my_$$i.out; \
+		if ! diff $$i.out my_$$i.out; then \
+			echo "Testing $$i failed"; \
+			exit 1; \
+		fi \
+	done;