source: web/old/remctl-2.14/java/Makefile @ f6f3e91

web
Last change on this file since f6f3e91 was f6f3e91, checked in by Jessica B. Hamrick <jhamrick@…>, 15 years ago

Preserve directory hierarchy (not sure what happened to it)

  • Property mode set to 100644
File size: 1.4 KB
Line 
1# Makefile for Java remctl implementation.
2#
3# This Makefile is not (yet) integrated with the rest of the remctl build
4# system.  You will need to either edit the JDK setting below or override it
5# on the command line with:
6#
7#     make JAVA_HOME=/path/to/jdk/directory
8#
9# Currently, only the Sun Java JDK is supported (1.4.2, 5, or 6).
10#
11# Originally written by Marcus Watts <mdw@umich.edu>
12# Copyright 2007 Marcus Watts
13# Copyright 2007, 2008 Board of Trustees, Leland Stanford Jr. University
14#
15# See LICENSE for licensing terms.
16
17JAVA_HOME ?= /usr/lib/jvm/java-6-sun
18JAVAC      = $(JDK)/bin/javac
19JAR        = $(JDK)/bin/jar
20
21ORIGIN     = org/eyrie/eagle/remctl
22SOURCE     = $(ORIGIN)/RemctlClient.java $(ORIGIN)/RemctlServer.java \
23             $(ORIGIN)/Remctl.java
24CLASS      = $(SOURCE:.java=.class)
25
26all: remctl.jar t5.class t7.class
27
28t5.class: t5.java $(CLASS)
29        $(JAVAC) -g t5.java
30
31t7.class: t7.java $(CLASS)
32        $(JAVAC) -g t7.java
33
34remctl.jar: $(CLASS)
35        $(JAR) cfe remctl.jar $(ORIGIN)/RemctlClient $(ORIGIN)/*.class
36
37$(ORIGIN)/RemctlClient.class: $(ORIGIN)/RemctlClient.java $(ORIGIN)/Remctl.class
38        $(JAVAC) -g $(ORIGIN)/RemctlClient.java
39
40$(ORIGIN)/RemctlServer.class: $(ORIGIN)/RemctlServer.java $(ORIGIN)/Remctl.class
41        $(JAVAC) -g $(ORIGIN)/RemctlServer.java
42
43$(ORIGIN)/Remctl.class: $(ORIGIN)/Remctl.java
44        $(JAVAC) -g $(ORIGIN)/Remctl.java
45
46clean:
47        rm -rf $(ORIGIN)/*.class remctl.jar *.class
Note: See TracBrowser for help on using the repository browser.