home *** CD-ROM | disk | FTP | other *** search
/ Amiga Elysian Archive / AmigaElysianArchive.iso / prog / utils / sercli.shr / sercli / src / rcs / dmakefile,v < prev    next >
Encoding:
Text File  |  1993-06-16  |  9.8 KB  |  565 lines

  1. head    1.13;
  2. access;
  3. symbols
  4.     sercli_v1_10:1.13
  5.     sercli_v1_9:1.9
  6.     sercli_v1_8:1.4
  7.     sercli_v1_7:1.3
  8.     sercli_v1_6:1.2
  9.     sercli_v1_5:1.1;
  10. locks
  11.     rkr:1.13;
  12. comment    @##  @;
  13.  
  14.  
  15. 1.13
  16. date    93.06.16.23.34.36;    author rkr;    state Exp;
  17. branches;
  18. next    1.12;
  19.  
  20. 1.12
  21. date    93.06.16.20.10.29;    author rkr;    state Exp;
  22. branches;
  23. next    1.11;
  24.  
  25. 1.11
  26. date    93.06.14.23.33.07;    author rkr;    state Exp;
  27. branches;
  28. next    1.10;
  29.  
  30. 1.10
  31. date    93.06.10.16.42.28;    author rkr;    state Exp;
  32. branches;
  33. next    1.9;
  34.  
  35. 1.9
  36. date    93.06.06.13.22.11;    author rkr;    state Exp;
  37. branches;
  38. next    1.8;
  39.  
  40. 1.8
  41. date    93.06.06.13.19.33;    author rkr;    state Exp;
  42. branches;
  43. next    1.7;
  44.  
  45. 1.7
  46. date    93.06.06.12.38.53;    author rkr;    state Exp;
  47. branches;
  48. next    1.6;
  49.  
  50. 1.6
  51. date    93.06.06.10.38.37;    author rkr;    state Exp;
  52. branches;
  53. next    1.5;
  54.  
  55. 1.5
  56. date    93.06.06.10.12.50;    author rkr;    state Exp;
  57. branches;
  58. next    1.4;
  59.  
  60. 1.4
  61. date    91.12.20.09.44.22;    author rkr;    state Exp;
  62. branches;
  63. next    1.3;
  64.  
  65. 1.3
  66. date    91.12.10.02.48.47;    author rkr;    state Exp;
  67. branches;
  68. next    1.2;
  69.  
  70. 1.2
  71. date    91.12.02.10.52.04;    author rkr;    state Exp;
  72. branches;
  73. next    1.1;
  74.  
  75. 1.1
  76. date    91.11.28.08.25.38;    author rkr;    state Exp;
  77. branches;
  78. next    ;
  79.  
  80.  
  81. desc
  82. @sercli is a program to permit shell-like interface to the serial port,
  83. while also permitting easy config- and run-time-control over the way the
  84. serial port (or even _which_ serial port) is used.
  85.  
  86. @
  87.  
  88.  
  89. 1.13
  90. log
  91. @Added per-file copyright notice, as suggested by GPL.
  92.  
  93. When making the `rcs' target, rcsdiff the working file against the
  94. last checked-in version.
  95.  
  96. Fixed a minor stupidity with name/version DMake vars.
  97. @
  98. text
  99. @##  $Source: WB_2.1:homes/rkr/prog/sercli/src/RCS/dmakefile,v $
  100. ##  $Author: rkr $
  101. ##  $Revision: 1.12 $
  102. ##  $Locker: rkr $
  103. ##  $State: Exp $
  104. ##  $Date: 1993/06/16 20:10:29 $
  105. ##
  106. ##  sercli (an Amiga .device <-> FIFO interface tool)
  107. ##  Copyright (C) 1993  Richard Rauch
  108. ##
  109. ##  See /doc/sercli.doc and /COPYING for use and distribution license.
  110. ##
  111.  
  112. ##  Can't easily make it all -mRR, right now, since there is no @@BeginIO()
  113. ##  for register arg entry (also fifo stuff doesn't look like it will
  114. ##  support it).
  115. ##
  116.  
  117.  
  118. ##  $(name) is relatively constant
  119. ##  $(version) we _could_ export to another file, but
  120. ##  $(symbol) is closely tied to $(version), and _has_ to be available here.
  121. ##  (I suppose we might get away with using an ENV/shell var...)
  122. ##
  123. name    = sercli
  124. version = v1.10
  125. symbol    = sercli_v1_10
  126.  
  127.  
  128. ##  od         == temp place to put objects during compilation
  129. ##  exe      == The primary target of all of this
  130. ##  srcs     == Compilables (given to the C compiler)
  131. ##  objs     == Intended output of the C compiler
  132. ##  hdrs     == list of all header files (#?.h) that $(srcs) need
  133. ##
  134. od    = dtmp:sercli/
  135. exe    = /bin/sercli
  136. srcs    = serial.c sercli.c misc.c config.c sercli-config.c rexx.c keywords.c errors.c
  137. objs    = $(srcs:"*.c":"$(od)%1.o")
  138. hdrs    = config.h keywords.h sercli-config.h ser_supp.h misc.h rexx.h defs.h errors.h fifo_pragmas.h fifo.h
  139.  
  140.  
  141. ##  allfiles == every non-changes file that is manually written in this dir
  142. ##  rcsfiles == set of RCS files for $(allfiles)
  143. ##
  144. allfiles= $(srcs) $(hdrs) dmakefile
  145. rcsfiles= $(allfiles:"*":"rcs/%1,v")
  146.  
  147.  
  148. ##  chgs     == the changes list (in changes/ relative to this dir)
  149. ##  ch_dummy == non-existant files; $(chgs) are all always out of date
  150. ##  ch_text  == end-user changes doc (needs trimming)
  151. ##
  152. chgs    = $(allfiles:"*":"changes/%1")
  153. ch_dummy= $(chgs:"*":"no-such-file-%1")
  154. ch_text = /doc/changes.text
  155.  
  156.  
  157. cflags    = -no-env -r -2.0 -// -c -proto
  158. lflags    = -no-env -r -2.0
  159. comp    = dcc $(cflags)
  160. link    = dcc $(lflags)
  161.  
  162.  
  163. ##  Make everything
  164. ##
  165. all : version.h $(exe) tags
  166.  
  167.  
  168. ##  Clear out object code...(and executable?)
  169. ##
  170. clean :
  171.     delete $(od)#?
  172.  
  173.  
  174. ##  To make a release, we pro'ly want to update the changes text and do a
  175. ##  full RCS checkin/symbolic bind.  The order is important since the RCS
  176. ##  target can find straglers that haven't been checked in, so it Types the
  177. ##  appropriate changes file before doing the ci.
  178. ##
  179. release : changes rcs
  180.  
  181.  
  182. ##  Optional; update this when making a release.
  183. ##
  184. changes : $(ch_dummy) $(ch_text)
  185.     echo "*n--  Finished updating $(ch_text).*N    You may wish to prune it manually."
  186.  
  187.  
  188. ##    rx addlog t:version_changes
  189. ##
  190. $(ch_text) :
  191.     echo >  t:version $(name) $(version) ($(symbol))
  192.     echo >> t:version ""
  193.     join t:version t:changes /doc/changes.text as t:u2
  194.     copy t:u2 /doc/changes.text
  195.     join t:version t:changes as t:version_changes
  196.     delete t:version t:changes t:u2 t:version_changes
  197.  
  198.  
  199. ##  Update $(ch_text) (log of changes)
  200. ##
  201. $(ch_dummy) : $(chgs)
  202.     type >> t:changes %(right)
  203.     echo >> t:changes ""
  204.     echo >  %(right) noline
  205.  
  206.  
  207. ##  Create version.h file...
  208. ##
  209. version.h :
  210.     echo >  version.h "#define NAME    *"$(name)*""
  211.     echo >> version.h "#define VERSION *"$(version)*""
  212.  
  213.  
  214. ##  make sure all are checked in, then set the RCS symbolic name
  215. ##
  216. rcs : $(rcsfiles)
  217.     rcs -N$(symbol): rcs/#?,v
  218.  
  219.  
  220. ##  For each file in $(allfiles), make sure it's checked in.  changes/#?
  221. ##  files FORMERLY were used to to fetch a list of changed info.  Now that
  222. ##  checkins are done independant of this makefile, the work is to simply
  223. ##  make sure the latest version of each file is checked in.
  224. ##
  225. $(rcsfiles) : $(allfiles)
  226.     echo %(right) appears newer than its RCS file.
  227.     rlog -r %(right)
  228.     type changes/%(right)
  229.     rcsdiff %(right) %(left)
  230.     ci -l %(right)
  231.  
  232.  
  233. ##  Can't do this w/o ctags
  234. ##    delete tags
  235. ##
  236. tags : $(srcs)
  237.     echo "No tags to do this: ctags $(srcs)"
  238.  
  239.  
  240. ##  $(link) -o $(exe) $(objs) -l fifos -l rexxglue.o
  241. $(exe) : $(objs)
  242.     $(link) -o $(exe) $(objs) -l fifos
  243.  
  244.  
  245. $(objs) : $(srcs)
  246.     $(comp) -o %(left) %(right)
  247. @
  248.  
  249.  
  250. 1.12
  251. log
  252. @Made `rcs' target do an `rlog -r' to help clarify what's changed.
  253.  
  254. Perhaps an RCS diff would be better?
  255. @
  256. text
  257. @d3 1
  258. a3 1
  259. ##  $Revision: 1.11 $
  260. d6 1
  261. a6 1
  262. ##  $Date: 1993/06/14 23:33:07 $
  263. d8 6
  264. d93 1
  265. a93 1
  266.     echo >  t:version "$name $version ($(symbol))"
  267. d131 1
  268. @
  269.  
  270.  
  271. 1.11
  272. log
  273. @Quoted ctags command (to hide `do' from Echo); should hunt down
  274. a ctags util eventually...
  275. @
  276. text
  277. @d3 1
  278. a3 1
  279. ##  $Revision: 1.10 $
  280. d6 1
  281. a6 1
  282. ##  $Date: 1993/06/10 16:42:28 $
  283. d123 1
  284. @
  285.  
  286.  
  287. 1.10
  288. log
  289. @Created `clean' target; removed ref. to `rexxglue.o'.
  290. @
  291. text
  292. @d3 1
  293. a3 1
  294. ##  $Revision: 1.9 $
  295. d6 1
  296. a6 1
  297. ##  $Date: 1993/06/06 13:22:11 $
  298. d131 1
  299. a131 1
  300.     echo No tags to do this: ctags $(srcs)
  301. @
  302.  
  303.  
  304. 1.9
  305. log
  306. @The Added `:' in -N$(symbol): RCS arg.  Hopefull that will help.
  307. @
  308. text
  309. @d3 1
  310. a3 1
  311. ##  $Revision: 1.6 $
  312. d6 1
  313. a6 1
  314. ##  $Date: 1993/06/06 10:38:37 $
  315. d13 6
  316. d20 2
  317. a21 2
  318. version = v1.9
  319. symbol    = sercli_v1_9
  320. d23 7
  321. d35 5
  322. d41 7
  323. d51 4
  324. a54 3
  325. rcsfiles= $(allfiles:"*":"rcs/%1,v")
  326. cflags    = -no-env -r -// -c -proto
  327. lflags    = -no-env -r
  328. d58 3
  329. d64 11
  330. d77 1
  331. d83 1
  332. d85 1
  333. d87 1
  334. a87 1
  335.     echo >  t:version "$(name) $(version) ($(symbol))"
  336. d95 1
  337. a95 1
  338. ##  Update the $(ch_text) file (text describing all changes)
  339. d103 2
  340. d106 2
  341. a107 2
  342.     echo >  version.h "#define NAME    \"$(name)\""
  343.     echo >> version.h "#define VERSION \"$(version)\""
  344. d110 1
  345. a110 7
  346. ##  rcs : $(rcsfiles)
  347. ##    echo >    t:version "$(name) $(version) ($(symbol))"
  348. ##    echo >> t:version
  349. ##    join t:version t:changes /doc/changes.text as t:u2
  350. ##    copy t:u2 /doc/changes.text
  351. ##    join t:version t:changes as t:version_changes
  352. ##    delete t:version t:changes t:u2 t:version_changes
  353. d115 1
  354. d126 1
  355. d128 2
  356. a130 1
  357.     delete tags
  358. d133 2
  359. d136 2
  360. a137 1
  361.     $(link) -o $(exe) $(objs) -l fifos -l rexxglue.o
  362. a140 1
  363.  
  364. @
  365.  
  366.  
  367. 1.8
  368. log
  369. @Testing dmake `rcs'; also removed tags & changed to symbolic v1.9
  370. @
  371. text
  372. @d74 1
  373. a74 1
  374.     rcs -N$(symbol) rcs/#?,v
  375. @
  376.  
  377.  
  378. 1.7
  379. log
  380. @RCS maint may be a little cleaner.
  381.  
  382. Also created `changes' target to update the /doc/changes.text file.
  383. @
  384. text
  385. @a31 1
  386.  
  387. d86 1
  388. d89 1
  389. a89 1
  390.     ctags $(srcs)
  391. @
  392.  
  393.  
  394. 1.6
  395. log
  396. @I think (HOPE) I fixed the dmakefile.
  397. @
  398. text
  399. @d1 1
  400. a1 1
  401. ##  $Source: WB_2.1:ho/rcs/dmakefile,v $
  402. d3 2
  403. a4 2
  404. ##  $Revision: 1.4 $
  405. ##  $Locker:  $
  406. d6 1
  407. a6 1
  408. ##  $Date: 1991/12/20 09:44:22 $
  409. d20 1
  410. a20 1
  411. objs    = $(srcs:"*.c":"$(od)*.o")
  412. d23 4
  413. a26 2
  414. chgs    = $(allfiles:"*":"*.changes")
  415. rcsfiles= $(allfiles:"*":"rcs/*,v")
  416. d35 26
  417. a71 1
  418. ##    rx addlog t:version_changes
  419. a73 1
  420.  
  421. a74 6
  422.     echo >  t:version "$(name) $(version) ($(symbol))"
  423.     echo >> t:version
  424.     join t:version t:changes /doc/changes.text as t:u2
  425.     copy t:u2 /doc/changes.text
  426.     join t:version t:changes as t:version_changes
  427.     delete t:version t:changes t:u2 t:version_changes
  428. d77 4
  429. a80 5
  430.  
  431. ##  $(rcsfiles) : $(allfiles)
  432. ##    echo >> changes/%(right)
  433. ##    type >> t:changes changes/%(right)
  434. ##    echo >    changes/%(right) noline
  435. a81 1
  436.  
  437. d83 3
  438. a85 5
  439.     echo >> changes/%(right)
  440.     type >> t:changes changes/%(right)
  441.     ci     <  changes/%(right) -l %(right)
  442.     echo >  changes/%(right) noline
  443.  
  444. @
  445.  
  446.  
  447. 1.5
  448. log
  449. @Removed `rx addlog' ref.
  450. @
  451. text
  452. @d55 1
  453. d57 7
  454. d67 1
  455. a67 1
  456.     ci     <  changes/%(right) -f -N$(symbol) -l %(right)
  457. @
  458.  
  459.  
  460. 1.4
  461. log
  462. @*** empty log message ***
  463. @
  464. text
  465. @d1 1
  466. a1 1
  467. ##  $Source: Workbench:personal/rkr/prog/sercli/src/rcs/dmakefile,v $
  468. d3 2
  469. a4 2
  470. ##  $Revision: 1.2 $
  471. ##  $Locker: rkr $
  472. d6 1
  473. a6 1
  474. ##  $Date: 91/12/02 10:42:41 $
  475. d14 2
  476. a15 2
  477. version = v1.8
  478. symbol    = sercli_v1_8
  479. d37 11
  480. a53 1
  481.     rx addlog t:version_changes
  482. @
  483.  
  484.  
  485. 1.3
  486. log
  487. @**  Made sercli "startup-banner" automatically reflect version set in
  488.     dmakefile, and also embed the date-compiled.
  489.  
  490.  
  491. @
  492. text
  493. @d14 2
  494. a15 2
  495. version = v1.7
  496. symbol    = sercli_v1_7
  497. d38 1
  498. a38 1
  499.     echo >> t:version $(name)
  500. d42 3
  501. a44 4
  502.     delete t:version
  503.     delete t:changes
  504.     rx addlog t:u2
  505.     delete t:u2
  506. @
  507.  
  508.  
  509. 1.2
  510. log
  511. @**  Made dmakefile support for rcs more complete.
  512. @
  513. text
  514. @d13 3
  515. a15 1
  516. name    = sercli_v1_6
  517. d25 1
  518. a25 1
  519. cflags    = -no-env -r -//
  520. d27 1
  521. a27 1
  522. comp    = dcc $(cflags) -c -proto
  523. d31 1
  524. a31 1
  525. all : $(exe) tags
  526. d33 4
  527. d44 2
  528. a45 2
  529.     rx addlog t:u2.text
  530.     delete t:u2.text
  531. d48 4
  532. a51 4
  533.     echo >> %(right).changes noline
  534.     type >> t:changes %(right).changes
  535.     ci     < %(right).changes -f -N$(name) -l %(right)
  536.     echo > %(right).changes noline
  537. @
  538.  
  539.  
  540. 1.1
  541. log
  542. @Initial revision
  543. @
  544. text
  545. @d1 6
  546. a6 6
  547. ##  $Source$
  548. ##  $Author$
  549. ##  $Revision$
  550. ##  $Locker$
  551. ##  $State$
  552. ##  $Date$
  553. d13 1
  554. a13 1
  555. name    = sercli_v1_5
  556. d21 1
  557. d29 1
  558. a29 1
  559. all : $(exe) tags rcs
  560. d32 8
  561. d42 5
  562. a46 1
  563.     ci -N$(name) -l %(right)
  564. @
  565.