Allow building with javac 1.5
[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
24 SOURCES = VncViewer.java RfbProto.java AuthPanel.java VncCanvas.java \
25           VncCanvas2.java \
26           OptionsFrame.java ClipboardFrame.java ButtonPanel.java \
27           DesCipher.java CapabilityInfo.java CapsContainer.java \
28           RecordingFrame.java SessionRecorder.java \
29           SocketFactory.java HTTPConnectSocketFactory.java \
30           VNCProxyConnectSocketFactory.java VNCProxyConnectSocket.java \
31           HTTPConnectSocket.java ReloginPanel.java \
32           InStream.java MemInStream.java ZlibInStream.java
33
34 all: $(CLASSES) $(ARCHIVE)
35
36 $(CLASSES): $(SOURCES)
37         $(JC) $(JCFLAGS) -O $(SOURCES)
38
39 $(ARCHIVE): $(CLASSES) $(MANIFEST)
40         $(JAR) cfm $(ARCHIVE) $(MANIFEST) $(CLASSES)
41
42 install: $(CLASSES) $(ARCHIVE)
43         $(CP) $(CLASSES) $(ARCHIVE) $(PAGES) $(INSTALL_DIR)
44
45 export:: $(CLASSES) $(ARCHIVE) $(PAGES)
46         @$(ExportJavaClasses)
47
48 clean::
49         $(RM) *.class *.jar