-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathMakefile
81 lines (58 loc) · 1.92 KB
/
Makefile
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
TARGET = ../../darwin/oxs
SRCS = $(shell ls *.cc)
HEADS = $(shell ls *.h)
COMMONSRCS = yy_mel_util.cc
COMMONHEADS = yy_mel_util.h
OBJSDIR = ../../darwin
OBJS = $(addprefix $(OBJSDIR)/,$(subst .cc,.o,$(SRCS)))
LOCALDIR = ../../local
OOMMFDIR = ../../../..
TESTMIF = testdata/Hyz_02_run.mif
TESTMIF_STEP = testdata/Hyz_02_run_step.mif
TESTMIF_STEP_FILELIST = testdata/Hyz_02_run_step_filelist.mif
TESTMIF_STRAIN_STEP = testdata/Hyz_02_run_strain_step.mif
TESTMIF_STRAIN_STEP_FILELIST = testdata/Hyz_02_run_strain_step_filelist.mif
TESTMIF_FIXED = testdata/Hyz_02_run_fixed.mif
TESTMIF_FIXED_STAGEMEL = testdata/Hyz_02_run_fixed_stagemel.mif
TESTMIF_FIXED_STRAIN = testdata/Hyz_02_run_fixed_strain.mif
TESTMIF_TRANSFORM = testdata/Hyz_02_run_transform.mif
TESTMIF_TRANSFORM_STRAIN = testdata/Hyz_02_run_transform_strain.mif
TESTMIF_INTERPOLATE = testdata/Hyz_02_run_interpolate.mif
TESTMIF_INTERPOLATE_STRAIN = testdata/Hyz_02_run_interpolate_strain.mif
.SUFFIXES: .cc .h .o
RM = rm
CP = cp
OOMMF = tclsh $(OOMMFDIR)/oommf.tcl
all: $(OBJS)
$(OOMMF) pimake -cwd $(OOMMFDIR)
$(OBJSDIR)/%.o: %.cc %.h $(COMMONSRCS) $(COMMONHEADS)
$(CP) $*.cc $(LOCALDIR)
$(CP) $*.h $(LOCALDIR)
clean:
$(RM) -f $(OBJS) $(TARGET) *~ \#*\#
test:
$(OOMMF) oxsii $(TESTMIF)
test_step:
$(OOMMF) oxsii $(TESTMIF_STEP)
test_step_filelist:
$(OOMMF) oxsii $(TESTMIF_STEP_FILELIST)
test_strain_step:
$(OOMMF) oxsii $(TESTMIF_STRAIN_STEP)
test_strain_step_filelist:
$(OOMMF) oxsii $(TESTMIF_STRAIN_STEP_FILELIST)
test_fixed:
$(OOMMF) oxsii $(TESTMIF_FIXED)
test_fixed_stagemel:
$(OOMMF) oxsii $(TESTMIF_FIXED_STAGEMEL)
test_fixed_strain:
$(OOMMF) oxsii $(TESTMIF_FIXED_STRAIN)
test_transform:
$(OOMMF) oxsii $(TESTMIF_TRANSFORM)
test_transform_strain:
$(OOMMF) oxsii $(TESTMIF_TRANSFORM_STRAIN)
test_interpolate:
$(OOMMF) oxsii $(TESTMIF_INTERPOLATE)
test_interpolate_strain:
$(OOMMF) oxsii $(TESTMIF_INTERPOLATE_STRAIN)
# Dependency rule
#-include Makefile.depend