[dbench @ tridge@samba.org-20070717123945-34sbk2w6rhc3wdm9]
[tridge/dbench.git] / Makefile.in
1 VERSION=4.00
2
3 srcdir=@srcdir@
4 VPATH=@srcdir@
5
6 prefix=@prefix@
7 exec_prefix=@exec_prefix@
8 bindir=@bindir@
9 mandir=@mandir@
10 datadir=@datadir@
11 INSTALLCMD=@INSTALL@
12 LIBS=@LIBS@ -lpopt
13
14 CC=@CC@
15 CFLAGS=@CFLAGS@ -I. -DVERSION=\"$(VERSION)\" -DDATADIR=\"$(datadir)\"
16 EXEEXT=@EXEEXT@
17
18 DB_OBJS = fileio.o util.o dbench.o child.o system.o snprintf.o
19 TB_OBJS = sockio.o util.o dbench.o child.o socklib.o snprintf.o
20 SRV_OBJS = util.o tbench_srv.o socklib.o
21
22 all: dbench tbench tbench_srv
23
24 dbench: $(DB_OBJS)
25         $(CC) -o $@ $(DB_OBJS) $(LIBS)
26
27 tbench: $(TB_OBJS)
28         $(CC) -o $@ $(TB_OBJS) $(LIBS)
29
30 tbench_srv: $(SRV_OBJS)
31         $(CC) -o $@ $(SRV_OBJS) $(LIBS)
32
33 # Careful here: don't install client.txt over itself.
34 install: all
35         ${INSTALLCMD} -d $(bindir) $(datadir) $(mandir)
36         ${INSTALLCMD} dbench tbench tbench_srv $(bindir)
37         ${INSTALLCMD} client.txt $(datadir)
38         ${INSTALLCMD} -m644 dbench.1 $(mandir)
39         ln -sf dbench.1 $(mandir)/tbench.1
40         ln -sf dbench.1 $(mandir)/tbench_srv.1
41
42 clean:
43         rm -f *.o *~ dbench tbench tbench_srv
44
45 proto:
46         ./mkproto.pl *.c > proto.h