# # Makefile for the linux ncp-filesystem routines. # USERUTILS = slist pqlist nwfsinfo pserver nprint nsend ncopy nwpasswd USERUTILS += nwbols nwbocreate nwborm nwboprops USERUTILS += nwbpcreate nwbprm nwbpvalues nwbpadd nwbpset USERUTILS += nwgrant nwrevoke nwuserlist nwrights nwauth USERUTILS += nwfstime nwvolinfo nwtrustee SBINUTILS = nwmsg UTILS = $(USERUTILS) $(SBINUTILS) ncptest CC = gcc ifeq ($(HAVE_ELF),yes) NCP_LIB = libncp.so.1.0 else NCP_LIB = libncp.a LIBDEP = ../lib/libncp.a endif default: make -C .. all: $(UTILS) ncptest install: all for i in $(USERUTILS); \ do install $$i -m 755 $(BINDIR); done for i in $(SBINUTILS); \ do install $$i -m 755 $(SBINDIR); done $(UTILS): %: %.o $(LIBDEP) $(CC) -o $@ $(addsuffix .o,$@) -L../lib -lncp dep: $(CPP) -M $(INCLUDES) *.c > .depend clean: rm -f *.o *~ $(UTILS) mrproper: clean rm -f .depend # # include a dependency file if one exists # ifeq (.depend,$(wildcard .depend)) include .depend endif