| 1 |
|
| 2 |
|
| 3 |
|
| 4 |
|
| 5 |
|
| 6 |
|
| 7 |
|
| 8 |
|
| 9 |
|
| 10 |
|
| 11 |
|
| 12 |
|
| 13 |
|
| 14 |
|
| 15 |
|
| 16 |
|
| 17 |
|
| 18 |
|
| 19 |
|
| 20 |
|
| 21 |
CC = cc |
| 22 |
|
| 23 |
CPP = $(CC) -E |
| 24 |
|
| 25 |
|
| 26 |
|
| 27 |
CFLAGS = -O # -g -Wall -ansi -pedantic |
| 28 |
|
| 29 |
|
| 30 |
MAKE = make |
| 31 |
|
| 32 |
|
| 33 |
SHELL = /bin/sh |
| 34 |
|
| 35 |
all: ymakefile |
| 36 |
$(MAKE) $(MFLAGS) -f ymakefile all |
| 37 |
|
| 38 |
touch: ymakefile |
| 39 |
$(MAKE) -f ymakefile -t all |
| 40 |
|
| 41 |
dbg: ymakefile |
| 42 |
$(MAKE) $(MFLAGS) -f ymakefile nn1 |
| 43 |
|
| 44 |
nn: ymakefile |
| 45 |
$(MAKE) $(MFLAGS) -f ymakefile nn |
| 46 |
|
| 47 |
master: ymakefile |
| 48 |
$(MAKE) $(MFLAGS) -f ymakefile master |
| 49 |
|
| 50 |
lint: ymakefile |
| 51 |
$(MAKE) -f ymakefile lint |
| 52 |
|
| 53 |
client: ymakefile |
| 54 |
$(MAKE) $(MFLAGS) -f ymakefile client |
| 55 |
|
| 56 |
ymakefile: Makefile xmakefile config.h |
| 57 |
cp xmakefile MF.c |
| 58 |
$(CPP) -DCOMPILER="$(CC)" -DPREPROC="$(CPP)" \ |
| 59 |
-DLDEBUG="$(LDFLAGS)" \ |
| 60 |
-DCDEBUG="$(CFLAGS)" -Iconf MF.c | \ |
| 61 |
sed -e '1,/MAKE WILL CUT HERE/d' \ |
| 62 |
-e '/^#/d' \ |
| 63 |
-e 's/^ */ /' \ |
| 64 |
-e '/^[ \f ]$$/d' \ |
| 65 |
-e '/^[ \/]*[*]/d' | \ |
| 66 |
sed -n -e '/^..*$$/p' > ymakefile |
| 67 |
rm -f MF.c |
| 68 |
|
| 69 |
|
| 70 |
|
| 71 |
|
| 72 |
|
| 73 |
|
| 74 |
clean: ymakefile |
| 75 |
make -f ymakefile clean |
| 76 |
rm -f *.o *~ ymakefile |
| 77 |
|
| 78 |
distclean: ymakefile |
| 79 |
make -f ymakefile clean |
| 80 |
rm -f *.o *~ ymakefile |
| 81 |
rm -f config.h update.h |
| 82 |
|
| 83 |
|
| 84 |
|
| 85 |
|
| 86 |
|
| 87 |
distrib: man/nn.1.D |
| 88 |
[ -d DIST ] || mkdir DIST |
| 89 |
rm DIST/Part.* |
| 90 |
makekit -m -k30 -s55000 -nDIST/Part. |
| 91 |
|
| 92 |
tar: man/nn.1.D |
| 93 |
chmod +x FILES |
| 94 |
rm -f /tmp/nn64tar* |
| 95 |
tar cf /tmp/nn64tar `FILES` |
| 96 |
cd /tmp && compress nn64tar |
| 97 |
|
| 98 |
split: tar |
| 99 |
rm -f /tmp/nn64z* |
| 100 |
cd /tmp && bsplit -b40000 -pnn64z -v < nn64tar.Z |
| 101 |
|
| 102 |
man/nn.1.D: man/nn.1 |
| 103 |
sh SPLITNN1 |
| 104 |
|