home *** CD-ROM | disk | FTP | other *** search
/ ARM Club 3 / TheARMClub_PDCD3.iso / hensa / programming / make_1 / !make_ReadMe < prev   
Encoding:
Text File  |  1994-10-20  |  2.7 KB  |  79 lines

  1. The History of this Make Application:
  2.  
  3. 1. While hunting around info-server@ukc, I came across a set of files which
  4. claimed to be a Public Domain Make implementation. I downloaded these, and
  5. set about ANSI-fying them. I think I am about 95% of the way there.
  6.  
  7. The thing compiles, after I tacked on the file file.c , which impersonates
  8. some of the Unix standard calls. My major problem was converting from 
  9. Acorn datestamps - did you know that if ADFS floppies had been used by
  10. Queen Victoria in the last years of her reign, they would have had a valid 
  11. datestamp ! - to Unix datestamps, starting in 1970. I seem to have got the
  12. subtraction of the monster numbers nearly right - it can tell between 
  13. now and an hour ago ...
  14.  
  15. Just for frills, and to make it similar to Acorn make, the thing throws out
  16. a file called !make , which it execs before it dies. To make it more frilly,
  17. I added the -o switch which permits the !make file to be called whatever you like.
  18.  
  19. I then decided to make it RISC OS 'compatible', and discovered that 
  20. there is no ?? system variable giving ' this is the path to the directory containing the file being worked on'. Before you scream, this can of course be
  21. extracted from the filename passed as parameter 0 when you double click the 
  22. makefile.
  23.  
  24. I have assigned filetype 400 to makefiles because its a silly 
  25. choice.
  26.   
  27. As you will see when you look in the !boot and !run files , you can either
  28. type the make command into the CLI , or double click the makefile.
  29. I have also added the -@ makefilename parameter which tells make it's
  30. running as a
  31. double-clicked application. Then it has to get the path name of everything
  32. by looking at the makefile path name.  
  33.  
  34.  
  35. make expects the makefile to be just above the .c and .o directories.
  36.  
  37.         |
  38.         ------------------------------------
  39.         |             |      |        |
  40.      makefile         c      o      thing to make
  41.      type 400         |      |
  42.                    sources  objects
  43.                                    
  44.  
  45.  
  46. Things you must have in the !make directory: (Usually placed at $ level)
  47.  
  48. !Sprites
  49. !Runimage
  50. !Boot
  51. !Run
  52. make
  53.  
  54. (you can delete the rest once you have built make )
  55.            
  56. dont forget to settype makefile 400 or settype makefile makefile -
  57. you can have more than one makefile with different targets in the same
  58. directory , or use it from the CLI for setting options etc.
  59.  
  60.  
  61.  
  62.  
  63.  
  64. DISCLAIMER:
  65.  
  66.  
  67. THIS SOFWARE EXISTS ONLY THANKS TO THE GENEROSITY OF ANOTHER FAR MORE
  68. COMPETENT PROGRAMMER WHO PLACED THEIR MAKE INTO THE PUBLIC DOMAIN.
  69.                                     
  70. NONE OF THE REALLY DIFFICULT BITS ARE MY WORK, JUST THE EVENINGS OF
  71. FRUSTRATION GETTING IT TO GO ON THE ARCHIMEDES.
  72.  
  73. I hope you enjoy it..  :-)
  74.  
  75. I do now I've got it going.
  76.  
  77.  
  78.  
  79.