home *** CD-ROM | disk | FTP | other *** search
/ RISC DISC 1 / RISC_DISC_1.iso / pd_share / code / ada / Examples / demos / makedraw next >
Encoding:
Text File  |  1994-10-15  |  1.3 KB  |  52 lines

  1. # Project: Draw
  2. # demonstration make file with explicit dependancies
  3. # dummy .o files are created to ensure make can work out what needs recompiling
  4. # a dummy target is created to indicate when the target is up to date.
  5. # a default suffix rule is used to specify that a .o thing is created from a
  6. # .ada thing. Note, this rule explicitly creates the .o file
  7. # Note. The library must already exist for the make file to work, but creation
  8. #       of the library is not easily managed by the makefile.
  9. #       The library can be created by making target 'demolib'
  10.  
  11. Adacomp = adacomp -d -l demolib
  12. Adabind = adabind -l demolib
  13. Adaexec = adaexec -l demolib
  14. CC = cc -c -IC:
  15.  
  16. .SUFFIXES:    .o .ada
  17.  
  18. .ada.o:;    $(Adacomp) $< 
  19.         create $@
  20.  
  21. test:    o.random o.semaphor o.intio o.screenio o.maze o.new_maze \
  22.     o.draw o.screen_io
  23.     $(Adabind) -i screen_io.o -m draw
  24.     create test
  25.     echo type '$(Adaexec) -m draw' outside the desktop running in mode 0
  26.  
  27. demolib:;    $(Adacomp) -n random
  28.         cdir o
  29.  
  30. clean:;    - wipe o ~cfr
  31.     - wipe demolib ~cfr
  32.  
  33. o.screen_io:    c.screen_io
  34.         $(CC) -o $@ c.$*
  35.  
  36. o.screenio:    ada.screenio o.semaphor o.intio 
  37.     $(Adacomp) screenio.ada
  38.     create $@
  39.  
  40. o.maze:    ada.maze o.screenio
  41.     $(Adacomp) $*
  42.     create $@
  43.  
  44. o.new_maze:    ada.new_maze o.random o.maze
  45.     $(Adacomp) new_maze.ada
  46.     create $@
  47.  
  48. o.draw:    ada.draw o.maze o.screenio o.intio o.random
  49.     $(Adacomp) $*
  50.     create $@
  51.  
  52.