home *** CD-ROM | disk | FTP | other *** search
/ DOS/V Power Report 1996 February / VPR9602A.ISO / fwindows / comwp260 / samples / makefile < prev    next >
Makefile  |  1995-10-09  |  2KB  |  98 lines

  1. !if 0
  2. #-----------#
  3. # For WIN16 #
  4. #-----------#
  5.  
  6. cc = cl
  7. link = link
  8. cflags     = -nologo -c -G3 -Gw -Gf -Ox -W3 -Zp
  9. guiflags   = /nologo/align:16/nod
  10.  
  11. .c.obj :
  12.     $(cc) $(cflags) $*.c
  13.  
  14. .obj.exe :
  15.     $(link) $(guiflags)\
  16.     $*.obj,,nul,slibcew+libw+commdlg,$*.def
  17.     rc $*.exe
  18.  
  19. .obj.dll :
  20.     $(link) $(guiflags)\
  21.     $*.obj,$*.dll,nul,cdllcew+libw+commdlg,$*.def
  22.     rc $*.dll
  23.  
  24. all : hello.exe \
  25.       sample1.exe \
  26.       sample2.exe \
  27.       sample3.dll \
  28.       sample5.exe
  29.  
  30. hello.obj   : hello.c
  31. sample1.obj : sample1.c   comwin.h
  32. sample2.obj : sample2.c   comwin.h
  33. sample5.obj : sample5.c   comwin.h
  34. hello.exe   : hello.obj   hello.def
  35. sample1.exe : sample1.obj sample1.def
  36. sample2.exe : sample2.obj sample2.def
  37. sample3.dll : sample3.obj sample3.def
  38. sample5.exe : sample5.obj sample5.def
  39. sample3.obj : sample3.c  comwin.h
  40.     $(cc) $(cflags) -ACw $*.c
  41.  
  42. clean :
  43.     del *.obj
  44.  
  45. !else
  46. #-----------#
  47. # For WIN32 #
  48. #-----------#
  49.  
  50. CPU = i386
  51.  
  52. !include <ntwin32.mak>
  53.  
  54. cdebug=
  55. ldebug=
  56. guilibsdll = libcmt.lib oldnames.lib $(winlibs)
  57.  
  58. .c.obj :
  59.     $(cc) -nologo -Ox $(cdebug) $(cflags) $(cvars) $*.c
  60.  
  61. .obj.exe :
  62.     $(link) /NOLOGO\
  63.     $(ldebug) $(guiflags)\
  64.     -out:$*.exe\
  65.     $*.obj\
  66.     $(guilibs) comwin32.lib
  67.  
  68. .obj.dll :
  69.     $(link) /NOLOGO\
  70.     $(ldebug) $(guilflags)\
  71.     -base:0x1c000000\
  72.     -dll\
  73.     -entry:_DllMainCRTStartup$(DLLENTRY)\
  74.     -out:$*.dll\
  75.     -def:$*.def\
  76.     $*.obj\
  77.     $(guilibsdll) comwin32.lib
  78.  
  79. all : hello.exe \
  80.       sample1.exe \
  81.       sample2.exe \
  82.       sample3.dll \
  83.       sample5.exe
  84.  
  85. hello.obj   : hello.c
  86. sample1.obj : sample1.c   comwin.h
  87. sample2.obj : sample2.c   comwin.h
  88. sample3.obj : sample3.c   comwin.h
  89. sample5.obj : sample5.c   comwin.h
  90. sample3.dll : sample3.obj sample3.def
  91.  
  92. clean :
  93.     del *.obj
  94.     del sample3.lib
  95.     del sample3.exp
  96.  
  97. !endif
  98.