home *** CD-ROM | disk | FTP | other *** search
- # Project: Draw
- # demonstration make file with explicit dependancies
- # dummy .o files are created to ensure make can work out what needs recompiling
- # a dummy target is created to indicate when the target is up to date.
- # a default suffix rule is used to specify that a .o thing is created from a
- # .ada thing. Note, this rule explicitly creates the .o file
- # Note. The library must already exist for the make file to work, but creation
- # of the library is not easily managed by the makefile.
- # The library can be created by making target 'demolib'
-
- Adacomp = adacomp -d -l demolib
- Adabind = adabind -l demolib
- Adaexec = adaexec -l demolib
- CC = cc -c -IC:
-
- .SUFFIXES: .o .ada
-
- .ada.o:; $(Adacomp) $<
- create $@
-
- test: o.random o.semaphor o.intio o.screenio o.maze o.new_maze \
- o.draw o.screen_io
- $(Adabind) -i screen_io.o -m draw
- create test
- echo type '$(Adaexec) -m draw' outside the desktop running in mode 0
-
- demolib:; $(Adacomp) -n random
- cdir o
-
- clean:; - wipe o ~cfr
- - wipe demolib ~cfr
-
- o.screen_io: c.screen_io
- $(CC) -o $@ c.$*
-
- o.screenio: ada.screenio o.semaphor o.intio
- $(Adacomp) screenio.ada
- create $@
-
- o.maze: ada.maze o.screenio
- $(Adacomp) $*
- create $@
-
- o.new_maze: ada.new_maze o.random o.maze
- $(Adacomp) new_maze.ada
- create $@
-
- o.draw: ada.draw o.maze o.screenio o.intio o.random
- $(Adacomp) $*
- create $@
-
-