home *** CD-ROM | disk | FTP | other *** search
/ The Datafile PD-CD 5 / DATAFILE_PDCD5.iso / utilities / o / orbits / !orbits / Makefile < prev    next >
Makefile  |  1991-11-24  |  2KB  |  70 lines

  1. # Makefile for "Orbits".
  2. #
  3. # Copywrite (C) 1991 Neil Hoggarth
  4. #
  5. # The system variable C$Path should contain a comma seperated list of
  6. # directories where the C libraries reside. If this is not the case then
  7. # either make it so, or modify this file so that RISC_OSlib.o and stubs.o
  8. # are linked in from wherever they reside on your system. You make need to
  9. # modifiy this file slightly to get it to work with release 3 of the
  10. # compiler.
  11. #
  12. # This program is free software; you can redistribute it and/or modify
  13. # it under the terms of the GNU General Public License as published by
  14. # the Free Software Foundation; either version 1, or (at your option)
  15. # any later version.
  16. #
  17. # This program is distributed in the hope that it will be useful,
  18. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  19. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  20. # GNU General Public License for more details.
  21. #
  22. # You should have received a copy of the GNU General Public License
  23. # along with this program; if not, write to the Free Software
  24. # Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  25.  
  26. # Tools.
  27.  
  28. CC=cc
  29. LEX=flex
  30. YACC=bison
  31. LINK=link
  32.  
  33. # Flags.
  34.  
  35. CFLAGS=-throwback
  36.  
  37. # Rules.
  38.  
  39. targets : !RunImage orbits
  40.  
  41. !RunImage : RunImage.o
  42.   $(LINK) -o !RunImage RunImage.o C:RISC_OSlib.o C:ansilib.o
  43.   squeeze !RunImage
  44.  
  45. orbits : orbits.o orbpar.o orblex.o getopt.o
  46.   $(LINK) -o orbits orbits.o orbpar.o orblex.o getopt.o \
  47.                     C:RISC_OSlib.o C:stubs.o
  48.   squeeze orbits
  49.  
  50. RunImage.o : RunImage.c
  51.   $(CC) $(CFLAGS) -c RunImage.c
  52.  
  53. orbits.o : orbits.c
  54.   $(CC) $(CFLAGS) -c orbits.c
  55.  
  56. getopt.o : getopt.c
  57.    $(CC) $(CFLAGS) -c getopt.c
  58.  
  59. orbpar.o : orbpar.c
  60.    $(CC) $(CFLAGS) -c orbpar.c
  61.  
  62. orblex.o : orblex.c orbpar.h
  63.   $(CC) $(CFLAGS) -c orblex.c
  64.  
  65. orbpar.c orbpar.h : y.orbpar
  66.   $(YACC) -d y.orbpar
  67.  
  68. orblex.c : l.orblex
  69.   $(LEX) l.orblex
  70.