-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathMakefile
More file actions
executable file
·71 lines (55 loc) · 1.85 KB
/
Makefile
File metadata and controls
executable file
·71 lines (55 loc) · 1.85 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
################################################################################
#
# Copyright (C), 2005, Michael Sukop and Danny Thorne
#
# Makefile
#
EXE=lb2d_prime
CFLAGS =
#CFLAGS+=-g
${EXE}: ./src/*.h ./src/*.c
gcc ${CFLAGS} -DOSTYPE=default -o ${EXE} ./src/lb2d_prime.c -lm
ostype: ./src/*.h ./src/*.c
gcc -DOSTYPE=${OSTYPE} -o ${EXE} ./src/lb2d_prime.c -lm
par: ./src/*.h ./src/*.c
mpicc -DPARALLEL -o ${EXE} ./src/lb2d_prime.c -lm
#mpicc -DPARALLEL -DOSTYPE=${OSTYPE} -o ${EXE} ./src/lb2d_prime.c -L/sw/lib -I/sw/include/ -lmpich -lm
swap: ./src/*.h ./src/*.c
gcc -DSWAP_BYTE_ORDER -o ${EXE} ./src/lb2d_prime.c -lm
swap_byte_order: ./src/*.h ./src/*.c
gcc -DSWAP_BYTE_ORDER -o ${EXE} ./src/lb2d_prime.c -lm
par_swap: ./src/*.h ./src/*.c
gcc -DPARALLEL -DSWAP_BYTE_ORDER -DOSTYPE=${OSTYPE} -o ${EXE} ./src/lb2d_prime.c -L/sw/lib -I/sw/include/ -lmpi -llam -lm
warn: ./src/*.h ./src/*.c
gcc -pedantic -Wall -Wunused-variable -o ${EXE} ./src/lb2d_prime.c -lm
nocygwin: ./src/*.h ./src/*.c
gcc -mno-cygwin -o ${EXE} ./src/lb2d_prime.c -lm
slice: new_slice.c lbio.c
gcc -o slice ./src/new_slice.c -lm
spy: ./src/spy.c
gcc -o spy ./src/spy.c -lm
ascii: ./src/ascii_view_density.c
gcc -o ascii_view_density ./src/ascii_view_density.c -lm
sweep:
/bin/rm -f ./out/*.dat
/bin/rm -f ./out/rho*.txt
/bin/rm -f ./out/u*.txt
/bin/rm -f ./out/force*.txt
/bin/rm -f ./out/f*.txt
/bin/rm -f ./out/*.txt
/bin/rm -f ./out/rho*.bmp
/bin/rm -f ./out/ueq*.bmp
/bin/rm -f ./out/u*.bmp
/bin/rm -f ./out/vor*.bmp
/bin/rm -f ./out/force*.bmp
/bin/rm -f ./out/sforce*.bmp
/bin/rm -f *~ .*.sw*
/bin/rm -f ./out/*~ ./out/.*.sw*
/bin/rm -f ./in/*~ ./in/.*.sw*
/bin/rm -f ./src/*~ ./src/.*.sw*
/bin/rm -f ./out/slice*.m
/bin/rm -f ./out/new_slice*.m
clean:
/bin/rm -f ${EXE}.exe slice.exe ${EXE}.exe* *.stackdump dump*.*
xclean:
/bin/rm -f ${EXE} slice core dump*.*