have sipb-xen-vnc-client depend on java-compiler rather than specifically sun-java5-jdk
[invirt/packages/invirt-vnc-client.git] / Makefile
1 #
2 # Making the VNC applet.
3 #
4
5 CP = cp
6 JC = javac
7 JCFLAGS = -target 1.1 -source 1.2
8 JAR = jar
9 ARCHIVE = VncViewer.jar
10 MANIFEST = MANIFEST.MF
11 PAGES = index.vnc
12 INSTALL_DIR = /usr/local/vnc/classes
13
14 CLASSES = VncViewer.class RfbProto.class AuthPanel.class VncCanvas.class \
15           VncCanvas2.class \
16           OptionsFrame.class ClipboardFrame.class ButtonPanel.class \
17           DesCipher.class CapabilityInfo.class CapsContainer.class \
18           RecordingFrame.class SessionRecorder.class \
19           SocketFactory.class HTTPConnectSocketFactory.class \
20           VNCProxyConnectSocketFactory.class VNCProxyConnectSocket.class \
21           HTTPConnectSocket.class ReloginPanel.class \
22           InStream.class MemInStream.class ZlibInStream.class \
23           VNCProxyConnectSocketWrapper.class SocketWrapper.class SocketWrapper\$$WrappingSocketImpl.class SIPBTrustManager.class
24
25 SOURCES = VncViewer.java RfbProto.java AuthPanel.java VncCanvas.java \
26           VncCanvas2.java \
27           OptionsFrame.java ClipboardFrame.java ButtonPanel.java \
28           DesCipher.java CapabilityInfo.java CapsContainer.java \
29           RecordingFrame.java SessionRecorder.java \
30           SocketFactory.java HTTPConnectSocketFactory.java \
31           VNCProxyConnectSocketFactory.java VNCProxyConnectSocket.java \
32           HTTPConnectSocket.java ReloginPanel.java \
33           InStream.java MemInStream.java ZlibInStream.java \
34           VNCProxyConnectSocketWrapper.java SocketWrapper.java SIPBTrustManager.java
35
36 EXTRAJAR = trust.store
37
38 all: $(CLASSES) $(ARCHIVE)
39
40 $(CLASSES): $(SOURCES)
41         $(JC) $(JCFLAGS) -O $(SOURCES)
42
43 $(ARCHIVE): $(CLASSES) $(MANIFEST)
44         $(JAR) cfm $(ARCHIVE) $(MANIFEST) $(CLASSES) $(EXTRAJAR)
45
46 install: $(CLASSES) $(ARCHIVE)
47         $(CP) $(CLASSES) $(ARCHIVE) $(PAGES) $(INSTALL_DIR)
48
49 export:: $(CLASSES) $(ARCHIVE) $(PAGES)
50         @$(ExportJavaClasses)
51
52 clean::
53         $(RM) *.class *.jar