home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 35 Internet / 35-Internet.zip / fingercl.zip / make.in < prev    next >
Text File  |  1997-08-29  |  1KB  |  58 lines

  1. @echo off
  2. if "%1"=="" goto usage
  3. if "%1" == "install" goto instal
  4. if "%1" == "clean" goto clean
  5. if "%2"=="" goto usage
  6. if "%2" == "all" goto all
  7. if "%2" == "finger" goto finger
  8. if "%2" == "sf" goto sf
  9. :all
  10. :finger
  11. :comp
  12. @echo on
  13. gcc  %3 %4 %5 -I. -c *.c
  14. @echo off
  15. if "%3" == "-g" goto debug
  16. @echo on
  17. gcc -o finger.exe *.o -lsocket -s
  18. @echo off
  19. goto next
  20. :debug
  21. @echo on
  22. gcc %3  -o  finger.exe *.o -lsocket 
  23. @echo off
  24. :next
  25. if "%1"=="." goto next1
  26. if not exist install.cmd goto a
  27. @echo copy finger.exe %1 >> install.cmd
  28. goto next1
  29. :a
  30. @echo copy finger.exe %1 > install.cmd
  31. :next1
  32. if "%2"=="finger" goto end
  33. goto sf:
  34. :usage
  35. echo Usage:    make  installdir program [options] [flags]
  36. echo .
  37. echo    program:        one of [finger  sf  all]
  38. echo    options:            (n)one of [-g  -O]
  39. echo    flags:    (n)one or both of [-DINFO_IS_DEFAULT -DERROR_HANDLER]
  40. echo .
  41. echo e.g:    make c:\bin all  
  42. echo        make . sf
  43. echo .
  44. echo .                   
  45. echo        make install     will place the new executables in installdir
  46. echo        make clean    will tidy up.
  47. goto end
  48. :instal
  49. install
  50. goto end
  51. :clean
  52. del *.o
  53. del *.exe
  54. del install.cmd
  55. del sf\sf.h 
  56. del make.cmd
  57. goto end
  58.