home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / tcp30tkt.zip / PGMG1.ZIP / SAMPLES / SAMPDLL / MYPROG.MAK < prev    next >
Text File  |  1995-12-04  |  1KB  |  49 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 myprog.mak clean
  24.  
  25. # Define the Compiler program to use
  26. CC   =icc
  27.  
  28. # Define the Linker program to use
  29. # link386 is replaced by ilink for VisualAge C++ compiler.  Check for
  30. #  VACPP_SHARED environment variable to see which linker to use.
  31. !if defined(VACPP_SHARED)
  32. LINK =ilink /NOFREEFORMAT /NOLOGO
  33. !else
  34. LINK =link386
  35. !endif
  36. ALL : myprog.exe
  37.  
  38. myprog.obj : myprog.c
  39.   $(CC) /Ti /DOS2  /Sm /Ss /Q /W2 /Gm /Gt /C myprog.c
  40.  
  41. myprog.exe: myprog.obj
  42.   $(LINK)  /De  myprog,myprog.exe,NUL,os2386 sampdll.lib ,myprog.def;
  43.  
  44. # Clean rule to clean up all of the extra generated files and
  45. clean:
  46.     -del myprog.obj
  47.     -del *.exe
  48.  
  49.