home *** CD-ROM | disk | FTP | other *** search
/ Frozen Fish 1: Amiga / FrozenFish-Apr94.iso / bbs / alib / d1xx / d105 / bison.lha / Bison / Makefile.unix < prev    next >
Makefile  |  1987-10-25  |  2KB  |  84 lines

  1. CC =        cc
  2. #CFLAGS =    -g
  3.  
  4. LPRFLAGS =    
  5.  
  6. OBJ1 =        LR0.o allocate.o closure.o conflicts.o derives.o files.o
  7. OBJ2 =        getargs.o gram.o lalr.o lex.o main.o nullable.o output.o
  8. OBJ3 =        print.o reader.o symtab.o warshall.o
  9. OBJECTS =     $(OBJ1) $(OBJ2) $(OBJ3)
  10.  
  11. CFILES1 =    LR0.c allocate.c closure.c conflicts.c derives.c files.c
  12. CFILES2 =    getargs.c gram.c lalr.c lex.c main.c nullable.c output.c
  13. CFILES3 =    print.c reader.c symtab.c warshall.c
  14. CFILES =    $(CFILES1) $(CFILES2) $(CFILES3)
  15.  
  16. FILES1 =    Makefile files.h gram.h lex.h machine.h new.h state.h
  17. FILES2 =    symtab.h types.h
  18. FILES =        $(FILES1) $(FILES2) $(CFILES)
  19.  
  20. start :        bison
  21.  
  22. listing :
  23.         pr $(FILES) | lpr $(LPRFLAGS)
  24.  
  25. lint :
  26.         lint $(CFILES)
  27.  
  28. clean :
  29.         rm -f *.o
  30.  
  31. bison :        $(OBJECTS)
  32.         $(CC) -o bison $(OBJECTS)
  33.  
  34. LR0.o :        LR0.c
  35.         $(CC) $(CFLAGS) -c LR0.c
  36.  
  37. allocate.o :    allocate.c
  38.         $(CC) $(CFLAGS) -c allocate.c
  39.  
  40. closure.o :    closure.c
  41.         $(CC) $(CFLAGS) -c closure.c
  42.  
  43. conflicts.o :    conflicts.c
  44.         $(CC) $(CFLAGS) -c conflicts.c
  45.  
  46. derives.o :    derives.c
  47.         $(CC) $(CFLAGS) -c derives.c
  48.  
  49. files.o :    files.c files.h
  50.         $(CC) $(CFLAGS) -c files.c
  51.  
  52. getargs.o :    getargs.c
  53.         $(CC) $(CFLAGS) -c getargs.c
  54.  
  55. gram.o :    gram.c
  56.         $(CC) $(CFLAGS) -c gram.c
  57.  
  58. lalr.o :    lalr.c
  59.         $(CC) $(CFLAGS) -c lalr.c
  60.  
  61. lex.o :        lex.c lex.h
  62.         $(CC) $(CFLAGS) -c lex.c
  63.  
  64. main.o :    main.c
  65.         $(CC) $(CFLAGS) -c main.c
  66.  
  67. nullable.o :    nullable.c
  68.         $(CC) $(CFLAGS) -c nullable.c
  69.  
  70. output.o :    output.c
  71.         $(CC) $(CFLAGS) -c output.c
  72.  
  73. print.o :    print.c
  74.         $(CC) $(CFLAGS) -c print.c
  75.  
  76. reader.o :    reader.c
  77.         $(CC) $(CFLAGS) -c reader.c
  78.  
  79. symtab.o :    symtab.c symtab.h
  80.         $(CC) $(CFLAGS) -c symtab.c
  81.  
  82. warshall.o :    warshall.c
  83.         $(CC) $(CFLAGS) -c warshall.c
  84.