Make invirt-update-vnc-cert sign the applet if a signing keystore is configured and...
[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
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           HTTPConnectSocket.class ReloginPanel.class \
21           InStream.class MemInStream.class ZlibInStream.class
22
23 SOURCES = VncViewer.java RfbProto.java AuthPanel.java VncCanvas.java \
24           VncCanvas2.java \
25           OptionsFrame.java ClipboardFrame.java ButtonPanel.java \
26           DesCipher.java CapabilityInfo.java CapsContainer.java \
27           RecordingFrame.java SessionRecorder.java \
28           SocketFactory.java HTTPConnectSocketFactory.java \
29           HTTPConnectSocket.java ReloginPanel.java \
30           InStream.java MemInStream.java ZlibInStream.java
31
32 all: $(CLASSES) $(ARCHIVE)
33
34 $(CLASSES): $(SOURCES)
35         $(JC) $(JCFLAGS) -O $(SOURCES)
36
37 $(ARCHIVE): $(CLASSES) $(MANIFEST)
38         $(JAR) cfm $(ARCHIVE) $(MANIFEST) $(CLASSES)
39
40 install: $(CLASSES) $(ARCHIVE)
41         $(CP) $(CLASSES) $(ARCHIVE) $(PAGES) $(INSTALL_DIR)
42
43 export:: $(CLASSES) $(ARCHIVE) $(PAGES)
44         @$(ExportJavaClasses)
45
46 clean::
47         $(RM) *.class *.jar