home *** CD-ROM | disk | FTP | other *** search
/ The World of Computer Software / World_Of_Computer_Software-02-385-Vol-1of3.iso / p / pccts.zip / lang / c / makefile.os2 < prev    next >
Makefile  |  1992-12-04  |  732b  |  35 lines

  1. SYM=../../support/sym
  2. H=../../h
  3. SRC=scan.c decl.c func.c expr.c err.c main.c $(SYM)/sym.c engl.c
  4. OBJ=scan.obj decl.obj func.obj expr.obj err.obj main.obj sym.obj engl.obj
  5. CFLAGS=-I. -I$(H) -DLL_K=$(K) /Za /AL
  6. AFLAGS=-k $(K) -gt -gh
  7.  
  8. LIBS=/NOD:LLIBCE LLIBCEP
  9.  
  10. # where are dlg and antlr binaries
  11. DLG=..\..\bin\dlg
  12. ANTLR=..\..\bin\antlr
  13. K=2        # tokens of lookahead
  14.  
  15. proto.exe: $(OBJ) $(SRC)
  16.         link @<<
  17. $(OBJ: = +^
  18. ) /NOI
  19. $@
  20.  
  21. $(LIBS: = +^
  22. )
  23. $(DEF_FILE) $(LFLAGS) ;
  24. <<
  25.         bind $@ c:\os2\doscalls.lib
  26.  
  27. decl.c func.c expr.c err.c parser.dlg : decl.g func.g expr.g
  28.     $(ANTLR) $(AFLAGS) decl.g func.g expr.g
  29.  
  30. scan.c : parser.dlg
  31.     $(DLG) -C2 parser.dlg scan.c
  32.  
  33. sym.obj : $(SYM)/sym.c
  34.         $(CC) -c  sym.obj $(CFLAGS) $(SYM)/sym.c
  35.