2009-09-11 19:34:15 +02:00
CWEBSRC = \
faa_di_bruno.cweb \
korder_stoch.cweb \
journal.cweb \
decision_rule.cweb \
dynamic_model.cweb \
random.cweb \
first_order.cweb \
normal_conjugate.cweb \
approximation.cweb \
global_check.cweb \
korder.cweb \
kord_exception.hweb \
random.hweb \
journal.hweb \
approximation.hweb \
korder_stoch.hweb \
dynamic_model.hweb \
decision_rule.hweb \
korder.hweb \
normal_conjugate.hweb \
first_order.hweb \
mersenne_twister.hweb \
global_check.hweb \
faa_di_bruno.hweb
GENERATED_FILES = \
faa_di_bruno.cpp \
korder_stoch.cpp \
journal.cpp \
decision_rule.cpp \
dynamic_model.cpp \
random.cpp \
first_order.cpp \
normal_conjugate.cpp \
approximation.cpp \
global_check.cpp \
korder.cpp \
kord_exception.h \
random.h \
journal.h \
approximation.h \
korder_stoch.h \
dynamic_model.h \
decision_rule.h \
korder.h \
normal_conjugate.h \
first_order.h \
mersenne_twister.h \
global_check.h \
faa_di_bruno.h
noinst_LIBRARIES = libkord.a
libkord_a_SOURCES = $( CWEBSRC) $( GENERATED_FILES)
libkord_a_CPPFLAGS = -I../sylv/cc -I../tl/cc -I../integ/cc -DPOSIX_THREADS
libkord_a_CXXFLAGS = $( PTHREAD_CFLAGS)
BUILT_SOURCES = $( GENERATED_FILES)
EXTRA_DIST = main.web
check_PROGRAMS = tests
tests_SOURCES = tests.cpp
tests_CPPFLAGS = -I../sylv/cc -I../tl/cc -I../integ/cc
tests_CXXFLAGS = $( PTHREAD_CFLAGS)
tests_LDADD = libkord.a ../tl/cc/libtl.a ../sylv/cc/libsylv.a $( LAPACK_LIBS) $( BLAS_LIBS) $( LIBS) $( FLIBS) $( PTHREAD_LIBS)
check-local :
./tests
dummy.ch :
touch dummy.ch
2009-09-24 12:15:59 +02:00
# Don't depend on dummy.ch in the following rules, otherwise make will want to rebuild from CWEB even in a tarball, since dummy.ch has a recent timestamp
%.cpp : %.cweb
2009-09-11 19:34:15 +02:00
$( CTANGLE) -bhp $< dummy.ch $@
2009-09-24 12:15:59 +02:00
%.h : %.hweb
2009-09-11 19:34:15 +02:00
$( CTANGLE) -bhp $< dummy.ch $@
i f H A V E _ C W E A V E
i f H A V E _ P D F T E X
2009-09-18 11:28:30 +02:00
i f H A V E _ E P L A I N
2009-09-24 18:40:14 +02:00
pdf-local : kord .pdf
kord.pdf : main .web $( CWEBSRC )
2009-09-11 19:34:15 +02:00
$( CWEAVE) -bhp main.web
$( PDFTEX) main
mv main.pdf kord.pdf
e n d i f
e n d i f
2009-09-18 11:28:30 +02:00
e n d i f
2009-09-11 19:34:15 +02:00
CLEANFILES = dummy.ch kord.pdf main.idx main.log main.scn main.tex main.toc out.txt