home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 35 Internet / 35-Internet.zip / portwin.zip / portwin.mak < prev    next >
Makefile  |  1996-04-13  |  2KB  |  95 lines

  1. #===================================================================
  2. #
  3. #   Swapsize Make file
  4. #
  5. #===================================================================
  6.  
  7. #===================================================================
  8. #
  9. #   Sample application makefile,common definitions for the IBM C
  10. #   compiler environment
  11. #===================================================================
  12. .SUFFIXES:
  13. .SUFFIXES: .rc .res .obj .lst .c .asm .hlp .itl .ipf
  14. #===================================================================
  15. # Default compilation macros for sample programs
  16. #
  17. # Compile switchs  that are enabled
  18. # /c      compile don't link
  19. # /Gm+    use the multi-threaded libraries
  20. # /ss     allow  "//" for comment lines
  21. # /Ms     use the system calling convention and not optilink as the default
  22. # /Gd-    Disable optimization
  23. # /Se     allow cset  extensions
  24. #
  25. #Note: /D__MIG_LIB__ will be coming out after LA and code should be changed
  26. #      accordingly.
  27. #
  28.  
  29. NDB = /De
  30. TI = /Ti
  31. !IFDEF NODBG
  32. NDB =
  33. TI =
  34. !ENDIF
  35. CC         = icc /c /Kb /Ge /Gd- /Se /Re /ss /Gm+ $(TI)
  36.  
  37.  
  38. AFLAGS  = /Mx -t -z
  39. ASM     = ml /c /Zm
  40. LFLAGS   = /NOL /NOE /NOD /BASE:65536 /ALIGN:16 /EXEPACK /M  $(NDB)
  41. LINK    = LINK386  $(LFLAGS)
  42. LIBS    = DDE4MBS + OS2386
  43. STLIBS  = DDE4SBS + OS2386
  44. MTLIBS  = DDE4MBS + DDE4MBM  + os2386
  45. DLLLIBS = DDE4NBS + os2386
  46. VLIBS   = DDE4SBS + vdh + os2386
  47.  
  48. .c.lst:
  49.     $(CC) -Fc$*.lst -Fo$*.obj $*.c
  50.  
  51. .c.obj:
  52.     $(CC) -Fo$*.obj $*.c
  53.  
  54. .asm.obj:
  55.     $(ASM)   $*.asm
  56.  
  57. .ipf.hlp:
  58.         ipfc $*.ipf /W3
  59.  
  60. .itl.hlp:
  61.         cc  -P $*.itl
  62.         ipfc $*.i
  63.         del $*.i
  64.  
  65. .rc.res:
  66.         rc -r -p -x $*.rc
  67.  
  68.  
  69. HEADERS = portwin.h
  70.  
  71. #-------------------------------------------------------------------
  72. #   A list of all of the object files
  73. #-------------------------------------------------------------------
  74. ALL_OBJ1 = portwin.obj
  75.  
  76.  
  77. all: portwin.exe
  78.  
  79.  
  80. portwin.l: portwin.mak
  81.     echo $(ALL_OBJ1)            > portwin.l
  82.     echo portwin.exe           >> portwin.l
  83.     echo portwin.map           >> portwin.l
  84.     echo $(LIBS)                >> portwin.l
  85.     echo portwin.def           >> portwin.l
  86.  
  87.  
  88. portwin.res: portwin.rc portwin.ico portwin.h
  89.  
  90. portwin.obj: portwin.c $(HEADERS)
  91.  
  92. portwin.exe: $(ALL_OBJ1)  portwin.def portwin.l portwin.res
  93.     $(LINK) @portwin.l
  94.     rc portwin.res portwin.exe
  95.