File: Makefile.am

package info (click to toggle)
meep 0.10-2.1
  • links: PTS
  • area: main
  • in suites: lenny
  • size: 4,380 kB
  • ctags: 5,469
  • sloc: cpp: 50,653; sh: 8,380; haskell: 744; makefile: 367; perl: 10
file content (124 lines) | stat: -rw-r--r-- 3,350 bytes parent folder | download
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
noinst_PROGRAMS = example

TEX = complicated.tex energy_cons.tex energy_cons_1d.tex epsilon_polariton_1d.tex \
	gpl.tex lossgain_epsilon.tex meep.tex omniguide.tex polaritonbands.tex \
	simple.tex simplebands.tex nonlinear.tex

EPSGEN = polaritonbands-out/bands.eps epsilon_polariton_1d-out/eps.eps \
	omniguide-out/bands.eps lossgain_epsilon-out/eps.eps \
	energy_cons_1d-out/energy.eps energy_cons-out/energy.eps \
	energy_cons-out/energy.eps simple-out/ez-000200-00.eps \
	nonlinear-out/field.eps nonlinear-out/ez-000400-00.eps

EPS = $(EPSGEN) Yee_bulk.eps

PDF = $(EPS:.eps=.pdf)

FREQS = complicated-out/freqs

if WITH_DOC
DOC = html meep.pdf
else
DOC = 
endif

EXTRA_DIST = $(DOC) $(TEX) Yee_bulk.eps preproc.pl

AM_CPPFLAGS = -I$(top_srcdir)/src

LIBMEEP = $(top_builddir)/src/libmeep.la

DAC = $(SRC:.cpp=.dac)
$(DAC) : $(LIBMEEP)

example_SOURCES = example.cpp
example_LDADD = $(LIBMEEP)

###########################################################################

.SUFFIXES = .dac .tex .dvi .ps .pdf .eps

.o.dac: $(LIBMEEP)
	$(CXXLINK) $< $(LIBMEEP) $(LIBS)

.tex.cpp:
	perl $(srcdir)/preproc.pl $< > $@

.eps.pdf:
	epstopdf --outfile=$@ $<

html: $(TEX) $(EPS) $(FREQS)
	rm -rf $@
	mkdir $@
	@LATEX2HTML@ -split +1 -local_icons -dir $@ meep

meep.pdf: $(TEX) $(PDF) $(FREQS)
	pdflatex meep
	pdflatex meep

meep.ps.gz: meep.ps
	gzip --force --best meep.ps

meep.ps: meep.dvi
	dvips -o meep.ps meep.dvi

meep.dvi: $(TEX) $(EPS) $(FREQS)
	latex meep.tex
	latex meep.tex

###########################################################################

simple-out/ez-000200-00.eps: simple.dac
	rm -rf simple-out && $(RUNCODE) ./simple.dac
	h5topng -S2 -Zc bluered simple-out/ez-000200.00.h5 
	convert simple-out/ez-000200.00.png $@

complicated-out/freqs: complicated.dac
	rm -rf complicated-out/ && $(RUNCODE) ./complicated.dac

energy_cons_1d-out/energy.eps : energy_cons_1d.dac
	rm -rf energy_cons_1d-out/ && $(RUNCODE) ./energy_cons_1d.dac
	mv $@ $@-tmp
	sed -e 's/fill//' $@-tmp > $@
energy_cons-out/energy.eps : energy_cons.dac
	rm -rf energy_cons-out/ && $(RUNCODE) ./energy_cons.dac
	mv $@ $@-tmp
	sed -e 's/fill//' $@-tmp > $@
polaritonbands-out/bands.eps : polaritonbands.dac
	rm -rf polaritonbands-out/ && $(RUNCODE) ./polaritonbands.dac
	mv $@ $@-tmp
	sed -e 's/fill//' $@-tmp > $@

epsilon_polariton_1d-out/eps.eps : epsilon_polariton_1d.dac
	rm -rf epsilon_polariton_1d-out/
	$(RUNCODE) ./epsilon_polariton_1d.dac
	mv $@ $@-tmp
	sed -e 's/fill//' $@-tmp > $@

omniguide-out/bands.eps : omniguide.dac
	rm -rf omniguide-out/
	$(RUNCODE) ./omniguide.dac
	mv $@ $@-tmp
	sed -e 's/fill//' $@-tmp > $@

lossgain_epsilon-out/eps.eps : lossgain_epsilon.dac
	rm -rf lossgain_epsilon-out/
	$(RUNCODE) ./lossgain_epsilon.dac
	mv $@ $@-tmp
	sed -e 's/fill//' $@-tmp > $@

check-local: simplebands.dac complicated.dac polaritonbands.dac \
	epsilon_polariton_1d.dac omniguide.dac lossgain_epsilon.dac \
	energy_cons_1d.dac energy_cons.dac simple.dac

nonlinear-out/field.eps nonlinear-out/ez-000400-00.eps: nonlinear.dac
	rm -rf nonlinear-out/
	$(RUNCODE) ./nonlinear.dac
	h5topng -S2 -Zc bluered nonlinear-out/ez-000400.00.h5
	convert nonlinear-out/ez-000400.00.png nonlinear-out/ez-000400-00.eps

clean-local:
	rm -rf *.o *.hi *.dac *-out *-out-* *.ps *.dvi *.doc *.log *.hi *.dac $(PDF) $(EPSGEN)

maintainer-clean-local:
	rm -rf html *.pdf