blob: a45e4ff1c8881da5c3209eec806b5ffead88bb36 (
plain)
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
|
GLUTINC = -I/usr/include -I.
GLUTLIB = -L. -lglut -lGLU -lGL -lX11 -lXmu
TARGETS = ivyprobe ivythroughput ivyperf #ivyprobe_efence
OMP_TARGET= ivyprobe_omp ivythroughput_omp
OMPLIB = -lgomp -lpthread
OMPCC = gcc-mp-4.3
OMPCPP = g++-mp-4.3
CC = gcc -g -Wall
CPP='g++'
#CC = $(OMPCC)
#CPP= $(OMPCPP)
PCRELIB = `pcre-config --libs`
PCREINCL = `pcre-config --cflags`
EXTRALIB= -L../src
EXTRAINC=-I../src
.SUFFIXES: .c .o
.c.o:
$(CC) $(CFLAGS) $(EXTRAINC) -c $*.c
.cpp.o:
$(CPP) $(CFLAGS) $(EXTRAINC) $(PCREINCL) -c $*.cpp
all: $(TARGETS)
omp: $(OMP_TARGET)
ivyprobe: ivyprobe.o ../src/libivy.a
$(CC) $(CFLAGS) $(EXTRAINC) -o $@ ivyprobe.o -L../src -livy $(PCRELIB) $(EXTRALIB)
ivythroughput: ivythroughput.o ../src/libivy.a
$(CPP) $(CFLAGS) $(EXTRAINC) -o $@ ivythroughput.o -L../src -livy -lpcrecpp $(PCRELIB) $(EXTRALIB)
ivyprobe_efence: ivyprobe.o ../src/libivy.a
$(CPP) $(CFLAGS) $(EXTRAINC) -o $@ ivyprobe.o -L../src -livy -lpcrecpp $(PCRELIB) $(EXTRALIB) -lefence
ivyprobe_omp: ivyprobe.o ../src/libivy_omp.a
$(OMPCC) $(CFLAGS) $(EXTRAINC) $(PCREINCL) -o $@ ivyprobe.o -L../src -livy_omp $(PCRELIB) $(EXTRALIB) $(OMPLIB)
ivythroughput_omp: ivythroughput.o ../src/libivy_omp.a
$(OMPCPP) $(CFLAGS) $(EXTRAINC) $(PCREINCL) -o $@ ivythroughput.o -L../src -livy_omp -lpcrecpp $(PCRELIB) $(EXTRALIB) $(OMPLIB)
ivyprobe.o : ivyprobe.c
$(CC) $(CFLAGS) $(EXTRAINC) $(REGEXP) -c ivyprobe.c -o $@
ivyperf: ivyperf.o ../src/libivy.a
$(CC) $(CFLAGS) $(EXTRAINC) -o $@ ivyperf.o -L../src -livy $(PCRELIB) $(EXTRALIB)
installbins: $(TARGETS)
test -d $(DESTDIR)$(PREFIX)/bin || mkdirhier $(DESTDIR)$(PREFIX)/bin
install -m755 ivyprobe $(DESTDIR)$(PREFIX)/bin
installbins_omp: $(OMP_TARGET)
test -d $(DESTDIR)$(PREFIX)/bin || mkdirhier $(DESTDIR)$(PREFIX)/bin
install -m755 ivyprobe_omp $(DESTDIR)$(PREFIX)/bin
install: installbins
install_omp: installbins_omp
clean:
rm -fR $(TARGETS) *~ *.o
|