home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
rtsi.com
/
2014.01.www.rtsi.com.tar
/
www.rtsi.com
/
OS9
/
OSK
/
TELECOM
/
rn_4_3_blars.lzh
/
Makefile
< prev
next >
Wrap
Makefile
|
1991-09-24
|
6KB
|
158 lines
# rn makefile modified for osk from makefile.sh by blarson
CC = cc
RNBIN = /h0/ulib/newsbin/rn
# rnlib = $rnlib
# mansrc = $mansrc
# manext = $manext
#NNTPNNTPDIR = $NNTPSRC
#NNTPNNTPINC = $rrninclude
CFLAGS = -t=/r0 -v=/h0/blarslib/defs
LDFLAGS = -i
RNLDFLAGS = -bg -m=16k
libs = -l=/h0/blarslib/blarslib.l -l=/dd/lib/termlib.l
# NDIRC = $ndirc
# NDIRO = $ndiro
ODIR = /h0/cmds
#NNTPnntp=getactive
public = rn newsetup Pnews Rnmail newsgroups
private = $(RNBIN)/norm.saver mbox.saver ng.help art.help pager.help subs.help makedir filexp Pnews.header
util = Makefile makedepend newsnews
h1 = addng.h art.h artio.h artsrch.h backpage.h bits.h cheat.h common.h
h2 = final.h head.h help.h init.h intrp.h kfile.h last.h ndir.h ng.h
h3 = ngdata.h ngsrch.h ngstuff.h only.h rcln.h rcstuff.h
h4 = respond.h rn.h search.h sw.h term.h util.h
h = $(h1) $(h2) $(h3) $(h4)
c1 = addng.c art.c artio.c artsrch.c backpage.c bits.c cheat.c
c2 = final.c head.c help.c init.c intrp.c kfile.c last.c ng.c
c3 = ngdata.c ngsrch.c ngstuff.c only.c rcln.c rcstuff.c
c4 = respond.c rn.c search.c sw.c term.c util.c
c = $(c1) $(c2) $(c3) $(c4)
obj1 = addng.r art.r artio.r artsrch.r backpage.r bits.r cheat.r
obj2 = final.r head.r help.r init.r intrp.r kfile.r last.r ng.r
obj3 = ngdata.r ngsrch.r ngstuff.r only.r rcln.r rcstuff.r
obj4 = respond.r rn.r search.r sw.r term.r util.r
obj = $(obj1) $(obj2) $(obj3) $(obj4)
all: $(public) $(private) $(util)
touch all
rn: $(obj)
$(CC) $(LDFLAGS) $(RNLDFLAGS) $(obj) $(libs) -f=$@
attr -x -e -pe $@
$(RNBIN)/norm.saver: norm.saver.r
$(CC) $(LDFLAGS) norm.saver.r $(libs) -fd=$@
attr -e -pe $@
newsetup: newsetup.r
$(CC) $(LDFLAGS) newsetup.r $(libs) -f=$@
attr -x -e -pe $@
Pnews: Pnews.r
$(CC) $(LDFLAGS) Pnews.r $(libs) -f=$@
attr -x -e -pe $@
# install: rn
# won't work with csh
# export PATH || exit 1
# - mv $(rnbin)/rn $(rnbin)/rn.old
# - if test `pwd` != $(rnbin); then cp $(public) $(rnbin); fi
# cd $(rnbin); chmod 755 $(public)
# chmod 755 makedir
# - ./makedir `./filexp $(rnlib)`
# - if test `pwd` != `./filexp $(rnlib)`; then cp INIT $(private) `./filexp $(rnlib)`; fi
# cd `./filexp $(rnlib)`; chmod 755 $(private)
# - if test ! -f `./filexp $(rnlib)/newsnews`; then cp newsnews `./filexp $(rnlib)`; fi
# - if test `pwd` != $(mansrc); then \
#for page in $(manpages); do \
#cp $$page $(mansrc)/`basename $$page .1`.$(manext); \
#done; \
##NNTPecho ".so man$(manext)/rn.$(manext)" > $(mansrc)/rrn.$(manext) ; \
#fi
clean:
rm -f *.r
# osk dependencies created with grep and mg. Go ahead and fix it if broke.
addng.r: EXTERN.h common.h rn.h ngdata.h last.h util.h intrp.h only.h rcstuff.h INTERN.h addng.h
art.r: EXTERN.h common.h rn.h ngstuff.h ngdata.h head.h cheat.h help.h search.h artio.h ng.h bits.h final.h artstate.h rcstuff.h term.h sw.h util.h backpage.h intrp.h INTERN.h art.h
artio.r: EXTERN.h common.h INTERN.h artio.h
artsrch.r: EXTERN.h common.h search.h term.h util.h intrp.h bits.h kfile.h head.h final.h cheat.h ng.h artio.h INTERN.h artsrch.h
backpage.r: EXTERN.h common.h intrp.h final.h INTERN.h backpage.h
bits.r: EXTERN.h common.h rcstuff.h head.h util.h final.h rn.h cheat.h ng.h artio.h intrp.h ngdata.h rcln.h kfile.h INTERN.h bits.h
cheat.r: EXTERN.h common.h intrp.h search.h ng.h bits.h artio.h term.h artsrch.h head.h INTERN.h cheat.h
final.r: EXTERN.h common.h util.h term.h ng.h init.h bits.h last.h rcstuff.h ngdata.h artio.h INTERN.h final.h backpage.r
getactive.r: config.h EXTERN.h
head.r: EXTERN.h common.h artio.h bits.h util.h INTERN.h head.h
help.r: EXTERN.h common.h rn.h term.h INTERN.h help.h
init.r: EXTERN.h common.h util.h final.h term.h last.h rn.h rcstuff.h ngdata.h only.h intrp.h addng.h sw.h art.h artsrch.h artio.h backpage.h bits.h cheat.h head.h help.h kfile.h ngsrch.h ngstuff.h rcln.h respond.h ng.h INTERN.h init.h
intrp.r: EXTERN.h common.h util.h search.h head.h rn.h artsrch.h ng.h respond.h rcstuff.h bits.h artio.h term.h final.h INTERN.h intrp.h
kfile.r: EXTERN.h common.h term.h util.h artsrch.h ng.h bits.h intrp.h ngstuff.h rcstuff.h rn.h INTERN.h kfile.h
last.r: EXTERN.h common.h rn.h util.h intrp.h INTERN.h last.h
ndir.r: EXTERN.h common.h INTERN.h ndir.h
ng.r: EXTERN.h common.h rn.h term.h final.h util.h artsrch.h cheat.h help.h kfile.h rcstuff.h head.h bits.h art.h artio.h ngstuff.h intrp.h respond.h ngdata.h backpage.h rcln.h last.h search.h INTERN.h ng.h artstate.h
ngdata.r: EXTERN.h common.h ndir.h rcstuff.h rn.h intrp.h final.h rcln.h util.h INTERN.h ngdata.h
ngsrch.r: EXTERN.h common.h rcstuff.h final.h search.h rn.h util.h term.h rcln.h INTERN.h ngsrch.h
ngstuff.r: EXTERN.h common.h term.h util.h ng.h bits.h intrp.h cheat.h head.h final.h sw.h INTERN.h ngstuff.h
only.r: EXTERN.h common.h search.h util.h final.h ngsrch.h INTERN.h only.h
rcln.r: EXTERN.h common.h util.h rcstuff.h ngdata.h INTERN.h rcln.h
rcstuff.r: EXTERN.h common.h util.h ngdata.h term.h final.h rn.h intrp.h only.h rcln.h INTERN.h rcstuff.h
respond.r: EXTERN.h common.h intrp.h head.h term.h ng.h util.h rn.h artio.h final.h INTERN.h respond.h
rn.r: INTERN.h common.h rn.h EXTERN.h rcstuff.h term.h final.h ngdata.h util.h only.h ngsrch.h help.h last.h init.h intrp.h rcln.h sw.h addng.h ng.h
search.r: EXTERN.h common.h util.h INTERN.h search.h
sw.r: EXTERN.h common.h util.h head.h only.h term.h ng.h intrp.h INTERN.h sw.h
term.r: EXTERN.h common.h util.h final.h help.h cheat.h intrp.h INTERN.h term.h
util.r: EXTERN.h common.h final.h ndir.h INTERN.h util.h
artsrch.h: search.h
touch $@
common.h: config.h
touch $@
only.h: search.h
touch $@
norm.saver.r: norm.saver.c
newsetup.r: newsetup.c config.h
Pnews.r: Pnews.c common.h