[dbench @ cvs-1:tridge-20041120165230-79uzz0dny3yyd5vd]
[tridge/dbench.git] / Makefile.in
1 VERSION=3.0
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
13 CC=@CC@
14 CFLAGS=@CFLAGS@ -I. -DVERSION=\"$(VERSION)\" -DDATADIR=\"$(datadir)\"
15 EXEEXT=@EXEEXT@
16
17 DB_OBJS = fileio.o util.o dbench.o child.o
18 TB_OBJS = sockio.o util.o dbench.o child.o socklib.o
19 SRV_OBJS = util.o tbench_srv.o socklib.o
20
21 all: dbench tbench tbench_srv
22
23 dbench: $(DB_OBJS)
24         $(CC) -o $@ $(DB_OBJS)
25
26 tbench: $(TB_OBJS)
27         $(CC) -o $@ $(TB_OBJS)
28
29 tbench_srv: $(SRV_OBJS)
30         $(CC) -o $@ $(SRV_OBJS)
31
32 # Careful here: don't install client.txt over itself.
33 install: all
34         ${INSTALLCMD} -d $(BINDIR) $(DATADIR) $(MANDIR)
35         ${INSTALLCMD} dbench tbench tbench_srv $(BINDIR)
36         ${INSTALLCMD} -m644 dbench.1 $(MANDIR)
37         ln -s dbench.1 $(MANDIR)/tbench.1
38         ln -s dbench.1 $(MANDIR)/tbench_srv.1
39
40 clean:
41         rm -f *.o *~ dbench tbench tbench_srv
42
43 proto:
44         cat *.c | awk -f mkproto.awk > proto.h