r10: Changes from Wouter Verhelst to use nbd.h from linux tree, instead of
[nbd.git] / Makefile.in
1 prefix=@prefix@
2 exec_prefix=@exec_prefix@
3 bindir=@bindir@
4 mandir=@mandir@
5 srcdir=@srcdir@
6 CC=@CC@
7 CFLAGS=@CFLAGS@
8 LIBS=@LIBS@
9 LDFLAGS=@LDFLAGS@ $(LIBS)
10 VPATH=@srcdir@
11 INSTALL=install
12 CMDS=nbd-server @BUILD_CLIENT@
13
14 all: $(CMDS)
15
16 nbd-client: nbd-client.o
17
18 nbd-client.o: nbd-client.c cliserv.h config.h
19
20 nbd-server: nbd-server.o
21
22 nbd-server.o: nbd-server.c cliserv.h config.h
23         $(CC) $(CFLAGS) $(FSCHOICE) -c nbd-server.c
24
25 install: $(CMDS)
26         strip $(CMDS)
27         $(INSTALL) $(CMDS) $(bindir)/
28
29 clean:
30         rm -f `find . -name "*~" -o -name "*.[oa]" -o -name "\#*\#" -o -name TAGS -o -name core`
31         rm -f $(CMDS)
32
33 distclean: clean
34         rm -f Makefile config.h config.cache config.log config.status
35
36 allclean: distclean
37         rm -f configure config.h.in
38
39 dist: distclean
40         sh -c 'X=`pwd` ; X=`basename $$X` ; cd .. ; tar czvvf /tmp/$$X.tar.gz $$X --exclude CVS --exclude tmp --exclude "*.tar.gz"'