home *** CD-ROM | disk | FTP | other *** search
/ Chip 1998 July / Chip_1998-07_cd.bin / zkuste / JBuilder / BDK / Win / bdk_sep97.exe / _SETUP.1 / quote.gmk < prev    next >
Encoding:
Text File  |  1997-09-10  |  1.7 KB  |  62 lines

  1.  
  2. CLASSFILES= \
  3.     sunw/demo/quote/PropertyPanel.class \
  4.     sunw/demo/quote/HttpProxy.class \
  5.     sunw/demo/quote/YahooQuote.class \
  6.     sunw/demo/quote/LocalQuote.class \
  7.     sunw/demo/quote/QuoteServer.class \
  8.     sunw/demo/quote/QuoteServerImpl.class \
  9.     sunw/demo/quote/QuoteServerGUI.class \
  10.     sunw/demo/quote/QuoteServerApp.class \
  11.     sunw/demo/quote/QuoteListener.class \
  12.     sunw/demo/quote/QuoteListenerImpl.class \
  13.     sunw/demo/quote/QuoteEvent.class \
  14.     sunw/demo/quote/QuoteMonitor.class \
  15.     sunw/demo/quote/QuoteServerImpl_Stub.class \
  16.     sunw/demo/quote/QuoteServerImpl_Skel.class \
  17.     sunw/demo/quote/QuoteListenerImpl_Stub.class \
  18.     sunw/demo/quote/QuoteListenerImpl_Skel.class
  19.  
  20. DATAFILES= \
  21.     sunw/demo/quote/YahooQuoteLogo.gif
  22.  
  23. JARFILE= ../jars/quote.jar
  24.  
  25. all: $(JARFILE)
  26.  
  27.  
  28. run: all
  29.     java sunw.demo.quote.QuoteServerApp
  30.  
  31.  
  32. # Create a JAR file with a suitable manifest.
  33.  
  34. $(JARFILE): $(CLASSFILES) $(DATAFILES)
  35.     echo "Name: sunw/demo/quote/QuoteMonitor.class" >> manifest.tmp
  36.     echo "Java-Bean: True" >> manifest.tmp
  37.     jar cfm $(JARFILE) manifest.tmp sunw/demo/quote/*.class $(DATAFILES)
  38.     @/bin/rm manifest.tmp
  39.  
  40. # Rule for compiling a normal .java file
  41. %.class: %.java
  42.     export CLASSPATH; CLASSPATH=. ; \
  43.     javac $<
  44.  
  45. # Create RMI stub .class files
  46. sunw/demo/quote/QuoteServerImpl_Skel.class \
  47.     sunw/demo/quote/QuoteServerImpl_Stub.class: \
  48.         sunw/demo/quote/QuoteServerImpl.class
  49.     export CLASSPATH; CLASSPATH=. ; \
  50.     rmic -d . sunw.demo.quote.QuoteServerImpl
  51.  
  52. # Create RMI stub .class files
  53. sunw/demo/quote/QuoteListenerImpl_Skel.class \
  54.     sunw/demo/quote/QuoteListenerImpl_Stub.class: \
  55.         sunw/demo/quote/QuoteListenerImpl.class
  56.     export CLASSPATH; CLASSPATH=. ; \
  57.     rmic -d . sunw.demo.quote.QuoteListenerImpl
  58.  
  59. clean:
  60.     /bin/rm -f sunw/demo/quote/*.class
  61.     /bin/rm -f $(JARFILE)
  62.