-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile.am
101 lines (79 loc) · 2.11 KB
/
Makefile.am
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
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
###########################################################################
##
## File: ./Makefile.am
## Versions: $Id: Makefile.am 183 2005-08-19 05:39:40Z rk $
## Created: 2019/01/03
##
###########################################################################
##
## run automake to generate a Makefile.in
## Makefile.am \
## configure.ac > Makefile.in
## aclocal.m4 / ##
AUTOMAKE_OPTIONS=foreign subdir-objects no-installinfo
#ACLOCAL_AMFLAGS=-I config
AM_LDFLAGS=-lm
if CUNIT
MAYBE_TESTS=tests
endif
SUBDIRS = . urand $(MAYBE_TESTS)
#AM_CPPFLAGS = -I$(srcdir)/include -I$(srcdir)
LR_srcs = \
LRnew.c LRset.c LRbin.c LRdf.c LRerror.c LRversion.c \
LRunif.c LRpiece.c LRlspline.c LRuinvcdf.c \
LRnexp.c LRerlang.c \
LRgaus.c LRgsn.c LRcauchy.c \
LRpoisson.c LRgeom.c LRbinom.c
URAND_srcs = \
urand/urand.c
include_HEADERS = \
libran.h
lib_LIBRARIES = libran.a
libran_a_SOURCES = \
$(LR_srcs) \
$(URAND_srcs)
if HAVE_DOXYGEN
@DX_RULES@
man3_MANS: doxygen-doc
docs: $(DX_CLEAN_PDF) man3_MANS
cleandocs:
-@rm -rf $(DX_CLEANFILES)
endif
# docs/urand.man
EXTRA_DIST= \
ChangeLog \
NEWS \
$(man3_MANS) \
include \
urand \
tests \
config \
docs
if CUNIT
test:
cd tests; $(MAKE) test
endif
#dist-hook:
# rm -rf `find $(distdir) -name CVS -print`
# rm -rf `find $(distdir) -name Makefile -print`
# rm -rf `find $(distdir) -name .deps -print`
# rm -rf `find $(distdir) -name "*.x" -print`
# rm -rf `find $(distdir) -name "*.o" -print`
#urand/urand.o : urand/urand.c urand/urand_.c clocker.o
# cd urand; ./all.csh $(CC)
help:
@echo ""
@echo "make - compiles sources to library"
@echo "make all - same as above"
if CUNIT
@echo "make test - make & run the test suite (if have CUnit)"
endif
if HAVE_DOXYGEN
@echo "make docs - make the docs with Doxygen"
@echo "make cleandocs - removes the generated docs"
endif
@echo "make install - copy library & man pages to destination"
@echo "make clean - cleans out most useless files"
@echo "make dist-gzip - makes a .tar.gz tarball"
@echo "make distclean - cleans & removes most made files"
@echo ""