home *** CD-ROM | disk | FTP | other *** search
/ ARM Club 3 / TheARMClub_PDCD3.iso / hensa / documentation / documents / a252tip2 < prev    next >
Internet Message Format  |  1999-04-27  |  2KB

  1. From: pcolmer@acorn.co.uk (Philip Colmer)
  2. Subject: Useful hints and tips #2: using !Make
  3. Date: 14 Jun 93 15:31:47 GMT
  4.  
  5. 1. Using Aasm
  6. -------------
  7.  
  8.  Having struggled for a while to get !Make to construct good makefiles
  9. which used Aasm as a tool, I thought I'd pass on the solution: don't put
  10. your AAsm sources in a directory called s.
  11.  
  12.  The reason for this is two-fold:
  13.  
  14.  1. It clashes with ObjAsm, so !Make struggles with the rule constructs
  15.  2. There seems to be a hard-wired association in !Make which means that
  16.     anything in a directory called s has to make something equivalent in a
  17.     directory called o.
  18.  
  19.  What you call your directory is up to you, but I would suggest something
  20. like x or z.
  21.  
  22. 2. Making everything with one target
  23. ------------------------------------
  24.  
  25.  Another useful thing to do if you have multiple targets under one project
  26. is to have another target which causes everything to be made in one go. To
  27. do this, follow this recipe:
  28.  
  29.  1. Quit !Make if it is currently loaded.
  30.  2. Load the make file into !Edit (or your favourite text editor).
  31.  3. After the line
  32.  
  33. # Final targets:
  34.  
  35. add
  36.  
  37. @.All:   Target1 Target2 Target3
  38.         Echo Target1 Target2 Target3
  39.  
  40. IMPORTANT!
  41.   There are three spaces between "@.All:" and "Target1".
  42.   There are eight spaces before "Echo".
  43.   Both lines end in a space.
  44.  
  45. Hopefully you will understand make files enough to know what to type in
  46. instead of Target1, Target2 and Target3 :-)
  47.  
  48.  4. Save the make file and double-click on it. If you have got it right,
  49.     everything should now make. If you haven't, double-check the spacing
  50.     and your typing.
  51.  
  52. ---------------------------------------------------------------------
  53. "Now, I realise that, technically speaking, that's only one flaw, but
  54. I thought that it was such a big one, it was worth mentioning twice."
  55.  
  56.  
  57.