home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 5 Edit / 05-Edit.zip / VILE327.ZIP / VILE327.TAR / vile3.27 / make.ini < prev    next >
Text File  |  1992-12-14  |  1KB  |  63 lines

  1. CP    =    copy            # what 'cp' to use.
  2. RM    =    del            # what 'rm' to use.
  3. MV    =    ren            # What 'mv' to use.
  4. LINKER    =    \usr\lib\bin\tlink.exe    # What link to use.
  5. CC    =    tcc            # What C compiler I am using.
  6.  
  7. INCLUDE    =    \usr\lib\tinclude    # Where to find header files.      .h
  8. LIB    =    \usr\lib\tlib        # Where to find the libary files. .lib
  9. MAPFILE    =    \dev\nul        # Where to put the link map file.
  10.  
  11. # switches for TurboC....
  12. MODEL    =    l            # t)iny s)mall c)ompact m)edium l)arge h)uge
  13. MDL    =    $(MODEL)        # The masm model.
  14. CPU    =    1            # 0=8088 1=186/286
  15. MATH    =    f            # f87=8087 f=emulate f-=no floating
  16. MATHLIB =    emu            # emu, f87, or nothing
  17. TYPE    =    G            # G=speed    O=size
  18. SWITCHES=    -I$(INCLUDE) -L$(LIB) -m$(MODEL) -$(CPU) -$(MATH)       \
  19.         -$(TYPE)
  20. CFLAGS    =    $(SWITCHES)
  21.  
  22. # Print the `make -h' message
  23. .HELP
  24.  
  25. # The order to search for rules and files is specified by .SUFFIXES
  26. .SUFFIXES:    .exe .obj .c .for .asm
  27.  
  28. # DEFAULT RULES
  29. .asm.obj:
  30.     masm    $*.asm;
  31.  
  32. .c.obj:
  33.     $(CC)    $(CFLAGS) -c $*.c
  34.  
  35. .for.obj:
  36.     for1    $*.for;
  37.     pas2
  38.  
  39. .obj.exe:
  40.     $(CP)    $(LINKER) .\link.exe
  41.     link    $(LIB)\c0$(MODEL) $(OBJS), $@, $(MAPFILE),          \
  42.         $(LIB)\$(MATHLIB) $(LIB)\math$(MODEL) $(LIB)\c$(MODEL)
  43.     $(RM)    .\link.exe
  44.     $(CP)    $(PROGRAM) $(DEST)
  45.  
  46. # .obj.exe:
  47. #    link    $*.obj, $@, $(MAPFILE), $(LIBS)
  48.  
  49. .asm.exe:
  50.     masm    $*.asm;
  51.     link    $*.obj, $@, $(MAPFILE), $(LIBS)
  52.     $(RM)    $*.obj
  53.  
  54. .c.exe:
  55.     $(CC)    $(CFLAGS) -c $*.c
  56.     link    $*.obj, $@;
  57.     $(RM)    $*.obj
  58.  
  59. .for.exe:
  60.     for1    $*.for;
  61.     pas2
  62.     link    $*.obj, $@, $(MAPFILE), $(LIB)\FORTRAN.LIB
  63.