home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / tkisrc04.zip / pycmd / Makefile < prev    next >
Makefile  |  1998-09-09  |  1KB  |  61 lines

  1.  
  2. # this is another hacked makefile originally created by my makefile generator.
  3. #
  4. # If you have the OS2 version of makedepend installed, I recommend that
  5. # you run "nmake deps" to create the dependencies.
  6. #
  7. # After this, just run "nmake"
  8. #
  9. # "nmake NODEBUG=1" will create a version without debug info.
  10. # "nmake clean" will delete all targets and intermediate files
  11. # "nmake clean_targets" will delete all targets
  12. #
  13.  
  14. !ifdef NODEBUG
  15. DEBUG=
  16. !else
  17. DEBUG=-Ti+
  18. !endif
  19.  
  20. # you can use "DYNAMIC=1" on the make command line to compile a version
  21. # of the libraries that is statically linked
  22. !ifndef STATIC
  23. !ifdef DYNAMIC
  24. STATIC=-Gd+ -DDYNAMICLIBS
  25. !else
  26. STATIC=-Gd-
  27. !endif
  28. !endif
  29.  
  30. DEFS=
  31.  
  32. All:
  33.    $(MAKE) bins
  34.  
  35. deps:
  36.    if exist Makefile.bak attrib -r Makefile.bak
  37.    $(MDEP) -i INCLUDE $(DEFS)  pycmd.c pycmd.c
  38.  
  39. clean_targets:
  40.    if exist pmpycmd.exe del pmpycmd.exe
  41.    if exist pycmd.exe del pycmd.exe
  42.  
  43. bins: pmpycmd.exe pycmd.exe
  44.  
  45. clean:
  46.    if exist pmpycmd.exe del pmpycmd.exe
  47.    if exist pycmd.OBJ del pycmd.OBJ
  48.    if exist pycmd.exe del pycmd.exe
  49.    if exist pycmd.OBJ del pycmd.OBJ
  50.  
  51. pmpycmd.exe: pycmd.OBJ
  52.    icc $(DEBUG) $(LINKOPTS) -B"/PM:PM"  -Gm+ $(STATIC) -Fepmpycmd.exe pycmd.OBJ \
  53.         PYTHON15.lib
  54.  
  55. pycmd.OBJ: pycmd.c
  56.    icc -c $(DEBUG) $(DEFS) -Gm+ -Ss+ $(STATIC)  pycmd.c
  57.  
  58. pycmd.exe: pycmd.OBJ
  59.    icc $(DEBUG) $(LINKOPTS)   -Gm+ $(STATIC) -Fepycmd.exe pycmd.OBJ PYTHON15.lib
  60.  
  61.