1EXES=bonnie++ zcav 2 3all: $(EXES) 4 5SCRIPTS=bon_csv2html bon_csv2txt 6 7prefix=/home/rjc/debian/bonnie++-1.03d/debian/bonnie++/usr 8eprefix=${prefix} 9#MORE_WARNINGS=-Weffc++ -Wcast-align 10WFLAGS=-Wall -W -Wshadow -Wpointer-arith -Wwrite-strings -pedantic -ffor-scope $(MORE_WARNINGS) 11CFLAGS=-O2 -DNDEBUG $(WFLAGS) $(MORECFLAGS) 12CXX=g++ $(CFLAGS) 13 14INSTALL=/usr/bin/install -c 15INSTALL_PROGRAM=${INSTALL} 16 17BONSRC=bon_io.cpp bon_file.cpp bon_time.cpp semaphore.cpp forkit.cpp \ 18 bon_suid.cpp 19BONOBJS=$(BONSRC:.cpp=.o) 20 21MAN1=bon_csv2html.1 bon_csv2txt.1 22MAN8=bonnie++.8 zcav.8 23 24ZCAVSRC=bon_suid.cpp 25ZCAVOBJS=$(ZCAVSRC:.cpp=.o) 26 27ALLOBJS=$(BONOBJS) $(ZCAVOBJS) 28 29bonnie++: bonnie++.cpp $(BONOBJS) 30 $(CXX) bonnie++.cpp -o bonnie++ $(BONOBJS) $(LFLAGS) 31 32zcav: zcav.cpp $(ZCAVOBJS) 33 $(CXX) zcav.cpp -o zcav $(ZCAVOBJS) $(LFLAGS) 34 35install-bin: $(EXES) 36 mkdir -p $(eprefix)/bin $(eprefix)/sbin 37 ${INSTALL} -s $(EXES) $(eprefix)/sbin 38 ${INSTALL} $(SCRIPTS) $(eprefix)/bin 39 40install: install-bin 41 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 42 ${INSTALL} -m 644 $(MAN1) /home/rjc/debian/bonnie++-1.03d/debian/bonnie++/usr/share/man/man1 43 ${INSTALL} -m 644 $(MAN8) /home/rjc/debian/bonnie++-1.03d/debian/bonnie++/usr/share/man/man8 44 45%.o: %.cpp %.h bonnie.h port.h 46 $(CXX) -c $< 47 48bon_suid.o: bon_suid.cpp bonnie.h port.h 49 $(CXX) -c $< 50 51clean: 52 rm -f $(EXES) $(ALLOBJS) build-stamp install-stamp 53 rm -rf debian/tmp core debian/*.debhelper 54 rm -f debian/{substvars,files} config.log 55 56realclean: clean 57 rm -f config.* Makefile bonnie.h port.h bonnie++.spec bon_csv2html bon_csv2txt sun/pkginfo 58