# # Makefile for the linux ncp-filesystem routines. # USERUTILS = slist pqlist nwfsinfo pserver UIDUTILS = ncpmount ncpumount SBINUTILS = nwmsg UTIL_EXECS = $(USERUTILS) $(UIDUTILS) $(SBINUTILS) UTILS = $(addprefix $(INTERM_BINDIR)/,$(UTIL_EXECS)) #CFLAGS = -Wall $(INCLUDES) $(KERNELD) -g -DNCPFS_VERSION=\"$(VERSION)\" CFLAGS = -Wall $(INCLUDES) $(KERNELD) -O2 -DNCPFS_VERSION=\"$(VERSION)\" CC = gcc all: $(UTILS) ncptest install: all for i in $(UTIL_EXECS); \ do install $(INTERM_BINDIR)/$$i -m 755 $(BINDIR); done for i in $(UIDUTILS); \ do install $(INTERM_BINDIR)/$$i -m 4755 $(BINDIR); done for i in $(SBINUTILS); \ do install $(INTERM_BINDIR)/$$i -m 755 $(SBINDIR); 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