-
Notifications
You must be signed in to change notification settings - Fork 0
/
makefile.mingw
119 lines (99 loc) · 2.8 KB
/
makefile.mingw
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
#
# makefile to generate TEMSIM multislice package with 32 bit minGW under MS winndows.
#
# Put this file in the same directory as the TEMSIM
# C/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 8-feb-2006 ejk
# add autostem with openMP 5-nov-2008 ejk
# convert to fftw 1-jan-2011 ejk
# start conversion to C++ 21-apr-2012 ejk
# add cfpix.cpp 21-nov-2012 ejk
# add incostem.cpp 16-mar-2013 ejk
# update new cmd UI versions 6-oct-2013 ejk
#
# define libraries
LIBS = slicelib.o floatTIFF.o
WLIBS = slicelib.o floatTIFF.o cfpix.o libfftw3f-3.dll # mingw32 and FFTW
WSUBS = slicelib.c floatTIFF.c cfpix.c
# for 32 bit mingw
CC = gcc -O
CPP = g++ -O2
DEL = del # windows/mingw - doesn't work without .exe in file name
# for 64 bit mingw : doesn't work - can't find omp.h
#CC = x86_64-w64-mingw32-gcc -O
#WLIBS = slicelib.o tiffsubs.o libfftw3f-3.dll -lm # mingw64
#DEL = del # windows/mingw - doesn't work without .exe in file name
# for linux
#CC = gcc -O
#DEL = rm # unix
#WLIBS = slicelib.o tiffsubs.o -lfftw3f -lm # linux
#
# entry point to build everything
#
all:
make atompot
make autoslic
make autostem
make image
make incostem
make mulslice
make probe
make stemslic
make sumpix
#
# entry point to remove compiled files
#
remove:
${DEL}$ atompot.exe
${DEL}$ autoslic.exe
${DEL}$ autostem.exe
${DEL}$ image.exe
${DEL}$ incostem.exe
${DEL}$ mulslice.exe
${DEL}$ probe.exe
${DEL}$ stemslic.exe
${DEL}$ sumpix.exe
${DEL}$ cfpix.o
${DEL}$ slicelib.o
${DEL}$ floatTIFF.o
#
# main programs
#
atompot: atompot.cpp ${WLIBS}
${CPP} -o atompot atompot.cpp ${WLIBS}
autoslic: autosliccmd.cpp autoslic.cpp ${WLIBS}
${CPP} -fopenmp -o autoslic autosliccmd.cpp autoslic.cpp ${WLIBS}
autostem: autostemcmd.cpp autostem.cpp ${WLIBS}
${CPP} -fopenmp -o autostem autostemcmd.cpp autostem.cpp ${WLIBS}
display: display.cpp ${LIBS}
${CPP} -o display display.cpp ${LIBS}
image: image.cpp ${WLIBS}
${CPP} -o image image.cpp ${WLIBS}
incostem: incostemcmd.cpp incostem.cpp probe.cpp ${WLIBS}
${CPP} -o incostem incostemcmd.cpp incostem.cpp probe.cpp ${WLIBS}
mulslice: mulslice.cpp ${WLIBS}
${CPP} -o mulslice mulslice.cpp ${WLIBS}
probe: probecmd.cpp probe.cpp ${WLIBS}
${CPP} -o probe probecmd.cpp probe.cpp ${WLIBS}
slicview: slicview.cpp ${LIBS}
${CPP} -o slicview slicview.cpp ${LIBS}
stemslic: stemslic.cpp ${WLIBS}
${CPP} -o stemslic stemslic.cpp ${WLIBS}
sumpix: sumpix.cpp ${WLIBS}
${CPP} -o sumpix sumpix.cpp ${WLIBS}
#
# define subroutine libraries
#
cfpix.o: cfpix.cpp
${CPP} -c cfpix.cpp
slicelib.o: slicelib.cpp
${CPP} -c slicelib.cpp
floatTIFF.o: floatTIFF.cpp
${CPP} -c floatTIFF.cpp