Statistics
| Branch: | Revision:

root / synthbench / bonnie++ / Makefile.jube @ 0:839f52ef7657

History | View | Annotate | Download (1.7 kB)

1
EXES=mpibonnie++ bonnie++ zcav
2

    
3
all: $(EXES)
4

    
5
SCRIPTS=bon_csv2html bon_csv2txt
6

    
7
prefix=
8
eprefix=${prefix}
9
#MORE_WARNINGS=-Weffc++ -Wcast-align
10
#WFLAGS=-Wall -W -Wshadow -Wpointer-arith -Wwrite-strings -pedantic -ffor-scope $(MORE_WARNINGS)
11
CFLAGS=#CXXFLAGS#  -DNDEBUG $(WFLAGS) $(MORECFLAGS)
12
CXX=#CXX# $(CFLAGS)
13
MPICXX=#MPI_CXX# $(CFLAGS)
14
LFLAGS=#LDFLAGS#
15

    
16
INSTALL=/usr/bin/install -c
17
INSTALL_PROGRAM=${INSTALL}
18

    
19
BONSRC=bon_io.cpp bon_file.cpp bon_time.cpp semaphore.cpp forkit.cpp \
20
 bon_suid.cpp
21
BONOBJS=$(BONSRC:.cpp=.o)
22

    
23
MAN1=bon_csv2html.1 bon_csv2txt.1
24
MAN8=bonnie++.8 zcav.8
25

    
26
ZCAVSRC=bon_suid.cpp
27
ZCAVOBJS=$(ZCAVSRC:.cpp=.o)
28

    
29
ALLOBJS=$(BONOBJS) $(ZCAVOBJS)
30

    
31
mpibonnie++: mpibonnie++.cpp $(BONOBJS)
32
	$(MPICXX) mpibonnie++.cpp -o mpibonnie++ $(BONOBJS) $(LFLAGS)
33

    
34
bonnie++: bonnie++.cpp $(BONOBJS)
35
	$(CXX) bonnie++.cpp -o bonnie++ $(BONOBJS) $(LFLAGS)
36

    
37
zcav: zcav.cpp $(ZCAVOBJS)
38
	$(CXX) zcav.cpp -o zcav $(ZCAVOBJS) $(LFLAGS)
39

    
40
install-bin: $(EXES)
41
	mkdir -p $(eprefix)/bin $(eprefix)/sbin
42
	${INSTALL} -s $(EXES) $(eprefix)/sbin
43
	${INSTALL} $(SCRIPTS) $(eprefix)/bin
44

    
45
install: install-bin
46
	mkdir -p /home/rjc/debian/bonnie++-1.03d/debian/bonnie++/usr/share/man/man1 /home/rjc/debian/bonnie++-1.03d/debian/bonnie++/usr/share/man/man8
47
	${INSTALL} -m 644 $(MAN1) /home/rjc/debian/bonnie++-1.03d/debian/bonnie++/usr/share/man/man1
48
	${INSTALL} -m 644 $(MAN8) /home/rjc/debian/bonnie++-1.03d/debian/bonnie++/usr/share/man/man8
49

    
50
%.o: %.cpp %.h bonnie.h port.h
51
	$(CXX) -c $<
52

    
53
bon_suid.o: bon_suid.cpp bonnie.h port.h
54
	$(CXX) -c $<
55

    
56
clean:
57
	rm -f $(EXES) $(ALLOBJS) build-stamp install-stamp
58
	rm -rf debian/tmp core debian/*.debhelper
59
	rm -f debian/{substvars,files} config.log
60

    
61
realclean: clean
62
	rm -f config.* Makefile bonnie.h port.h bonnie++.spec bon_csv2html bon_csv2txt sun/pkginfo