home *** CD-ROM | disk | FTP | other *** search
/ ftp.ee.pdx.edu / 2014.02.ftp.ee.pdx.edu.tar / ftp.ee.pdx.edu / pub / users / Harry / Blitz / version-1-0 / BlitzSrc / kpl / makefile-Solaris < prev    next >
Makefile  |  2006-03-19  |  2KB  |  55 lines

  1. #
  2. # Type 'make' with this 'makefile' file in your current directory to compile
  3. # the KPL compiler components.  It will execute the following commands
  4. # as needed, based on file most-recent-update times.
  5.  
  6. CC=g++
  7.  
  8. CFLAGS=-g
  9.  
  10. all:    kpl
  11.  
  12. #
  13. # For MAC OS-X, the default stack size may be inadequate for the amount of
  14. #   recursion in larger runs of the KPL compiler, since it recurses
  15. #   in proportion to the depth of the abstract syntax tree.  This is the reason
  16. #   for the "-Xlinker -stack_size -Xlinker MMM -Xlinker -stack_addr -Xlinker NNN"
  17. #   options.  The -Xlinker option passes the next thing through to the linker, so
  18. #   the linker ends up seeing "-stack_size MMM -stack_addr NNN".
  19. # For Sun/SPARC, these options are not needed or allowed, so they must be
  20. #   commented out.
  21. #
  22.  
  23. kpl:    main.o lexer.o ast.o printAst.o parser.o mapping.o check.o ir.o gen.o
  24.     $(CC) $(CFLAGS) main.o lexer.o ast.o printAst.o parser.o\
  25.             mapping.o check.o ir.o  gen.o -o kpl
  26. #            -Xlinker -stack_size -Xlinker 4000000 -Xlinker -stack_addr -Xlinker c0000000
  27.  
  28. main.o: main.cc main.h ast.h ir.h
  29.     $(CC) $(CFLAGS) -c main.cc
  30.  
  31. lexer.o: lexer.cc main.h ast.h
  32.     $(CC) $(CFLAGS) -c lexer.cc
  33.  
  34. ast.o: ast.cc main.h ast.h
  35.     $(CC) $(CFLAGS) -c ast.cc
  36.  
  37. printAst.o: printAst.cc main.h ast.h
  38.     $(CC) $(CFLAGS) -c printAst.cc
  39.  
  40. parser.o: parser.cc main.h ast.h
  41.     $(CC) $(CFLAGS) -c parser.cc
  42.  
  43. mapping.o: mapping.cc main.h ast.h
  44.     $(CC) $(CFLAGS) -c mapping.cc
  45.  
  46. check.o: check.cc main.h ast.h
  47.     $(CC) $(CFLAGS) -c check.cc
  48.  
  49. ir.o: ir.cc main.h ast.h ir.h
  50.     $(CC) $(CFLAGS) -c ir.cc
  51.  
  52. gen.o: gen.cc main.h ast.h ir.h
  53.     $(CC) $(CFLAGS) -c gen.cc
  54.