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
|
.POSIX:
CC=g++
ifeq (0,1)
CFLAGS+=-static
OCTAVE_LIBRARIES=-loctave -lcruft -lm -lncurses -ldl -lstdc++ -lc -lkpathsea -lreadline -lg2c
%.exe: %.cc
$(CC) $< $(CFLAGS) $(OCTAVE_LIBRARIES) -o $@
%.oct: %.cc
mkoctfile $<
endif
all: $(sys)_$(rep).cc
parser.exe: parse_m2cc.cc
g++ $< $(CFLAGS) -o ${MTTPATH}/trans/parser.exe -I${MTTPATH}/../cc/include
ifeq ($(rep),ode2odes)
$(sys)_ode2odes.cc: ode2odes.cc
cat ode2odes.cc | sed 's/\$$/$(sys)/' > $(sys)_ode2odes.cc
else
$(sys)_$(rep).cc: $(sys)_def.h $(sys)_sympar.h $(sys)_def.r $(sys)_$(rep).m
mtt_m2cc.sh ${sys} ${rep} parser
endif
$(sys)_def.h: $(sys)_def.m $(sys)_sympar.txt
def_m2h.sh $(sys)
$(sys)_sympar.h: $(sys)_sympar.txt
sympar_txt2h.sh $(sys)
$(sys)_def.m:
mtt $(sys) def m
# getsize needs def.r
$(sys)_def.r:
mtt $(sys) def r
$(sys)_sympar.txt:
mtt $(sys) sympar txt
# struc2gnuplot_txt.exe is used by gnuplot_rep.make to create gnuplot input file.
struc2gnuplot_txt.exe: $(MTT_CC)/struc2gnuplot_txt.cc
$(CC) -O3 -Wall -ansi -pedantic -DMAIN $(MTT_CC)/struc2gnuplot_txt.cc -o $(MTTPATH)/trans/struc2gnuplot_txt.exe
|
<
<
|
<
<
<
|
<
<
<
<
<
|
|
|
<
|
<
|
<
<
<
<
<
<
<
|
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
|
1
2
3
4
5
6
7
8
9
10
11
12
|
CXX ?= g++
build: parse_m2cc.exe
.PHONY: FORCE
clean: FORCE
@-rm -f parse_m2cc.exe
parse_m2cc.exe: parse_m2cc.cc
@$(CXX) $< $(CFLAGS) -o $@ -I./include
@strip $@
|