1 |
# Makefile for sample programs of the Java binding |
2 |
|
3 |
|
4 |
|
5 |
#================================================================ |
6 |
# Setting Variables |
7 |
#================================================================ |
8 |
|
9 |
|
10 |
# Generic settings |
11 |
SHELL = /bin/sh |
12 |
|
13 |
# Targets |
14 |
MYCLASSES = NodeExample001.class NodeExample002.class |
15 |
|
16 |
# Building binaries |
17 |
JAVAC = javac |
18 |
JAVACFLAGS = -d . |
19 |
JAVACENV = CLASSPATH=../estraier.jar |
20 |
|
21 |
|
22 |
|
23 |
#================================================================ |
24 |
# Actions |
25 |
#================================================================ |
26 |
|
27 |
|
28 |
all : $(MYCLASSES) |
29 |
|
30 |
|
31 |
clean : |
32 |
rm -rf $(MYCLASSES) *.exe *.o a.out check.out gmon.out leak.log casket *~ |
33 |
|
34 |
|
35 |
.PHONY : all clean |
36 |
|
37 |
|
38 |
|
39 |
#================================================================ |
40 |
# Building binaries |
41 |
#================================================================ |
42 |
|
43 |
|
44 |
NodeExample001.class : NodeExample001.java |
45 |
$(JAVACENV) $(JAVAC) $(JAVACFLAGS) NodeExample001.java |
46 |
|
47 |
|
48 |
NodeExample002.class : NodeExample002.java |
49 |
$(JAVACENV) $(JAVAC) $(JAVACFLAGS) NodeExample002.java |
50 |
|
51 |
|
52 |
|
53 |
# END OF FILE |