home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 3 Comm / 03-Comm.zip / pmcom233.zip / SAMPLE32.MAK < prev    next >
Makefile  |  1996-01-02  |  2KB  |  74 lines

  1. #===================================================================
  2. #
  3. #   Make file for sample32.c script.
  4. #   Created 1992 Multi-Net Communications
  5. #
  6. #===================================================================
  7.  
  8. LFLAGS   = /NOE /NOD
  9. LINK    = LINK386  $(LFLAGS)
  10. CC         = icc /c /Ge /Gd- /Se /Re /ss /Ms  /Gm+
  11.  
  12. .c.lst:
  13.     $(CC) -Fc$*.lst -Fo$*.obj $*.c
  14.  
  15. .c.obj:
  16.     $(CC) -Fo$*.obj $*.c
  17.  
  18. .ipf.hlp:
  19.         ipfc $*.ipf /W3
  20.  
  21. .itl.hlp:
  22.         cc  -P $*.itl
  23.         ipfc $*.i
  24.         del $*.i
  25.  
  26. .rc.res:
  27.         rc -r $*.rc
  28.  
  29.  
  30. HEADERS = cpmcomm.h
  31.  
  32. LIBS    = DDE4MBS + os2386 + cpmcom32
  33. #-------------------------------------------------------------------
  34. #   A list of all of the object files
  35. #-------------------------------------------------------------------
  36. ALL_OBJ1 = sample.obj
  37.  
  38. all: sample32.exe
  39.  
  40. #-------------------------------------------------------------------
  41. #   This section creates the command file used by the linker.  This
  42. #   command file is recreated automatically every time you change
  43. #   the object file list, linker flags, or library list.
  44. #-------------------------------------------------------------------
  45. sample32.lnk: sample32.mak
  46.     echo $(ALL_OBJ1)             > sample32.lnk
  47.     echo sample32.exe           >> sample32.lnk
  48.     echo sample32.map           >> sample32.lnk
  49.     echo $(LIBS)                >> sample32.lnk
  50.     echo sample32.def           >> sample32.lnk
  51.  
  52.  
  53.  
  54. #===================================================================
  55. #
  56. # Dependencies
  57. #
  58. #   This section lists all object files needed to be built for the
  59. #   application, along with the files it is dependent upon (e.g. its
  60. #   source and any header files).
  61. #
  62. #===================================================================
  63.  
  64. sample32.obj: sample32.c $(HEADERS)
  65.  
  66. #-------------------------------------------------------------------
  67. #   This section links the object modules into the finished program
  68. #   using the linker command file created earlier.  At the end, the
  69. #   resource file is bound to the application.
  70. #-------------------------------------------------------------------
  71.  
  72. sample32.exe: $(ALL_OBJ1) $(ALL_OBJ2) sample32.def sample32.lnk
  73.     $(LINK) @sample32.lnk
  74.