-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathmakefile
More file actions
120 lines (100 loc) · 2.58 KB
/
makefile
File metadata and controls
120 lines (100 loc) · 2.58 KB
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
#
# makefile to generate TEMSIM multislice package.
#
# Put this file in the same directory as the TEMSIM
# C source files and type "make all" from a command line,
# to compile all of the programs.
#
# type "make all" to compile everthing
# type "make remove" to remove all of the compiled files.
#
# Each file name is assumed to be all lower case.
#
# last modified 02-27-17 cz
#
# define compiler with optimize flag
#CC = gcc -ansi -pedantic -O # original
CC = condor_compile g++
#DEL = del # windows/mingw - doesn't work without .exe in file name
DEL = rm # unix
# define libraries
MYLIBS = slicelib.o floatTIFF.o cfpix.o
LIBS = ${MYLIBS}$
WLIBS = slicelib.o floatTIFF.o cfpix.o -L/home/czhang376/bin/fftw/lib -lfftw3f
#
# entry point to build everything
#
all:
make atompot
make autoslic
# make display
make image
make mulslice
make probe
# make slicview
make stemslic
make sumpix
make autostem
make autocbed
# make ktiff2dm
# make autowave
# make autopacbed
#
# entry point to remove compiled files
#
remove:
${DEL}$ atompot
${DEL}$ autoslic
# ${DEL}$ display
${DEL}$ image
${DEL}$ mulslice
${DEL}$ probe
# ${DEL}$ slicview
${DEL}$ stemslic
${DEL}$ sumpix
${DEL}$ autostem
# ${DEL}$ autowave
${DEL}$ cfpix.o
${DEL}$ slicelib.o
${DEL}$ floatTIFF.o
# ${DEL}$ autopacbed
# ${DEL}$ autostem
# ${DEL}$ writegfx.o
#
# main programs
#
atompot: atompot.cpp ${MYLIBS}
${CC} -o atompot atompot.cpp ${WLIBS}
autoslic: autoslic.cpp autosliccmd.cpp ${MYLIBS}
${CC} -fopenmp -o autoslic autosliccmd.cpp autoslic.cpp ${WLIBS}
autostem: autostem.cpp autostemcmd.cpp ${MYLIBS}
${CC} -o autostem autostemcmd.cpp autostem.cpp ${WLIBS}
autocbed: autocbed.cpp autocbedcmd.cpp ${MYLIBS}
${CC} -fopenmp -o autocbed autocbedcmd.cpp autocbed.cpp ${WLIBS}
display: display.cpp ${MYLIBS}
${CC} -o display display.cpp ${WLIBS}
image: image.cpp ${MYLIBS}
${CC} -o image image.cpp ${WLIBS}
incostem: incostem.cpp incostemcmd.cpp ${MYLIBS}
${CC} -fopenmp -o incostem incostemcmd.cpp incostem.cpp probe.cpp ${WLIBS}
mulslice: mulslice.cpp ${MYLIBS}
${CC} -o mulslice mulslice.cpp ${WLIBS}
probe: probe.cpp probecmd.cpp ${MYLIBS}
${CC} -o probe probecmd.cpp probe.cpp ${WLIBS}
slicview: slicview.cpp ${MYLIBS}
${CC} -o slicview slicview.cpp ${WLIBS}
stemslic: stemslic.cpp ${MYLIBS}
${CC} -o stemslic stemslic.cpp ${WLIBS}$
sumpix: sumpix.cpp ${MYLIBS}
${CC} -o sumpix sumpix.cpp ${WLIBS}
#
# define subroutine library
#
cfpix.o: cfpix.cpp
${CC} -c cfpix.cpp
slicelib.o: slicelib.cpp
${CC} -c slicelib.cpp
floatTIFF.o: floatTIFF.cpp
${CC} -c floatTIFF.cpp
writegfx.o: writegfx.c
${CC} -c writegfx.c