home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / tcp30tkt.zip / PGMG1.ZIP / SAMPLES / SAMPDLL / SAMPDLL.MAK < prev   
Text File  |  1995-12-04  |  2KB  |  60 lines

  1. #  Compiler options:
  2. #
  3. #   /Ti  : Generate debugger information
  4. #   /Sm  : Allow migration extensions
  5. #   /Ss  : Allow '//' for comments
  6. #   /Q   : Do not display logo
  7. #   /Kb  : Produce basic diagnostic message
  8. #   /W2  : Produce severe errors, errors and warnings
  9. #   /Gm  : Link with the multithread version of library
  10. #   /Gt  : Enavle all variables to be passed to 16-bit function.
  11. #          Static & external variables are mapped into 16-bit segment.
  12. #          Variables larger then 64k will be alligned on, but will still
  13. #          cross, 64k boundary.
  14. #   /C   : Compile only
  15. #
  16. #
  17. #  Linker options:
  18. #
  19. #   /De  : Prepare for Debugging
  20. #   /NOI : Preserve the case sensitivity
  21. #
  22. #  To clean up the directory and go back to just the original files
  23. #   issue: nmake -f sampdll.mak clean
  24.  
  25.  
  26. # Define the Compiler program to use
  27. CC   =icc
  28.  
  29. # Define the Linker program to use
  30. # link386 is replaced by ilink for VisualAge C++ compiler.  Check for
  31. #  VACPP_SHARED environment variable to see which linker to use.
  32. !if defined(VACPP_SHARED)
  33. LINK =ilink /NOFREEFORMAT
  34. !else
  35. LINK =link386
  36. !endif
  37.  
  38.  
  39. ALL : sampdll.dll sampdll.lib
  40.  
  41. sampdll.OBJ:     sampdll.C
  42.    $(CC).EXE /Ti /DOS2 /Sm /Ss /Q /W2 /Gm /Ge- /Gt /Gd- /C sampdll.c
  43.  
  44. sampdll.dll: sampdll.obj
  45.    if exist sampdll.dll erase sampdll.dll
  46.    $(LINK) @sampdll.lrf
  47.  
  48. sampdll.lib: sampdll.def
  49.    if exist sampdll.lib erase sampdll.lib
  50.    implib /NOI sampdll.lib sampdll.def
  51.  
  52.  
  53. # Clean rule to clean up all of the extra generated files and
  54. clean:
  55.     -del *.map
  56.     -del sampdll.obj
  57.     -del *.lib
  58.     -del *.dll
  59.  
  60.