forked from golems/reflex
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile.am
151 lines (101 loc) · 3.63 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
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
INCLUDES = -I$(top_srcdir)/include
SUBDIRS = . doc
EXTRA_DIST = cartpend.gnuplot
bin_SCRIPTS = scripts/rfx-urdfc
include_HEADERS = include/reflex.h include/reflex.hpp
pkginclude_HEADERS = \
include/reflex/kinematics.h \
include/reflex/trajq.h \
include/reflex/trajx.h \
include/reflex/tf.h \
include/reflex/lqg.h \
include/reflex/body.h
nodist_include_HEADERS = reflex.mod
# pkginclude_HEADERS =
#TESTS =
lib_LTLIBRARIES = libreflex.la
libreflex_la_SOURCES = \
src/control.c \
src/lqg/lqg.c \
src/tf/rfx_tf.c \
src/tf/dud.c \
src/plot.c \
src/trajq.c \
src/kin.c \
src/trajx.cpp \
src/traj.c \
src/body/body.cpp
reflex_mod.f90: src/reflex_mod.F90 src/kinematics.f90 src/tf/lqg_tf_f.f90 src/tf/rfx_tff.f90
$(CPP) $(INCLUDES) -x c $< -o $@
noinst_LTLIBRARIES = libreflex_mod.la
libreflex_mod_la_SOURCES = reflex_mod.f90
reflex.mod: $(libreflex_mod_la_OBJECTS)
libreflex_la_LIBADD = libreflex_mod.la
noinst_PROGRAMS = cartpend
cartpend_SOURCES = src/cartpend.c
cartpend_LDADD = libreflex.la -lamino -llapack -lblas
noinst_PROGRAMS += lqgtest
lqgtest_SOURCES = src/lqgtest.c
lqgtest_LDADD = libreflex.la -lamino -llapack -lblas
noinst_PROGRAMS += plot_test
plot_test_SOURCES = src/plot_test.c
plot_test_LDADD = libreflex.la -lamino -llapack -lblas
noinst_PROGRAMS += test-tf-filter
test_tf_filter_SOURCES = src/test/test-tf-filter.c
test_tf_filter_LDADD = libreflex.la -lamino -llapack -lblas -lm
bin_PROGRAMS = rfx-trajgen
rfx_trajgen_SOURCES = src/demo/rfx-trajgen.c
rfx_trajgen_LDADD = libreflex.la -lamino -lblas -llapack
bin_PROGRAMS += rfx-qblend
rfx_qblend_SOURCES = src/demo/rfx-qblend.c
rfx_qblend_LDADD = libreflex.la -lamino -lblas -llapack
bin_PROGRAMS += rfx-camcal
rfx_camcal_SOURCES = src/demo/rfx-camcal.c
rfx_camcal_LDADD = libreflex.la -lamino -lblas -llapack
bin_PROGRAMS += rfx-camcal-test
rfx_camcal_test_SOURCES = src/demo/rfx-camcal-test.c
rfx_camcal_test_LDADD = libreflex.la -lamino -lblas -llapack
clean-local:
-rm -rf debian/tmp debian/files debian/libreflex? debian/libreflex-dev debian/*.log debian/*.substvars texput.log debian/*.debhelper *.jar org
distclean-local:
-rm -rf doxygen-doc
cp.eps: cartpend cartpend.gnuplot
./cartpend
gnuplot ./cartpend.gnuplot
tf-filter.eps: test-tf-filter src/test/plot-tf-filter
./test-tf-filter
gnuplot ./src/test/plot-tf-filter
## JAVA ##
JSOURCES = \
$(top_srcdir)/java/Lib.java \
$(top_srcdir)/java/Test.java
EXTRA_DIST += $(JSOURCES) doc/javadoc
if HAVE_JAVAC
BUILT_SOURCES = org_golems_reflex_Lib.h
JCLASSES = \
org/golems/reflex/Lib.class \
org/golems/reflex/Test.class
org/golems/reflex/Lib.class: $(JSOURCES)
$(JAVAC) -classpath $(CLASSPATH) -d $(top_builddir) $(JSOURCES)
org_golems_reflex_Lib.h: $(top_builddir)/org/golems/reflex/Lib.class
$(JAVAH) org.golems.reflex.Lib
touch $@
$(top_builddir)/org/golems/reflex/Lib.class: org.golems.reflex.jar
org.golems.reflex.jar: $(JSOURCES)
$(JAVAC) -classpath $(CLASSPATH) -d $(top_builddir) $(JSOURCES)
$(JAR) cf $@ $(JCLASSES)
# install the jar file somewhere reasonable
javadir = $(datadir)/java
java_DATA = org.golems.reflex.jar
lib_LTLIBRARIES += libreflexj.la
libreflexj_la_CPPFLAGS = $(CPPFLAGS) $(JNICPPFLAGS)
libreflexj_la_SOURCES = java/reflexj.c
libreflexj_la_LIBADD = libreflex.la
# Javadocs
doc/.javadoc.stamp: $(JSOURCES)
javadoc -d doc/javadoc $(JSOURCES)
touch $@
doc/javadoc: doc/.javadoc.stamp
javadoc: doc/.javadoc.stamp
endif
include aminclude.am