home *** CD-ROM | disk | FTP | other *** search
/ Power-Programmierung / CD2.mdf / gnu / djgpp / libsrc / bison / makefile.n next >
Encoding:
Makefile  |  1993-11-28  |  1.1 KB  |  46 lines

  1. # This file is generated from maketmpl by mm.c
  2. # This is file Maketmpl
  3. #
  4. # Copyright (C) 1993 DJ Delorie, 24 Kirsten Ave, Rochester NH 03867-2954
  5. #
  6. # This file is distributed under the terms listed in the document
  7. # "copying.dj", available from DJ Delorie at the address above.
  8. # A copy of "copying.dj" should accompany this file; if not, a copy
  9. # should be available from where this file was obtained.  This file
  10. # may not be distributed without a verbatim copy of "copying.dj".
  11. #
  12. # This file is distributed WITHOUT ANY WARRANTY; without even the implied
  13. # warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
  14. #
  15.  
  16. #
  17. # Makefile for libbison.a
  18. #
  19.  
  20. ENDOFLIST =
  21.  
  22. CFLAGS = -O2
  23.  
  24. OBJS = \
  25.     $(ODIR)/main.o \
  26.     $(ODIR)/yyerror.o \
  27.     $(ODIR)/yylex.o \
  28.     $(ENDOFLIST)
  29.  
  30. ../../lib/libbison$(PS).a : $(ODIR) $(OBJS)
  31.     -rm $@
  32.     ar rs $@ $(ODIR)/*.o
  33.  
  34. $(ODIR) :
  35.     md $(ODIR)
  36.  
  37. $(ODIR)/main.o : src/main.c
  38.     gcc $(PG) $(CFLAGS) -c src/main.c -o $(ODIR)/main.o
  39.  
  40. $(ODIR)/yyerror.o : src/yyerror.c
  41.     gcc $(PG) $(CFLAGS) -c src/yyerror.c -o $(ODIR)/yyerror.o
  42.  
  43. $(ODIR)/yylex.o : src/yylex.c
  44.     gcc $(PG) $(CFLAGS) -c src/yylex.c -o $(ODIR)/yylex.o
  45.  
  46.