Makefile.am 1.22 KB
Newer Older
1
2
bin_PROGRAMS = dynare++

sebastien's avatar
sebastien committed
3
4
noinst_LIBRARIES = libnsolve.a

5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
GENERATED_FILES = dynglob_ll.cc dynglob_tab.cc dynglob_tab.hh

dynare___SOURCES = \
	main.cpp \
	dynare3.cpp \
	dynare_atoms.h \
	dynare_model.h \
	forw_subst_builder.h \
	planner_builder.cpp \
	dynare3.h \
	dynare_exception.h \
	dynare_params.cpp \
	planner_builder.h \
	dynare_atoms.cpp \
	dynare_model.cpp \
	dynare_params.h \
	forw_subst_builder.cpp \
	$(GENERATED_FILES)

dynare___CPPFLAGS = -I../sylv/cc -I../tl/cc -I../kord -I../integ/cc -I.. -DDYNVERSION=\"$(PACKAGE_VERSION)\" -DPOSIX_THREADS
sebastien's avatar
sebastien committed
25
dynare___LDADD = ../kord/libkord.a ../integ/cc/libinteg.a ../tl/cc/libtl.a ../parser/cc/libparser.a ../utils/cc/libutils.a ../sylv/cc/libsylv.a $(noinst_LIBRARIES) $(LAPACK_LIBS) $(BLAS_LIBS) $(LIBS) $(FLIBS) $(PTHREAD_LIBS)
26
27
dynare___CXXFLAGS = $(PTHREAD_CFLAGS)

sebastien's avatar
sebastien committed
28
29
30
31
32
# Put nlsolve in a separate library, with position independent code, for k-order DLL
libnsolve_a_SOURCES = nlsolve.cpp nlsolve.h
libnsolve_a_CPPFLAGS = $(dynare___CPPFLAGS)
libnsolve_a_CXXFLAGS = $(PICFLAG)

33
34
35
36
37
38
39
40
BUILT_SOURCES = $(GENERATED_FILES)
EXTRA_DIST = dynglob.lex dynglob.y

dynglob_tab.cc dynglob_tab.hh: dynglob.y
	$(YACC) -d -odynglob_tab.cc dynglob.y

dynglob_ll.cc: dynglob.lex
	$(LEX) -i -odynglob_ll.cc dynglob.lex