Files
ncpfs/util/Makefile
ncpfs archive import f813517d69 Import ncpfs 2.0.12
2026-04-28 20:39:59 +02:00

58 lines
1.1 KiB
Makefile

#
# Makefile for the linux ncp-filesystem routines.
#
USERUTILS = slist pqlist nwfsinfo pserver nprint nsend ncopy nwpasswd
USERUTILS += nwbols nwbocreate nwborm nwboprops pqstat pqrm
USERUTILS += nwbpcreate nwbprm nwbpvalues nwbpadd nwbpset
USERUTILS += nwgrant nwrevoke nwuserlist nwrights nwauth
USERUTILS += nwfstime nwvolinfo nwtrustee
ifdef MOUNT2
SBINUTILS = nwmsg
endif
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 # ipx_probe
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
ipx_probe: ipx_probe.c
$(CC) $(CFLAGS) -o ipx_probe ipx_probe.c
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