home *** CD-ROM | disk | FTP | other *** search
/ Der Mediaplex Sampler - Die 6 von Plex / 6_v_plex.zip / 6_v_plex / DISK6 / OS_20 / WATF16_A.ZIP / DLLMK.A < prev    next >
Text File  |  1993-08-27  |  947b  |  55 lines

  1. # wmake lang=c   
  2. # wmake lang=cpp 
  3.  
  4. !ifeq lang c
  5. compile286 = wcc
  6. compile386 = wcc386
  7. !endif
  8.  
  9. !ifeq lang cpp
  10. compile286 = wpp
  11. compile386 = wpp386
  12. !endif
  13.  
  14. dllflags = -bd -zc
  15. cflags = -bt=windows -d1
  16.  
  17. .EXTENSIONS:
  18. .EXTENSIONS: .dll .exe .obj .c
  19.  
  20. .BEFORE
  21.     set include=$(%watcom)\h\win;$(%include)
  22.  
  23. all : dll16.dll dll32.dll gen16.exe gen32.exe .SYMBOLIC
  24.  
  25. gen16.exe : gen16.obj
  26.     wlink @gen16
  27.  
  28. dll16.dll : dll16.obj
  29.     wlink @dll16
  30.  
  31. gen32.exe : gen32.obj
  32.     wlink @gen32
  33.     wbind -n gen32
  34.     @del gen32.rex
  35.  
  36. dll32.dll : dll32.obj
  37.     wlink @dll32
  38.     wbind -d -n dll32
  39.     @del dll32.rex
  40.  
  41. dll16.obj : dll16.c
  42.     $(compile286) dll16 -mc-zu $(dllflags) $(cflags)
  43.  
  44. dll32.obj : dll32.c
  45.     $(compile386) dll32 $(dllflags) $(cflags)
  46.  
  47. gen16.obj : gen16.c
  48.     $(compile286) gen16 $(cflags)
  49.  
  50. gen32.obj : gen32.c
  51.     $(compile386) gen32 $(cflags)
  52.  
  53. clean : .SYMBOLIC
  54.     @rm *.exe *.dll *.obj *.map
  55.