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 | |
---|
17 | JAVA_HOME ?= /usr/lib/jvm/java-6-sun |
---|
18 | JAVAC = $(JDK)/bin/javac |
---|
19 | JAR = $(JDK)/bin/jar |
---|
20 | |
---|
21 | ORIGIN = org/eyrie/eagle/remctl |
---|
22 | SOURCE = $(ORIGIN)/RemctlClient.java $(ORIGIN)/RemctlServer.java \ |
---|
23 | $(ORIGIN)/Remctl.java |
---|
24 | CLASS = $(SOURCE:.java=.class) |
---|
25 | |
---|
26 | all: remctl.jar t5.class t7.class |
---|
27 | |
---|
28 | t5.class: t5.java $(CLASS) |
---|
29 | $(JAVAC) -g t5.java |
---|
30 | |
---|
31 | t7.class: t7.java $(CLASS) |
---|
32 | $(JAVAC) -g t7.java |
---|
33 | |
---|
34 | remctl.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 | |
---|
46 | clean: |
---|
47 | rm -rf $(ORIGIN)/*.class remctl.jar *.class |
---|