home *** CD-ROM | disk | FTP | other *** search
/ rtsi.com / 2014.01.www.rtsi.com.tar / www.rtsi.com / OS9 / OSK / TELECOM / UUCPbb_2_1_src.lzh / UUCPBB21 / makefile.coco < prev    next >
Makefile  |  1994-09-24  |  13KB  |  369 lines

  1. # makefile for OS-9 UUCP package, UUCPbb v2.1 (OS-9/6809)
  2. #
  3. # This script requires Shell+ v2.1 (or later) and CC v2.5.0
  4. #
  5. # NOTE: This package must be compiled by the SUPERUSER (user 0) in order
  6. #       for it to work properly.
  7.  
  8. CC      = cc
  9.  
  10. # Temporary directory.  This device must have at least 120K of free space
  11. TMP     = /dd/tmp
  12.  
  13. # Default device
  14. DD     = /DD
  15.  
  16. # Uncomment the termlib.l below to add termcap support.
  17. # NOTE: termlib.l is necessary if using termcap, while sys.l is not currently
  18. #       necessary for compiling
  19.  
  20. LIB     = #-l=/dd/lib/termlib.l \
  21.           #-l=/dd/lib/cmath63.l -l=/dd/lib/string63.l \
  22.           #-l=$(DD)/lib/sys.l 
  23.  
  24. # REPLACE m6809 below with m6309 if you are using the 6309 microprocessor
  25.  
  26. CPU     = m6809
  27.  
  28. # COMMENT OUT SHELLPLUS if you do NOT use Shell+ v2.1 or later
  29.  
  30. USHELL  = SHELLPLUS
  31.  
  32. # UNCOMMENT -dTERMCAP to add termcap support.
  33. # UNCOMMENT -dBSDISH also to add termcap support based on Brad Spencer's
  34. #              port of BSD termcap (available on chestnut.cs.wisc.edu)
  35. # UNCOMMENT -dDASHOK if kernel is patched to allow the '-' as part of file
  36. #              and directory names.
  37. # REMOVE    -dNEWCLIB if you are NOT using Carl Kreider clib.l replacement
  38. #              1990 or later.
  39. #
  40. # ==IMPORTANT== do NOT remove the '\' at the end of the CFLAGS line.
  41.  
  42. CFLAGS  = -s -d$(CPU) -dOS9 -T=$(TMP) -d$(USHELL) -dNEWCLIB  \
  43.           #-dTERMCAP  #-dBSDISH  #-dDASHOK
  44.  
  45. CSTART  = -b=/dd/lib/cstart.r
  46.  
  47. # Directory where the compiled executables will be put.  Change this, if
  48. # necessary, for your system
  49. ODIR    = /dd/cmds
  50. RDIR    = RELS
  51.  
  52. # These modules will not be compiled now by this makefile: 
  53. #         uusetup
  54.  
  55. all: uucico mailx dotilde rmail rnews uuxqt readnews postnews expire \
  56.      subscribe unsubscribe uulog uuclean uuencode uudecode uucp chown \
  57.      whoami fixtext adduser fileserv uuname login cnvrtmail #uusetup
  58.  
  59.      @load attr
  60.      attr $(ODIR)/uucico e w r pe -pw pr
  61.      attr $(ODIR)/mailx  e w r pe -pw pr
  62.      attr $(ODIR)/dotilde e w r pe -pw pr
  63.      attr $(ODIR)/rmail e w r -pe -pw -pr
  64.      attr $(ODIR)/rnews e w r -pe -pw -pr
  65.      attr $(ODIR)/uuxqt e w r -pe -pw -pr
  66.      attr $(ODIR)/readnews e w r pe -pw pr
  67.      attr $(ODIR)/postnews e w r pe -pw pr
  68.      attr $(ODIR)/expire e w r -pe -pw -pr
  69.      attr $(ODIR)/subscribe e w r pe -pw pr
  70.      attr $(ODIR)/unsubscribe e w r pe -pw pr
  71.      attr $(ODIR)/uulog e w r pe -pw pr
  72.      attr $(ODIR)/uuclean e w r -pe -pw -pr
  73.      attr $(ODIR)/uuencode e w r pe -pw pr
  74.      attr $(ODIR)/uudecode e w r pe -pw pr
  75.      attr $(ODIR)/uucp e w r pe -pw pr
  76.      attr $(ODIR)/chown e w r pe -pw pr
  77.      attr $(ODIR)/whoami e w r pe -pw pr
  78.      attr $(ODIR)/fixtext e w r pe -pw pr
  79.      attr $(ODIR)/adduser e w r -pe -pw -pr
  80.      attr $(ODIR)/fileserv e w r pe -pw pr
  81.      attr $(ODIR)/uuname e w r pe -pw pr
  82.      attr $(ODIR)/login e w r pe -pw pr
  83.      attr $(ODIR)/cnvrtmail e w r -pe -pw -pr
  84. #    attr $(ODIR)/uusetup e w r -pe -pw -pr
  85.      @unlink attr;echo;echo -- Done --;display 7 7
  86.  
  87. _UUCICO = uucico.r getopt.r getparam.r findmach.r chksched.r findline.r \
  88.         findent.r finddev.r connect.r openport.r openuucp.r findwork.r \
  89.         filexfer.r gproto.r dumpcode.r filemove.r fixperms.r closeuucp.r \
  90.         parse.r docmd.r gtime.r mfgets.r strdetab.r getenv.r strdup.r \
  91.         getdirs.r strstr.r pwent.r
  92.  
  93. uucico: $(_UUCICO)
  94.     chd $(RDIR); \
  95.     merge $(_UUCICO) >- $(TMP)/uucico_r.r; \
  96.     $(CC) -f=$(ODIR)/uucico $(CFLAGS) $(CSTART) $(TMP)/uucico_r.r $(LIB) \
  97.           -m=4k; \
  98.     del $(TMP)/uucico_r.r
  99.  
  100. _MAILX = mail.r recvmail.r sendmail.r getuser.r docmd.r parse.r fixline.r \
  101.         filemove.r maketemp.r getseq.r getval.r fixperms.r getparam.r \
  102.         userparam.r t2test.r date822.r gtime.r doalias.r forkshell.r \
  103.         strdup.r mfgets.r strdetab.r getenv.r termio.r nmload.r getdirs.r \
  104.         pwent.r
  105.  
  106. mailx: $(_MAILX)
  107.     chd $(RDIR); \
  108.     merge $(_MAILX) >-$(TMP)/mailx_r.r; \
  109.     $(CC) -f=$(ODIR)/mailx $(CFLAGS) $(CSTART) $(TMP)/mailx_r.r \
  110.            $(LIB) -m=3k;\
  111.     del $(TMP)/mailx_r.r
  112.  
  113. _DOTILDE = dotilde.r docmd.r fixline.r parse.r forkshell.r getenv.r \
  114.         mfgets.r strdetab.r strdup.r gtime.r filemove.r termio.r pwent.r
  115.  
  116. dotilde: $(_DOTILDE)
  117.     chd $(RDIR); \
  118.     $(CC) -f=$(ODIR)/dotilde $(CFLAGS) $(CSTART) $(_DOTILDE) $(LIB) -m=2k
  119.  
  120. _RMAIL = rmail.r getline.r getuser.r validuser.r setuser.r parse.r genseq.r \
  121.         findent.r getparam.r getval.r maketemp.r gtime.r fixperms.r \
  122.         date822.r filemove.r doalias.r mfgets.r getenv.r strdup.r getdirs.r \
  123.         termio.r docmd.r pwent.r
  124.  
  125. rmail: $(_RMAIL)
  126.     chd $(RDIR);\
  127.     merge $(_RMAIL) >- $(TMP)/rmail_r.r; \
  128.     $(CC) -f=$(ODIR)/rmail $(CFLAGS) $(CSTART) $(TMP)/rmail_r.r \
  129.           $(LIB) -m=4k; \
  130.     del $(TMP)/rmail_r.r
  131.  
  132. _RNEWS = rnews.r getline.r groups.r procbatch.r mbuf.r xatol.r getdirs.r \
  133.          getparam.r parse.r strdup.r mfgets.r openarts.r makepath.r strupr.r \
  134.          procart.r getopt.r fixref.r gtime.r log.r getenv.r
  135.  
  136. rnews: $(_RNEWS)
  137.     chd $(RDIR); \
  138.     merge $(_RNEWS) >- $(TMP)/rnews_r.r
  139.     $(CC) -f=$(ODIR)/rnews $(CFLAGS) $(CSTART) $(TMP)/rnews_r.r $(LIB) \
  140.           -m=5k -e=21; \
  141.     del $(TMP)/rnews_r.r
  142.  
  143. _UUXQT = uuxqt.r findxwork.r getline.r parse.r docmd.r gtime.r filemove.r \
  144.         mfgets.r getopt.r strdetab.r strdup.r getdirs.r strupr.r nmload.r \
  145.         getenv.r
  146.  
  147. uuxqt: $(_UUXQT)
  148.     chd $(RDIR);\
  149.     $(CC) -f=$(ODIR)/uuxqt $(CFLAGS) $(CSTART) $(_UUXQT) $(LIB) -m=3k
  150.  
  151. _READNEWS = readnews.r getuser.r makepath.r parse.r filemove.r fixline.r \
  152.         docmd.r newsutils.r getval.r getparam.r userparam.r gtime.r \
  153.         t2test.r forkshell.r mfgets.r strupr.r strdetab.r getenv.r strdup.r \
  154.         getdirs.r termio.r pwent.r
  155.  
  156. readnews: $(_READNEWS)
  157.     chd $(RDIR);\
  158.     merge $(_READNEWS) >- $(TMP)/readnews_r.r; \
  159.     $(CC) -f=$(ODIR)/readnews $(CFLAGS) $(CSTART) $(TMP)/readnews_r.r \
  160.           $(LIB) -m=4k; \
  161.     del $(TMP)/readnews_r.r
  162.  
  163. _POSTNEWS = postnews.r getuser.r maketemp.r getseq.r findent.r \
  164.         getsys.r docmd.r fixline.r filemove.r genseq.r getparam.r \
  165.         userparam.r parse.r t2test.r fixperms.r gtime.r date822.r mfgets.r \
  166.         strdetab.r getenv.r strdup.r getdirs.r getopt.r termio.r nmload.r \
  167.         pwent.r
  168.  
  169. postnews: $(_POSTNEWS)
  170.     chd $(RDIR);\
  171.     merge $(_POSTNEWS) >- $(TMP)/postnews_r.r; \
  172.     $(CC) -f=$(ODIR)/postnews $(CFLAGS) $(CSTART) $(TMP)/postnews_r.r $(LIB) \
  173.           -m=4k; \
  174.     del $(TMP)/postnews_r.r
  175.  
  176. _EXPIRE = expire.r expgroup.r makepath.r parse.r newsutils.r gtime.r \
  177.         filemove.r strupr.r mfgets.r strdetab.r strdup.r getdirs.r getopt.r \
  178.         getenv.r
  179.  
  180. expire: $(_EXPIRE)
  181.     chd $(RDIR);\
  182.     $(CC) -f=$(ODIR)/expire $(CFLAGS) $(CSTART) $(_EXPIRE) $(LIB) -m=2k
  183.  
  184. _SUBSCRIBE = subscribe.r filemove.r mfgets.r getenv.r pwent.r strdup.r
  185.  
  186. subscribe: $(_SUBSCRIBE)
  187.     chd $(RDIR);\
  188.     $(CC) -f=$(ODIR)/subscribe $(CFLAGS) $(CSTART) $(_SUBSCRIBE) $(LIB) -m=1k
  189.  
  190. _UNSUBSCRIBE = unsubscribe.r filemove.r mfgets.r getenv.r pwent.r strdup.r
  191.  
  192. unsubscribe: $(_UNSUBSCRIBE)
  193.     chd $(RDIR);\
  194.     $(CC) -f=$(ODIR)/unsubscribe $(CFLAGS) $(CSTART) $(_UNSUBSCRIBE) $(LIB) \
  195.           -m=1k
  196.  
  197. _UULOG = uulog.r getopt.r getenv.r strdup.r mfgets.r
  198.  
  199. uulog: $(_UULOG)
  200.     chd $(RDIR);\
  201.     $(CC) -f=$(ODIR)/uulog $(CFLAGS) $(CSTART) $(_UULOG) $(LIB) -m=1k
  202.  
  203. _UUCLEAN = uuclean.r getparam.r parse.r docmd.r maketemp.r mfgets.r \
  204.            gtime.r filemove.r date822.r setuser.r getval.r getenv.r \
  205.            strdup.r getdirs.r getopt.r pwent.r
  206.  
  207. uuclean: $(_UUCLEAN)
  208.     chd $(RDIR);\
  209.     $(CC) -f=$(ODIR)/uuclean $(CFLAGS) $(CSTART) $(_UUCLEAN) $(LIB) -m=4k
  210.  
  211. _UUSTAT = uustat.r
  212.  
  213. uustat: $(_UUSTAT)
  214.     chd $(RDIR);\
  215.     $(CC) -f=$(ODIR)/uustat $(CFLAGS) $(CSTART) $(_UUSTAT) $(LIB) -m=1k
  216.  
  217. _UUCP = uucp.r getuser.r getparam.r parse.r genseq.r fixperms.r maketemp.r \
  218.         docmd.r mfgets.r gtime.r getenv.r strdup.r getdirs.r pwent.r
  219.  
  220. uucp: $(_UUCP)
  221.     chd $(RDIR);\
  222.     $(CC) -f=$(ODIR)/uucp $(CFLAGS) $(CSTART) $(_UUCP) $(LIB) -m=2k
  223.  
  224. _UUDECODE = uudecode.r
  225.  
  226. uudecode: $(_UUDECODE)
  227.     chd $(RDIR);\
  228.     $(CC) -f=$(ODIR)/uudecode $(CFLAGS) $(CSTART) $(_UUDECODE) $(LIB) -m=1k
  229.  
  230. _UUENCODE = uuencode.r
  231.  
  232. uuencode: $(_UUENCODE)
  233.     chd $(RDIR);\
  234.     $(CC) -f=$(ODIR)/uuencode $(CFLAGS) $(CSTART) $(_UUENCODE) $(LIB) -m=1k
  235.  
  236. _CHOWN = chown.r pwent.r
  237.  
  238. chown: $(_CHOWN)
  239.     chd $(RDIR);\
  240.     $(CC) -f=$(ODIR)/chown $(CFLAGS) $(CSTART) $(_CHOWN) $(LIB)
  241.  
  242. _WHOAMI = whoami.r pwent.r
  243.  
  244. whoami: $(_WHOAMI)
  245.     chd $(RDIR);\
  246.     $(CC) -f=$(ODIR)/whoami $(CFLAGS) $(CSTART) $(_WHOAMI) $(LIB) -m=1k
  247.  
  248. _FIXTEXT = fixtext.r fixline.r strdetab.r mfgets.r
  249.  
  250. fixtext: $(_FIXTEXT)
  251.     chd $(RDIR);\
  252.     $(CC) -f=$(ODIR)/fixtext $(CFLAGS) $(CSTART) $(_FIXTEXT) $(LIB)
  253.  
  254. _CNVRTMAIL = cnvrtmail.r docmd.r fixperms.r gtime.r strupr.r getval.r \
  255.              mfgets.r filemove.r getenv.r parse.r pwent.r strdup.r
  256.  
  257. cnvrtmail: $(_CNVRTMAIL)
  258.     chd $(RDIR);\
  259.     $(CC) -f=$(ODIR)/cnvrtmail $(CFLAGS) $(CSTART) $(_CNVRTMAIL) $(LIB) -m=4k
  260.  
  261. _LOGIN = login.r parse.r fixperms.r pwent.r getenv.r strdup.r
  262.  
  263. login: $(_LOGIN)
  264.     chd $(RDIR);\
  265.     $(CC) -f=$(ODIR)/login $(CFLAGS) $(CSTART) $(_LOGIN) $(LIB) -m=1k
  266.  
  267. _ADDUSER = adduser.r strdetab.r getenv.r strdup.r termio.r mfgets.r pwent.r
  268.  
  269. adduser: $(_ADDUSER)
  270.     chd $(RDIR);\
  271.     $(CC) -f=$(ODIR)/adduser $(CFLAGS) $(CSTART) $(_ADDUSER) $(LIB) -m=1k
  272.  
  273. _UUSETUP = uusetup.r getdevices.r parse.r strupr.r mfgets.r termio.r
  274.  
  275. uusetup: $(_UUSETUP)
  276.     chd $(RDIR);\
  277.     $(CC) -f=$(ODIR)/uusetup $(CFLAGS) $(CSTART) $(_UUSETUP) $(LIB) -m=1k
  278.  
  279. _FILESERV = fileserv.r getparam.r getdirs.r strdup.r mfgets.r getval.r \
  280.     maketemp.r filemove.r docmd.r gtime.r date822.r getseq.r fixperms.r \
  281.     parse.r getenv.r
  282.  
  283. fileserv: $(_FILESERV)
  284.     chd $(RDIR);\
  285.     $(CC) -f=$(ODIR)/fileserv $(CFLAGS) $(CSTART) $(_FILESERV) $(LIB) -m=3k
  286.  
  287. _UUNAME = uuname.r parse.r mfgets.r
  288.  
  289. uuname: $(_UUNAME)
  290.     chd $(RDIR);\
  291.     $(CC) -f=$(ODIR)/uuname $(CFLAGS) $(CSTART) $(_UUNAME) $(LIB)
  292.  
  293. #
  294. # Dependencies between .c and .h files
  295. #
  296. uucico.r: uucico.c uucp.h proto.h os_misc.h uucico.h
  297. findmach.r: findmach.c uucp.h proto.h os_misc.h uucico.h
  298. findline.r: findline.c uucp.h proto.h os_misc.h
  299. findent.r: findent.c uucp.h proto.h os_misc.h
  300. chksched.r: chksched.c uucp.h proto.h os_misc.h uucico.h
  301. finddev.r: finddev.c uucp.h proto.h os_misc.h
  302. openport.r: openport.c uucp.h proto.h os_misc.h uucico.h
  303. openuucp.r: openuucp.c uucp.h proto.h os_misc.h uucico.h
  304. gproto.r: gproto.c uucp.h proto.h os_misc.h uucico.h
  305. dumpcode.r: dumpcode.c uucp.h proto.h os_misc.h
  306. closeuucp.r: closeuucp.c uucp.h proto.h os_misc.h uucico.h
  307. connect.r: connect.c uucp.h proto.h os_misc.h uucico.h
  308. findwork.r: findwork.c uucp.h proto.h os_misc.h uucico.h
  309. filexfer.r: filexfer.c uucp.h proto.h os_misc.h uucico.h
  310. docmd.r: docmd.c uucp.h proto.h os_misc.h
  311. getsys.r: getsys.c uucp.h proto.h os_misc.h
  312. getparam.r: getparam.c uucp.h proto.h os_misc.h uucico.h
  313. getopt.r: getopt.c getopt.h
  314. dotilde.r: dotilde.c uucp.h proto.h os_misc.h
  315. userparam.r: userparam.c uucp.h proto.h os_misc.h
  316. doalias.r: doalias.c uucp.h proto.h os_misc.h
  317. mail.r: mail.c uucp.h proto.h os_misc.h mail.h
  318. recvmail.r: recvmail.c uucp.h proto.h os_misc.h mail.h
  319. sendmail.r: sendmail.c uucp.h proto.h os_misc.h mail.h
  320. mailx.r: mail.c uucp.h proto.h os_misc.h mail.h
  321. recvmail.r: recvmail.c uucp.h proto.h os_misc.h mail.h
  322. rmail.r: rmail.c uucp.h proto.h os_misc.h
  323. genseq.r: genseq.c uucp.h proto.h os_misc.h
  324. rnews.r: rnews.c uucp.h proto.h os_misc.h rnews.h mbuf.h getopt.h
  325. groups.r: groups.c uucp.h proto.h os_misc.h rnews.h mbuf.h
  326. procbatch.r: procbatch.c uucp.h proto.h os_misc.h rnews.h mbuf.h
  327. xatol.r: xatol.c
  328. mbuf.r: mbuf.c mbuf.h
  329. openarts.r: openarts.c uucp.h proto.h os_misc.h rnews.h mbuf.h
  330. procart.r: procart.c uucp.h proto.h os_misc.h rnews.h mbuf.h
  331. fixref.r: fixref.c
  332. log.r: log.c uucp.h proto.h os_misc.h
  333. validuser.r: validuser.c uucp.h proto.h os_misc.h
  334. uuxqt.r: uuxqt.c uucp.h proto.h os_misc.h
  335. findxwork.r: findxwork.c uucp.h proto.h os_misc.h
  336. readnews.r: readnews.c uucp.h proto.h os_misc.h
  337. newsutils.r: newsutils.c uucp.h proto.h os_misc.h
  338. postnews.r: postnews.c uucp.h proto.h os_misc.h
  339. expire.r: expire.c uucp.h proto.h os_misc.h
  340. expgroup.r: expgroup.c uucp.h proto.h os_misc.h
  341. subscribe.r: subscribe.c uucp.h proto.h os_misc.h
  342. unsubscribe.r: unsubscribe.c uucp.h proto.h os_misc.h
  343. uulog.r: uulog.c uucp.h proto.h os_misc.h
  344. uuclean.r: uuclean.c uucp.h proto.h os_misc.h
  345. uustat.r: uustat.c uucp.h proto.h os_misc.h
  346. uucp.r: uucp.c uucp.h proto.h os_misc.h
  347. cnvrtmail.r: cnvrtmail.c uucp.h proto.h os_misc.h
  348. login.r: login.c uucp.h proto.h os_misc.h
  349. chown.r: chown.c uucp.h proto.h os_misc.h
  350. adduser.r: adduser.c uucp.h proto.h os_misc.h
  351. uusetup.r: uusetup.c uucp.h proto.h os_misc.h uusetup.h
  352. getdevices.r: getdevices.c uucp.h proto.h os_misc.h uusetup.h
  353. getenv.r: getenv.c uucp.h proto.h os_misc.h
  354. getseq.r: getseq.c uucp.h proto.h os_misc.h
  355. maketemp.r: maketemp.c uucp.h proto.h os_misc.h
  356. forkhsell.r: forkshell.c uucp.h proto.h os_misc.h
  357. setuser.r: setuser.c uucp.h proto.h os_misc.h
  358. filemove.r: filemove.c uucp.h proto.h os_misc.h
  359. fixpath.r: fixpath.c uucp.h proto.h os_misc.h
  360. makepath.r: makepath.c uucp.h proto.h os_misc.h
  361. getdirs.r: getdirs.c uucp.h proto.h os_misc.h
  362. fixline.r: fixline.c uucp.h proto.h os_misc.h
  363. getenv.r: getenv.c uucp.h proto.h os_misc.h
  364. fileserv.r: fileserv.c uucp.h proto.h os_misc.h
  365. osk.r: osk.c uucp.h proto.h os_misc.h
  366. pwent.r: pwent.c uucp.h proto.h os_misc.h
  367. uuname.r: uuname.c uucp.h proto.h os_misc.h
  368. parse.r: parse.c uucp.h proto.h os_misc.h
  369.