home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 11 Util / 11-Util.zip / switchto.zip / Makefile next >
Makefile  |  1998-04-01  |  1KB  |  49 lines

  1. #
  2. #                            SwitchTo.cpp
  3. #                 Copyright (C) by Stangl Roman, 1998
  4. # This Code may be freely distributed, provided the Copyright isn't
  5. # removed, under the conditions indicated in the documentation.
  6. #
  7. # Makefile     SwitchTo/2 makefile
  8. #
  9. # Requires     IBM VisualAge C++ 3.0
  10. #              OS/2 Warp Toolkit
  11. #
  12.  
  13. !ifndef NODEBUG
  14. CFLAGS = /Ti /Tm /DDEBUG
  15. LFLAGS = /Debug
  16. !else
  17. CFLAGS = /O /Oc
  18. LFLAGS =
  19. !endif # NODEBUG
  20.  
  21. !ifdef LAUNCHCOPY
  22. RUNMODE = /DLAUNCHCOPY
  23. !ifndef NODEBUG
  24. LOBJECT = +printf.obj
  25. !endif  # NODEBUG
  26. !endif  # LAUNCHCOPY
  27.  
  28. !ifdef CHANGETYPE
  29. RUNMODE = /DCHANGETYPE
  30. !endif  # CHANGETYPE
  31.  
  32. All: SwitchTo.exe
  33.  
  34. SW2Us.msg : SW2Us.txt
  35.     MKMSGF SW2Us.txt SW2Us.msg
  36.  
  37. SW2Gr.msg : SW2Gr.txt
  38.     MKMSGF SW2Gr.txt SW2Gr.msg
  39.  
  40. SwitchTo.msg : SW2Us.msg SW2Gr.msg
  41.     Copy SW2Us.msg SwitchTo.msg /v
  42.  
  43. SwitchTo.obj : SwitchTo.cpp SwitchTo.hpp Makefile
  44.     icc /Tdp /Rn /c $(CFLAGS) $(RUNMODE) SwitchTo.cpp /FoSwitchTo.obj
  45.  
  46. SwitchTo.exe : SwitchTo.obj SwitchTo.msg SwitchTo.def
  47.     ilink /Nofree /Nod /Map $(LFLAGS) SwitchTo.obj $(LOBJECT),SwitchTo.exe,SwitchTo.map,CPPON30+OS2386,SwitchTo.def
  48.  
  49.