home *** CD-ROM | disk | FTP | other *** search
/ Celestin Apprentice 5 / Apprentice-Release5.iso / Source Code / C / Applications / Moscow ML 1.31 / source code / mosml / src / Makefile.inc < prev    next >
Encoding:
Makefile  |  1996-07-03  |  1.1 KB  |  55 lines  |  [TEXT/R*ch]

  1. # Unix configuration Makefile for Moscow ML
  2.  
  3. MOSMLHOME=${HOME}/mosml
  4.  
  5. CAMLRT=../runtime
  6.  
  7. MOSMLTOOLS=../tools
  8.  
  9. MOSMLC=../camlrunm ../mosmlcmp -stdlib ../mosmllib -P none
  10. MOSMLL=../camlrunm ../mosmllnk -stdlib ../mosmllib -P none
  11.  
  12. MOSMLLEX=../camlrunm ../mosmllex
  13. MOSMLYACC=../mosmlyac/mosmlyac
  14. MOSMLCUT=../camlrunm ../cutdeps 
  15. MOSMLDEP=../camlrunm ../mosmldep
  16.  
  17. # For Linux and other well-behaved systems, use:
  18. CPP=/lib/cpp -P -traditional -Dunix -Umsdos
  19. STRIP=strip
  20.  
  21. # For HP-UX, use instead:
  22. # CPP=/lib/cpp -P -Dunix -Umsdos
  23.  
  24. # For SunOS 5.4 and similar (Solaris 2), use instead:
  25. # CPP=/usr/ccs/lib/cpp -P -Dunix -Umsdos
  26. # STRIP=/usr/ccs/bin/strip
  27.  
  28. CC=gcc
  29.  
  30. # BINDIR contains true executable files, such as scripts
  31. # LIBDIR contains linked bytecode files (such as mosmlcmp) 
  32. #                 as well as unlinked bytecode files (library units)
  33.  
  34. BINDIR=${MOSMLHOME}/bin
  35. LIBDIR=${MOSMLHOME}/lib
  36. TOOLDIR=${MOSMLHOME}/tools
  37.  
  38. .SUFFIXES :
  39. .SUFFIXES : .sml .sig .ui .uo .mlp .lex .c .o
  40.  
  41. .sig.ui:
  42.     $(MOSMLC) $(COMPFLAGS) $<
  43.  
  44. .sml.uo:
  45.     $(MOSMLC) $(COMPFLAGS) $<
  46.  
  47. .mlp.sml:
  48.     $(CPP) $< > $*.sml
  49.  
  50. .lex.sml:
  51.     $(MOSMLLEX) $<
  52.  
  53. .c.o:
  54.     $(CC) -c $(CFLAGS) -o $@ $<
  55.