# # Makefile for the linux ncp-filesystem routines. # UTIL_EXECS = ncpmount ncpumount nprint slist pqlist fsinfo pserver UTILS = $(addprefix $(INTERM_BINDIR)/,$(UTIL_EXECS)) UIDUTILS = ncpmount ncpumount # CFLAGS = -Wall $(INCLUDES) -O2 $(KERNELD) CFLAGS = -Wall $(INCLUDES) $(KERNELD) -O2 CC = gcc all: $(UTILS) ncptest install: all for i in $(UTIL_EXECS); \ do install --strip $(INTERM_BINDIR)/$$i -m 755 $(BINDIR); done for i in $(UIDUTILS); do chmod 4755 $(BINDIR)/$$i; done $(UTILS): $(addsuffix .o,$(UTIL_EXECS)) ncplib.o $(CC) -o $@ $(addsuffix .o,$(notdir $@)) ncplib.o ncplib.o: ncplib.c ncplib.h $(CC) $(CFLAGS) -finline-functions -c ncplib.c test: test.o ncplib.o $(CC) -o test test.o ncplib.o ncptest: ncptest.o ncplib.o $(CC) -o ncptest ncptest.o ncplib.o dep: $(CPP) -M $(INCLUDES) *.c > .depend clean: rm -f *.o *~ slist test ncptest realclean: clean rm -f $(UTILS) .depend $(DISTFILE) # # include a dependency file if one exists # ifeq (.depend,$(wildcard .depend)) include .depend endif