70 lines
1.5 KiB
Makefile
70 lines
1.5 KiB
Makefile
#
|
|
# Makefile for the linux ncp-filesystem routines.
|
|
#
|
|
|
|
# KERNEL = 1.2
|
|
|
|
TOPDIR = $(shell pwd)
|
|
|
|
BINDIR = /usr/local/bin
|
|
INTERM_BINDIR = $(TOPDIR)/bin
|
|
SUBDIRS = util ipx-0.75 man
|
|
|
|
#
|
|
# The following 2 lines are for those who use Kernel version 1.2.x.
|
|
# If you have a kernel later than 1.3.53, please comment out the
|
|
# the following lines. You have to recompile your kernel
|
|
# and say 'y' when 'make config' asks you for IPX and ncpfs.
|
|
#
|
|
#SUBDIRS += kernel-1.2/src
|
|
#INCLUDES = -I$(TOPDIR)/kernel-1.2
|
|
|
|
# If you are using kerneld to autoload ncp support,
|
|
# uncomment this (kerneld is in linux since about 1.3.57):
|
|
# KERNELD = -DHAVE_KERNELD
|
|
|
|
export INCLUDES BINDIR INTERM_BINDIR KERNELD
|
|
|
|
all:
|
|
for i in $(SUBDIRS); do make -C $$i; done
|
|
|
|
dep:
|
|
for i in $(SUBDIRS); do make -C $$i dep; done
|
|
|
|
install:
|
|
for i in $(SUBDIRS); do make -C $$i install; done
|
|
|
|
clean:
|
|
rm -f `find . -type f -name '*.o' -print`
|
|
rm -f `find . -type f -name '*~' -print`
|
|
rm -f `find . -type f -name '.depend' -print`
|
|
rm -f `find . -type f -name '*.out' -print`
|
|
for i in $(SUBDIRS); do make -C $$i clean; done
|
|
|
|
realclean: clean
|
|
rm -fr $(INTERM_BINDIR)/* ncpfs.tgz
|
|
make -C util realclean
|
|
|
|
modules: ncpfs.o
|
|
|
|
SRCPATH=$(shell pwd)
|
|
SRCDIR=$(shell basename $(SRCPATH))
|
|
DISTFILE=$(SRCDIR).tgz
|
|
|
|
dist: tgz
|
|
make dep
|
|
make all
|
|
|
|
tgz: realclean
|
|
(cd ..; \
|
|
tar cvf - $(SRCDIR) | \
|
|
gzip -9 > $(DISTFILE); \
|
|
mv $(DISTFILE) $(SRCDIR))
|
|
|
|
#
|
|
# include a dependency file if one exists
|
|
#
|
|
ifeq (.depend,$(wildcard .depend))
|
|
include .depend
|
|
endif
|