home *** CD-ROM | disk | FTP | other *** search
Makefile | 1991-11-24 | 1.8 KB | 70 lines |
- # Makefile for "Orbits".
- #
- # Copywrite (C) 1991 Neil Hoggarth
- #
- # The system variable C$Path should contain a comma seperated list of
- # directories where the C libraries reside. If this is not the case then
- # either make it so, or modify this file so that RISC_OSlib.o and stubs.o
- # are linked in from wherever they reside on your system. You make need to
- # modifiy this file slightly to get it to work with release 3 of the
- # compiler.
- #
- # This program is free software; you can redistribute it and/or modify
- # it under the terms of the GNU General Public License as published by
- # the Free Software Foundation; either version 1, or (at your option)
- # any later version.
- #
- # This program is distributed in the hope that it will be useful,
- # but WITHOUT ANY WARRANTY; without even the implied warranty of
- # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- # GNU General Public License for more details.
- #
- # You should have received a copy of the GNU General Public License
- # along with this program; if not, write to the Free Software
- # Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
-
- # Tools.
-
- CC=cc
- LEX=flex
- YACC=bison
- LINK=link
-
- # Flags.
-
- CFLAGS=-throwback
-
- # Rules.
-
- targets : !RunImage orbits
-
- !RunImage : RunImage.o
- $(LINK) -o !RunImage RunImage.o C:RISC_OSlib.o C:ansilib.o
- squeeze !RunImage
-
- orbits : orbits.o orbpar.o orblex.o getopt.o
- $(LINK) -o orbits orbits.o orbpar.o orblex.o getopt.o \
- C:RISC_OSlib.o C:stubs.o
- squeeze orbits
-
- RunImage.o : RunImage.c
- $(CC) $(CFLAGS) -c RunImage.c
-
- orbits.o : orbits.c
- $(CC) $(CFLAGS) -c orbits.c
-
- getopt.o : getopt.c
- $(CC) $(CFLAGS) -c getopt.c
-
- orbpar.o : orbpar.c
- $(CC) $(CFLAGS) -c orbpar.c
-
- orblex.o : orblex.c orbpar.h
- $(CC) $(CFLAGS) -c orblex.c
-
- orbpar.c orbpar.h : y.orbpar
- $(YACC) -d y.orbpar
-
- orblex.c : l.orblex
- $(LEX) l.orblex
-