-
Notifications
You must be signed in to change notification settings - Fork 1
/
Makefile.in
57 lines (41 loc) · 1.38 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
51
52
53
54
55
56
57
EXES=@exes@
all: $(EXES)
SCRIPTS=bon_csv2html bon_csv2txt
prefix=@prefix@
eprefix=@exec_prefix@
#MORE_WARNINGS=-Weffc++ -Wcast-align
WFLAGS=-Wall -W -Wshadow -Wpointer-arith -Wwrite-strings -pedantic -ffor-scope $(MORE_WARNINGS)
CFLAGS=-O2 @debug@ -DNDEBUG $(WFLAGS) $(MORECFLAGS)
CXX=@CXX@ $(CFLAGS)
INSTALL=@INSTALL@
INSTALL_PROGRAM=@INSTALL_PROGRAM@
BONSRC=bon_io.cpp bon_file.cpp bon_time.cpp semaphore.cpp forkit.cpp \
bon_suid.cpp
BONOBJS=$(BONSRC:.cpp=.o)
MAN1=bon_csv2html.1 bon_csv2txt.1
MAN8=@man8@
ZCAVSRC=bon_suid.cpp
ZCAVOBJS=$(ZCAVSRC:.cpp=.o)
ALLOBJS=$(BONOBJS) $(ZCAVOBJS)
bonnie++: bonnie++.cpp $(BONOBJS)
$(CXX) bonnie++.cpp -o bonnie++ $(BONOBJS) $(LFLAGS)
zcav: zcav.cpp $(ZCAVOBJS)
$(CXX) zcav.cpp -o zcav $(ZCAVOBJS) $(LFLAGS)
install-bin: $(EXES)
mkdir -p $(eprefix)/bin $(eprefix)/sbin
@INSTALL_PROGRAM@ @stripping@ $(EXES) $(eprefix)/sbin
@INSTALL_SCRIPT@ $(SCRIPTS) $(eprefix)/bin
install: install-bin
mkdir -p @mandir@/man1 @mandir@/man8
@INSTALL_DATA@ $(MAN1) @mandir@/man1
@INSTALL_DATA@ $(MAN8) @mandir@/man8
%.o: %.cpp %.h bonnie.h port.h
$(CXX) -c $<
bon_suid.o: bon_suid.cpp bonnie.h port.h
$(CXX) -c $<
clean:
rm -f $(EXES) $(ALLOBJS) build-stamp install-stamp
rm -rf debian/tmp core debian/*.debhelper
rm -f debian/{substvars,files} config.log
realclean: clean
rm -f config.* Makefile bonnie.h port.h bonnie++.spec bon_csv2html bon_csv2txt sun/pkginfo