2 exec_prefix=@exec_prefix@
9 LDFLAGS=@LDFLAGS@ $(LIBS)
12 CMDS=nbd-server @BUILD_CLIENT@
16 nbd-client: nbd-client.o
18 nbd-client.o: nbd-client.c cliserv.h config.h
20 nbd-server: nbd-server.o
22 nbd-server.o: nbd-server.c cliserv.h config.h
23 $(CC) $(CFLAGS) $(FSCHOICE) -c nbd-server.c
27 $(INSTALL) $(CMDS) $(bindir)/
30 rm -f `find . -name "*~" -o -name "*.[oa]" -o -name "\#*\#" -o -name TAGS -o -name core`
34 rm -f Makefile config.h config.cache config.log config.status
37 rm -f configure config.h.in
40 sh -c 'X=`pwd` ; X=`basename $$X` ; cd .. ; tar czvvf /tmp/$$X.tar.gz $$X --exclude CVS --exclude tmp --exclude "*.tar.gz"'