home *** CD-ROM | disk | FTP | other *** search
/ InfoMagic Source Code 1993 July / THE_SOURCE_CODE_CD_ROM.iso / msdos / djgpp / libsrc / bison / makefile.n next >
Encoding:
Makefile  |  1992-10-29  |  1.2 KB  |  53 lines

  1. # This file is generated from maketmpl by mm.c
  2. # This is file Maketmpl
  3. #
  4. # Copyright (C) 1991 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. # History:4,12
  17. # Makefile for libbison.a
  18. #
  19. # This makefile is set up for use with GNUish MAKE
  20. #
  21.  
  22. LONGARGS = gcc:ar
  23.  
  24. VPATH = .;src
  25.  
  26. ENDOFLIST =
  27.  
  28. CFLAGS = -O2
  29.  
  30. LIB = ../../lib
  31.  
  32. $(ODIR)/%.o : %.s
  33.     gcc $(PG) $(CFLAGS) -c $< -o $(ODIR)/$*.o
  34.  
  35. $(ODIR)/%.o : %.c
  36.     gcc $(PG) $(CFLAGS) -c $< -o $(ODIR)/$*.o
  37.  
  38. $(ODIR)/%.o : %.cc
  39.     gcc $(PG) $(CFLAGS) -c $< -o $(ODIR)/$*.o
  40.  
  41. OBJS = \
  42.     $(ODIR)/main.o \
  43.     $(ODIR)/yyerror.o \
  44.     $(ODIR)/yylex.o \
  45.     $(ENDOFLIST)
  46.  
  47. $(LIB)/libbison$(PS).a : $(ODIR) $(OBJS)
  48.     -rm $@
  49.     ar rvs $@ $(ODIR)/*.o
  50.  
  51. $(ODIR) :
  52.     md $(ODIR)
  53.