-
Notifications
You must be signed in to change notification settings - Fork 1
/
Makefile
65 lines (57 loc) · 2.29 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
#/*****************************************************************************\
#* *
#* Copyright (c) 2003, The Regents of the University of California *
#* See the file COPYRIGHT for a complete copyright notice and license. *
#* *
#*******************************************************************************
#*
#* CVS info:
#* $RCSfile: Makefile,v $
#* $Revision: 1.2 $
#* $Date: 2013/04/16 16:43:51 $
#* $Author: brettkettering $
#*
#* Purpose:
#* Make mdtest executable.
#*
#* make [mdtest] -- mdtest
#* make clean -- remove executable
#*
#\*****************************************************************************/
CC.AIX = mpcc_r -bmaxdata:0x80000000
#CC.Linux = mpicc -Wall
#
# For Cray systems
CC.Linux = ${MPI_CC}
CC.Darwin = mpicc -Wall
# Requires GNU Make
OS=$(shell uname)
# Flags for compiling on 64-bit machines
LARGE_FILE = -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE=1 -D__USE_LARGEFILE64=1
#CC = $(CC.$(OS))
CC = mpicc
#
# One needs someting like the following code snippet in one's cshrc file is one
# plans to use PLFS with mdtest.
#
#
# If we're not going to use PLFS with mdtest, we don't need to define this variable.
#
# setenv MDTEST_FLAGS ""
#
# If we're going to use PLFS with mdtest, we need to define this variable based on
# whether we are loading a PLFS module or using the system default PLFS installation.
#
# if ( $?PLFS_CFLAGS ) then
# setenv MDTEST_FLAGS "-D_HAS_PLFS ${PLFS_CFLAGS} ${PLFS_LDFLAGS}"
# else
# setenv MDTEST_FLAGS "-D_HAS_PLFS -I${MPICH_DIR}/include -lplfs"
# endif
all: mdtest
mdtest: mdtest.c
# $(CC) -D$(OS) -D_HAS_S3 $(LARGE_FILE) $(MDTEST_FLAGS) -g -o mdtest mdtest.c -lm -L/users/atorrez/Testing/lanl_aws4c -laws4c -lcurl
# $(CC) -D$(OS) $(LARGE_FILE) -g -o mdtest mdtest.c -lm -I/users/atorrez/Testing/lanl_aws4c -L/users/atorrez/Testing/lanl_aws4c -laws4c -lcurl
# $(CC) -D$(OS) -D_HAS_S3 $(LARGE_FILE) -g -o mdtest mdtest.c -lm -I/users/atorrez/Testing/new_lanl_aws4c/aws4c -L/users/atorrez/Testing/new_lanl_aws4c/aws4c -laws4c_extra -laws4c -lcurl -lxml2
$(CC) -D$(OS) $(LARGE_FILE) -g -o mdtest mdtest.c -lm $(MDTEST_FLAGS)
clean:
rm -f mdtest mdtest.o