home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 11 Util / 11-Util.zip / PAMAKE18.ZIP / MAKEFILE.LC < prev    next >
Text File  |  1989-09-30  |  3KB  |  94 lines

  1. #   PAMAKE makefile by Roundhill Computer Systems Limited   September 1989
  2. #
  3. #   This PAMAKE makefile builds the PAMAKE program for DOS and OS/2,
  4. #   using Lattice C 6.00.  This compiler builds a much more compact 
  5. #   family mode program than Microsoft C.
  6. #
  7. #   For information on the PAMAKE make utility, see PAMAKE.DOC
  8. #
  9. #   The directory structure for which this makefile was constructed is
  10. #   as follows:
  11. #
  12. #   \lc6            :  C compiler executables
  13. #   c:\os2          :  DOSCALLS.LIB
  14. #   \lc6            :  .H files
  15. #   \lc6\s          :  compiler small-model library files
  16. #   \msc51\pamake   :  source for PAMAKE
  17. #
  18. #   This makefile is invoked from the \lc6\pamake directory. 
  19. #
  20. #   Note: use a renamed version of PAMAKE to rebuild it under OS/2.  
  21. #         OS/2 will not allow writing to the EXE file while it is 
  22. #         actually running.
  23. #
  24. #   --------------------------------------------------------------------
  25.  
  26. target: pamake.exe
  27.     +@echo make complete:  target is up-to-date
  28.  
  29. #   --------------------------------------------------------------------
  30. #
  31. #   The following macro definitions are placed in the DOS environment
  32. #   during execution of PAMAKE.  Modify them to specify the pathnames
  33. #   which apply in your system.  Note that the PATH must include all
  34. #   directories which contain commands to be executed by PAMAKE, since
  35. #   it overrides your previous path during the execution of the make.
  36. #
  37. #   --------------------------------------------------------------------
  38.  
  39. RAMFLAG=-qh:\              # RAM Disk, delete this line if not available
  40.  
  41. #if TEST=1
  42. CD=-d2                     # compiler debug switch for CodePRobe
  43. LD=/DEBUG                  # linker debug switch for CodePRobe
  44. #else
  45. CD=-O                      # use global optimiser
  46. #endif
  47.  
  48. M=S                        # small model
  49. SRC=\msc51\pamake
  50. +PATH=\lc6
  51. +INCLUDE=\lc6;$(SRC)
  52. +LIB=\lc6\$M;c:\os2
  53. +LC=\lc6
  54.  
  55. #   --------------------------------------------------------------------
  56. #
  57. #   PAMAKE has a built-in command of $(CC) $(CFLAGS) $(CFILES) for C 
  58. #   compilations.  Here we set these macros for the Microsoft compiler.
  59. #
  60. #   --------------------------------------------------------------------
  61.  
  62. CC=lc
  63. CFLAGS=-m$M$S $(RAMFLAG) -g1 -gv2 -go -v -ct $(CD)
  64. CFILES=-o$@ $<
  65.  
  66. .SUFFIXES:                              # clear suffixes list
  67. .SUFFIXES: .c                           # not .asm and .pnl as built-in
  68.  
  69. #   --------------------------------------------------------------------
  70. #
  71. #   Here are the programs to build
  72. #
  73. #   --------------------------------------------------------------------
  74.  
  75. OBJS= main.obj check.obj input.obj macro.obj make.obj reader.obj \
  76.       rules.obj ifproc.obj mtime.obj
  77.  
  78. pamake.exe: $(OBJS)
  79.     lc -Lro $(LD) -g1 -m$M$S $@ $(OBJS) 
  80.  
  81. #   --------------------------------------------------------------------
  82. #
  83. #   Commands to build objects.
  84. #
  85. #   --------------------------------------------------------------------
  86.  
  87. $(OBJS): $(SRC)\$*.c $(SRC)\h.h
  88.  
  89. #   --------------------------------------------------------------------
  90. #
  91. #   end of makefile
  92. #
  93. #   --------------------------------------------------------------------
  94.