aboutsummaryrefslogtreecommitdiff
path: root/chaos/src/Makefile.am
blob: 2b879272a5c985d67dd8ca99bc28adc027d2df80 (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
65
66
NAME = chaos

BUILT_SOURCES = main.cpp ode_base.cpp chaos_dsp.cpp \
	bernoulli_dsp.cpp bernoulli_msg.cpp \
	bungalow_tent_dsp.cpp bungalow_tent_msg.cpp \
	circle_map_dsp.cpp circle_map_msg.cpp \
	coupled_logistic_dsp.cpp coupled_logistic_msg.cpp \
	chua_dsp.cpp chua_msg.cpp \
	driven_anharmonic_dsp.cpp driven_anharmonic_msg.cpp \
	driven_van_der_pol_dsp.cpp driven_van_der_pol_msg.cpp \
	duffing_map_dsp.cpp duffing_map_msg.cpp \
	gauss_map_dsp.cpp gauss_map_msg.cpp \
	henon_map_dsp.cpp henon_map_msg.cpp \
	ikeda_laser_map_dsp.cpp ikeda_laser_map_msg.cpp \
	latoocarfian_dsp.cpp latoocarfian_msg.cpp \
	latoomutalpha_dsp.cpp latoomutalpha_msg.cpp \
	latoomutbeta_dsp.cpp latoomutbeta_msg.cpp \
	latoomutgamma_dsp.cpp latoomutgamma_msg.cpp \
	logistic_dsp.cpp logistic_msg.cpp \
	lorenz_dsp.cpp lorenz_msg.cpp \
	lozi_map_dsp.cpp lozi_map_msg.cpp \
	roessler_dsp.cpp roessler_msg.cpp \
	sine_map_dsp.cpp sine_map_msg.cpp \
	standard_map_dsp.cpp standard_map_msg.cpp \
	tent_map_dsp.cpp tent_map_msg.cpp

CXXFLAGS  = @CXXFLAGS@ \
	@OPT_FLAGS@ \
	@INCLUDEDIR@ \
	$(DEFS)

LDFLAGS = @LDFLAGS@ \
	$(patsubst %,-framework %,$(FRAMEWORKS))

LIBS = @LIBS@

FRAMEWORKS = @FRAMEWORKS@

TARGET =$(NAME).@EXTENSION@

OBJECTS = $(patsubst %.cpp,%.@OBJEXT@,$(BUILT_SOURCES))

SYSDIR = @SYSDIR@


# ----------------------------- targets --------------------------------


all-local: $(OBJECTS)
	$(CXX) $(LDFLAGS) -shared $^ $(LIBS) -o ../$(TARGET)
	strip --strip-unneeded ../$(TARGET)

%.@OBJEXT@ : %.cpp 
	$(CXX) -c $(CXXFLAGS) $< -o $@

dist-hook:
	rm -f ./*~
	rm -f ./*.@OBJEXT@
	rm ./Makefile

clean-local:
	rm -f ../$(TARGET)
	rm -f ./*.@OBJEXT@

install-exec-local:
	install ../$(TARGET) $(SYSDIR)extra