-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile.in
50 lines (38 loc) · 1.22 KB
/
Makefile.in
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
CC = @CC@
AR = @AR@
RANLIB = @RANLIB@
LIBNAME = @LIBNAME@
srcdir = @srcdir@
CC_SHL = @CC_SHL@
SHLIBNAME = @SHLIBNAME@
INCLUDES = -I@MPI_INCLUDE_DIR@ -I${srcdir}/../include -I../include -I../../include -I${srcdir}/../../../../include -I../../../../include
CFLAGS = @CPPFLAGS@ @CFLAGS@ $(INCLUDES)
top_builddir = @master_topbuild_dir@
LIBTOOL = @LIBTOOL@
C_COMPILE_SHL = $(CC_SHL) @CFLAGS@ $(INCLUDES)
@VPATH@
AD_LUSTRE_OBJECTS = ad_lustre.o ad_lustre_open.o \
ad_lustre_rwcontig.o ad_lustre_wrcoll.o ad_lustre_wrstr.o \
ad_lustre_hints.o ad_lustre_aggregate.o ad_lustre_iwrite.o \
ad_lustre_iread.o
default: $(LIBNAME)
@if [ "@ENABLE_SHLIB@" != "none" ] ; then \
$(MAKE) $(SHLIBNAME).la ;\
fi
.SUFFIXES: $(SUFFIXES) .p .lo
.c.o:
$(CC) $(CFLAGS) -c $<
.c.lo:
$(C_COMPILE_SHL) $(CFLAGS) -c $< -o _s$*.o
@mv -f _s$*.o $*.lo
$(LIBNAME): $(AD_LUSTRE_OBJECTS)
$(AR) $(LIBNAME) $(AD_LUSTRE_OBJECTS)
$(RANLIB) $(LIBNAME)
AD_LUSTRE_LOOBJECTS=$(AD_LUSTRE_OBJECTS:.o=.lo)
$(SHLIBNAME).la: $(AD_LUSTRE_LOOBJECTS)
$(AR) $(SHLIBNAME).la $(AD_LUSTRE_LOOBJECTS)
coverage:
-@for file in ${AD_LUSTRE_OBJECTS:.o=.c} ; do \
gcov -b -f $$file ; done
clean:
@rm -f *.o *.lo