home *** CD-ROM | disk | FTP | other *** search
/ DOS/V Power Report 1996 February / VPR9602A.ISO / fwindows / tmedt090 / toold101 / makefile < prev    next >
Makefile  |  1995-11-19  |  2KB  |  62 lines

  1. CPU = i386
  2.  
  3. !include <ntwin32.mak>
  4.  
  5. cdebug =
  6. ldebug =
  7. guilibsdll = libcmt.lib oldnames.lib $(winlibs)
  8.  
  9. .c.obj :
  10.     $(cc) -nologo -Ox -ML $(cdebug) $(cflags) $(cvars) $*.c
  11.  
  12. all : xargs.dll cwtools.dll toolman.exe ls.exe ls_nt.exe
  13.  
  14. #-----------#
  15. # xargs.dll #
  16. #-----------#
  17. xargs.dll : $*.obj
  18.     $(link) -nologo $(ldebug) $(guilflags) \
  19.             -base:0x1c000000 \
  20.             -dll \
  21.             -entry:_DllMainCRTStartup$(DLLENTRY) \
  22.             -export:CreateArgs -export:DeleteArgs \
  23.             -out:$*.dll\
  24.             $*.obj $(guilibsdll)
  25.  
  26. #-------------#
  27. # cwtools.dll #
  28. #-------------#
  29. cwtools.dll : $*.obj xargs.lib
  30.     $(link) -nologo $(ldebug) $(guilflags) \
  31.             -base:0x1c000000 \
  32.             -dll \
  33.             -entry:_DllMainCRTStartup$(DLLENTRY) \
  34.             -export:CallCommand \
  35.             -out:$*.dll\
  36.             $*.obj $(guilibsdll) xargs.lib
  37.  
  38. #-----------#
  39. # ls_cw.exe #
  40. #-----------#
  41. ls.exe : $*.obj comwin32.lib
  42.     $(link) -nologo $(ldebug) $(guiflags) \
  43.             -out:$*.exe \
  44.             $*.obj \
  45.             $(guilibs) comwin32.lib
  46.     copy ls.exe ls_cw.exe
  47.  
  48. ls.obj : $*.c
  49.     $(cc) -nologo -Ox -ML $(cdebug) $(cflags) $(cvars) -DCOMWIN $*.c
  50.  
  51. #-----------#
  52. # ls_nt.exe #
  53. #-----------#
  54. ls_nt.exe : $*.obj
  55.     $(link) -nologo $(ldebug) $(conflags) \
  56.             -out:$*.exe \
  57.             $*.obj \
  58.             $(conlibs) user32.lib
  59.  
  60. ls_nt.obj : ls.c
  61.     $(cc) -nologo -Ox -ML $(cdebug) $(cflags) $(cvars) -Fo$*.obj ls.c
  62.