From 3bceb0860c9841252aebaa2a0347bbef75440c4b Mon Sep 17 00:00:00 2001 From: CSRG Date: Mon, 7 Jun 1993 22:18:01 -0800 Subject: [PATCH] BSD 4_4_Lite2 development Work on file usr/src/contrib/news/inn/nnrpd/Makefile Synthesized-from: CSRG/cd3/4.4BSD-Lite2 --- usr/src/contrib/news/inn/nnrpd/Makefile | 94 +++++++++++++++++++++++++ 1 file changed, 94 insertions(+) create mode 100644 usr/src/contrib/news/inn/nnrpd/Makefile diff --git a/usr/src/contrib/news/inn/nnrpd/Makefile b/usr/src/contrib/news/inn/nnrpd/Makefile new file mode 100644 index 0000000000..8d8e501a06 --- /dev/null +++ b/usr/src/contrib/news/inn/nnrpd/Makefile @@ -0,0 +1,94 @@ +## $Revision: 1.16 $ +SHELL = /bin/sh +MAKE = make +## =()

@>()= +P = + +## =()@>()= +CC = cc +## =()@>()= +DEFS = -I../include +## =()@>()= +CFLAGS = $(DEFS) -g +## =()@>()= +LDFLAGS = -g +## =()@>()= +LINTFLAGS = -b -h -z $(DEFS) +## =()@>()= +LINTFILTER = | sed -n -f ../sedf.sun +## =()@>()= +CTAGS = ctags -t -w +## =()@>()= +PROF = -pg + +## =()@>()= +NNRPD = /usr/contrib/news/nnrpd +OWNER = -O bin -G bin + +## =()@>()= +LIBS = +LIBNEWS = ../libinn.a +LINTLIB = ../llib-linn.ln + +SOURCES = \ + article.c group.c commands.c misc.c newnews.c nnrpd.c post.c loadave.c + +OBJECTS = \ + article.o group.o commands.o misc.o newnews.o nnrpd.o post.o loadave.o + +ALL = nnrpd + +all: $(ALL) + +install: $(NNRPD) + +## Low-level install actions. +$(NNRPD): nnrpd + $(SHELL) ../installit.sh $(OWNER) -m 0555 -b .OLD $? $@ + +clobber clean: + rm -f *.o $(ALL) + rm -f nnrpd nnrpdp profiled + rm -f all install lint + +tags ctags: $(SOURCES) + $(CTAGS) $(SOURCES) ../lib/*.c nnrpd.h ../include/*.h + +nnrpd: $(P) $(OBJECTS) $(LIBNEWS) + @rm -f $@ + $(CC) $(LDFLAGS) -o $@ $(OBJECTS) $(LIBNEWS) $(LIBS) + +lint: $(ALL) + @rm -f lint + lint $(LINTFLAGS) $(SOURCES) $(LINTLIB) $(LINTFILTER) >lint + +../include/dbz.h: + (cd ../lib ; $(MAKE) ../include/dbz.h) +$(LIBNEWS) $(LINTLIB): + (cd ../lib ; $(MAKE) install ) + +## Profiling. The rules are a bit brute-force, but good enough. +profiled: nnrpdp + date >$@ + +nnrpdp: $(SOURCES) + rm -f $(OBJECTS) + $(MAKE) nnrpd CFLAGS="$(CFLAGS) $(PROF)" LIBNEWS=../libinn_p.a + mv nnrpd nnrpdp + rm -f $(OBJECTS) + +ccenter: $(SOURCES) + #load $(CFLAGS) $(SOURCES) $(LIBNEWS) + +## Dependencies. Default list, below, is probably good enough. +depend: Makefile $(SOURCES) + makedepend $(DEFS) $(SOURCES) + +# DO NOT DELETE THIS LINE -- make depend depends on it. +$(OBJECTS): nnrpd.h \ + ../include/clibrary.h ../include/configdata.h \ + ../include/libinn.h ../include/logging.h \ + ../include/macros.h ../include/nntp.h \ + ../include/paths.h ../include/qio.h +group.o: ../include/mydir.h +misc.o: ../include/dbz.h -- 2.20.1