home *** CD-ROM | disk | FTP | other *** search
/ Power-Programmierung / CD2.mdf / c / library / os2 / thread / pmnews.mak < prev    next >
Encoding:
Makefile  |  1993-04-11  |  2.6 KB  |  106 lines

  1. #===================================================================
  2. #
  3. #   PMNEWS 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-    static linking
  23. # /Se     allow cset  extensions
  24. # /Kb     basic diagnostics
  25. #
  26. #Note: /D__MIG_LIB__ will be coming out after LA and code should be changed
  27. #      accordingly.
  28. #
  29.  
  30.  
  31.  
  32. AFLAGS  = /Mx -t -z
  33. ASM     = ml /c /Zm
  34. LFLAGS   = /NOL /NOE /NOD /BASE:65536 /ALIGN:16 /EXEPACK /M /De
  35. !IFDEF  NODBG
  36. LFLAGS   = /NOL /NOE /NOD /BASE:65536 /ALIGN:16 /EXEPACK /M
  37. !ENDIF
  38. LINK    = LINK386  $(LFLAGS)
  39. LIBS    = DDE4MBS + OS2386
  40. STLIBS  = DDE4SBS + OS2386
  41. MTLIBS  = DDE4MBS + DDE4MBM  + os2386
  42. DLLLIBS = DDE4NBS + os2386
  43. VLIBS   = DDE4SBS + vdh + os2386
  44.  
  45. .c.lst:
  46.     $(CC) -Fc$*.lst -Fo$*.obj $*.c
  47.  
  48. .c.obj:
  49.     $(CC) -Fo$*.obj $*.c
  50.  
  51. .asm.obj:
  52.     $(ASM)   $*.asm
  53.  
  54. .ipf.hlp:
  55.         ipfc $*.ipf /W3
  56.  
  57. .itl.hlp:
  58.         cc  -P $*.itl
  59.         ipfc $*.i
  60.         del $*.i
  61.  
  62. .rc.res:
  63.         rc -r -p -x $*.rc
  64.  
  65. CC         = icc /c /Kb /Ge /Gd- /Se /Re /ss /Gm+ /Ti
  66. !IFDEF NODBG
  67. CC         = icc /c /Kb /Ge /Gd- /Se /Re /ss /Gm+
  68. !ENDIF
  69.  
  70. HEADERS = pmnews.h defs.h
  71.  
  72. #-------------------------------------------------------------------
  73. #   A list of all of the object files
  74. #-------------------------------------------------------------------
  75. ALL_OBJ1 = pmnews.obj  pmnews1.obj active.obj history.obj pmmthrd.obj
  76.  
  77.  
  78. all: pmnews.exe
  79.  
  80.  
  81. pmnews.l: pmnews.mak
  82.     echo $(ALL_OBJ1)            > pmnews.l
  83.     echo pmnews.exe           >> pmnews.l
  84.     echo pmnews.map           >> pmnews.l
  85.     echo $(MTLIBS)            >> pmnews.l
  86.     echo pmnews.def           >> pmnews.l
  87.  
  88.  
  89.  
  90.  
  91. pmnews.res: pmnews.rc pmnews.ico pmnews.h
  92.  
  93. history.obj: history.c history.h defs.h
  94.  
  95. active.obj:  active.c active.h defs.h
  96.  
  97. pmmthrd.obj: pmmthrd.c $(HEADERS)
  98.  
  99. pmnews1.obj: pmnews1.c $(HEADERS)
  100.  
  101. pmnews.obj: pmnews.c $(HEADERS)
  102.  
  103. pmnews.exe: $(ALL_OBJ1)  pmnews.def pmnews.l pmnews.res
  104.     $(LINK) @pmnews.l
  105.     rc pmnews.res pmnews.exe
  106.