home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: Java / Java.zip / telnet4j.zip / Makefile < prev    next >
Makefile  |  1997-07-08  |  4KB  |  126 lines

  1. #
  2. # This file is part of "The Java Telnet Applet".
  3. #
  4. # This is free software; you can redistribute it and/or modify
  5. # it under the terms of the GNU General Public License as published by
  6. # the Free Software Foundation; either version 2, or (at your option)
  7. # any later version.
  8. #
  9. # "The Java Telnet Applet" is distributed in the hope that it will be 
  10. # useful, but WITHOUT ANY WARRANTY; without even the implied warranty of
  11. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  12. # GNU General Public License for more details.
  13. # You should have received a copy of the GNU General Public License
  14. # along with The JAVA Telnet Applet; see the file COPYING.  If not, write to 
  15. # the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
  16. # Boston, MA 02111-1307, USA.
  17. #
  18. # $Id: Makefile,v 1.24 1997/07/08 09:34:38 leo Exp $
  19.  
  20. OPT    = -O
  21. DEBUG    = 
  22.  
  23. .SUFFIXES: .java .class .html
  24.  
  25. .java.class:
  26.     javac $(OPT) $(DEBUG) $<
  27.  
  28. .class.html:    
  29.     appletviewer $@
  30.  
  31. HELP:
  32.     @echo 'To compile "The Java Telnet Applet" do one of the following:'
  33.     @echo '------------------------------------------------------------'
  34.     @echo 'make all          - compile all files to classes'
  35.     @echo 'make test         - compile applet and run appletviewer'
  36.     @echo 'make telnet       - compile standalone and run telnet'
  37.     @echo 'make chartest     - compile character display test and run'
  38.     @echo 'make proxy        - compile proxy server'
  39.     @echo 'make doc          - create documentation'
  40.     @echo 'make clean        - delete backup files'
  41.     @echo 'make realclean    - make clean and delete .class files'
  42.  
  43. all: appWrapper.class telnet.class modules tools
  44.     @echo All classes created.
  45.  
  46. test: appWrapper.class telnet.class
  47.     appletviewer index.test.html
  48.  
  49. telnet:    appWrapper.class telnet.class
  50.     java telnet localhost    
  51.  
  52. chartest: CharDisplayTest.class
  53.     appletviewer CharDisplay.html
  54.  
  55. doc:
  56.     javadoc -d Documentation/Source -author -version display socket modules \
  57.             telnet.java appWrapper.java \
  58.                 tools/proxy.java CharDisplayTest.java IOtest.java \
  59.                 TelnetWrapper.java
  60.  
  61. tar:    
  62.     rm -f ../telnet.tgz ../telnet.zip
  63.     (cd ..; tar cvf - Telnet | gzip - > telnet.tgz)
  64.     (cd ..; zip -r telnet.zip Telnet)
  65.  
  66. bin-tar: all
  67.     (cd ..; tar cvf - Telnet/*.class Telnet/*/*.class \
  68.                           Telnet/README Telnet/INSTALL Telnet/COPYING \
  69.         | gzip - > classes.tgz)
  70.     (cd ..; zip -r classes.zip Telnet/*.class Telnet/*/*.class \
  71.                                    Telnet/README Telnet/INSTALL Telnet/COPYING)
  72.  
  73. revision: 
  74.     grep @version *.java */*.java|awk '{split($$6,rev,".");printf("%-26.26s %2.2s.%-2.2s (%s)\n",$$1,rev[1],rev[2],$$7);}' > REVISION
  75.     rcs2log *.java */*.java > CHANGES
  76.     sed -e"s/package:.*$$/package: `date`/" index.html > index.html.x
  77.     mv index.html.x index.html
  78.  
  79. dist:    realclean all doc revision tar bin-tar
  80.     @echo DONE.
  81.  
  82. clean:    
  83.     rm -f *~ */*~
  84.  
  85. realclean:    clean
  86.     rm -f *.class */*.class
  87.     (cd tools; make clean)
  88.  
  89. # dependencies
  90.  
  91. appWrapper.class: appWrapper.java frame.java
  92.  
  93. telnet.class: display socket modules \
  94.               telnet.java 
  95.  
  96. # display classes and terminal emulation
  97.  
  98. display: display/vt320.class 
  99. display/vt320.class: display/CharDisplay.class display/TerminalHost.class display/Terminal.class
  100. display/CharDisplay.class: display/SoftFont.class
  101.  
  102. # socket io classes
  103. socket: socket/TelnetIO.class
  104.  
  105. socket/TelnetIO.class: socket/StatusPeer.class
  106.  
  107. # dynamical loaded modules
  108. modules: modules/ButtonBar.class \
  109.          modules/Script.class \
  110.          modules/MudConnector.class
  111.  
  112. modules/ButtonBar.class: modules/Module.java modules/ButtonBar.java frame.java
  113. modules/Script.class: modules/Module.java modules/Script.java
  114. modules/MudConnector.class: modules/Module.java modules/MudConnector.java
  115.  
  116. # tools
  117. tools: tools/proxy.class CharDisplayTest.class \
  118.        IOtest.class TelnetWrapper.class tools/mrelayd
  119.  
  120. tools/proxy.class: tools/proxy.java
  121. CharDisplayTest.class: CharDisplayTest.java display/CharDisplay.java
  122. IOtest.class: IOtest.java socket/TelnetIO.java
  123. TelnetWrapper.class: TelnetWrapper.java socket/TelnetIO.java
  124. tools/mrelayd: tools/mrelayd.c
  125.