forked from jmrosinski/GPTL
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile.in
43 lines (33 loc) · 1003 Bytes
/
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
CC = @CC@
CFLAGS = @CFLAGS@ @THREADFLAGS@ @FDEFS@ @THREADDEFS@ @DEFS@ @PAPIPREP@ @BITFLAGS@
LIBNAME = libgptl.a
LIBDIR = @prefix@/lib
INCDIR = @prefix@/include
MANDIR = @prefix@/man/man3
OBJS = f_wrappers.o gptl.o util.o threadutil.o get_memusage.o \
print_memusage.o gptl_papi.o
AR = @AR@
@SET_MAKE@
all: $(LIBNAME) ctests/all ftests/all
$(LIBNAME): $(OBJS)
ar @ARFLAGS@ $@ $(OBJS)
rm -f ctests/*.o ftests/*.o
install: $(LIBNAME)
cp $(LIBNAME) $(LIBDIR)
cp gptl.h gptl.inc $(INCDIR)
cp man/man3/*.3 $(MANDIR)
uninstall:
rm -f $(LIBDIR)/$(LIBNAME) $(INCDIR)/gptl.h $(INCDIR)/gptl.inc
ctests/all:
(cd ctests && $(MAKE) all)
ftests/all:
(cd ftests && $(MAKE) all)
clean:
rm -f $(OBJS) $(LIBNAME)
(cd ctests && $(MAKE) clean)
(cd ftests && $(MAKE) clean)
f_wrappers.o: f_wrappers.c gptl.h private.h
gptl.o: gptl.c gptl.h private.h
util.o: util.c gptl.h private.h
threadutil.o: threadutil.c gptl.h private.h
gptl_papi.o: gptl_papi.c gptl.h private.h