home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Unix System Administration Handbook 1997 October
/
usah_oct97.iso
/
news
/
nn.tar
/
nn-6.5.1
/
Makefile
< prev
next >
Wrap
Makefile
|
1996-08-19
|
2KB
|
100 lines
#
# Makefile for nn release 6.5
#
#
# Before compiling, read the instructions in the file INSTALLATION!
# It is best to make changes to the variables in this file in config.h
# --see Step 2.1: Configuration of Makefile.
#
# -----------------------------------------------------------------
#
# make all compile programs
# make clean remove all make'd files from source directory
#
# -----------------------------------------------------------------
#
# Some alternatives for CPP might be /lib/cpp and $(CC) -P
# Common values for CFLAGS are '-O -s' or '-g'
#
# Use /lib/cpp or /usr/ccs/lib/cpp for CPP on Solaris or SVR4 machines.
CC = cc
#CPP = $(CC) -E
CPP = /lib/cpp
#CFLAGS = -O2 # -g # -I/usr/local/lib/malloc-debug -DMALLOC_FUNC_CHECK
CFLAGS = -O
#-Wall -Wcomment \
#-Wtraditional -Wshadow \
#-Wpointer-arith -Wcast-qual -Wcast-align -Wconversion \
#-Waggregate-return -Wmissing-prototypes -Wnested-externs
#LDFLAGS = -s # -lmalloc # /usr/local/lib/malloc-debug/libmalloc.a
MAKE = make
SHELL = /bin/sh
all: ymakefile
$(MAKE) $(MFLAGS) -f ymakefile all
touch: ymakefile
$(MAKE) -f ymakefile -t all
dbg: ymakefile
$(MAKE) $(MFLAGS) -f ymakefile nn1
nn: ymakefile
$(MAKE) $(MFLAGS) -f ymakefile nn
master: ymakefile
$(MAKE) $(MFLAGS) -f ymakefile master
lint: ymakefile
$(MAKE) -f ymakefile lint
client: ymakefile
$(MAKE) $(MFLAGS) -f ymakefile client
ymakefile: Makefile xmakefile config.h
cp xmakefile MF.c
$(CPP) -DCOMPILER="$(CC)" -DPREPROC="$(CPP)" \
-DLDEBUG="$(LDFLAGS)" \
-DCDEBUG="$(CFLAGS)" -Iconf MF.c | \
sed -e '1,/MAKE WILL CUT HERE/d' \
-e '/^#/d' \
-e '/^[ \f ]$$/d' \
-e '/^[ \/]*[*]/d' | \
sed -n -e '/^..*$$/p' > ymakefile
rm -f MF.c
#
# clean up
# Will remove object and executeable files.
#
clean: ymakefile
make -f ymakefile clean
rm -f *.o *~ ymakefile
#
# distribution
#
distrib: man/nn.1.D
[ -d DIST ] || mkdir DIST
rm DIST/Part.*
makekit -m -k30 -s55000 -nDIST/Part.
tar: man/nn.1.D
chmod +x FILES
rm -f /tmp/nn64tar*
tar cf /tmp/nn64tar `FILES`
cd /tmp && compress nn64tar
split: tar
rm -f /tmp/nn64z*
cd /tmp && bsplit -b40000 -pnn64z -v < nn64tar.Z
man/nn.1.D: man/nn.1
sh SPLITNN1