1 |
tdb |
1.1 |
# Makefile for CORE |
2 |
tdb |
1.5 |
# $Id: Makefile,v 1.4 2000/11/14 02:33:25 tdb1 Exp $ |
3 |
tdb |
1.1 |
|
4 |
|
|
# For help type: make help |
5 |
|
|
|
6 |
tdb |
1.2 |
|
7 |
tdb |
1.1 |
# Defining Filenames |
8 |
|
|
|
9 |
|
|
CORE = Core.class ConfiguratorServant.class ConfigurationServant.class\ |
10 |
tdb |
1.4 |
ScreenLoggerServant.class FileLoggerServant.class |
11 |
tdb |
1.1 |
|
12 |
|
|
SAMPLE = SampleConfigObtainer.class |
13 |
|
|
|
14 |
tdb |
1.2 |
PACKAGE = Core.jar |
15 |
tdb |
1.1 |
|
16 |
tdb |
1.4 |
IDL = ../.madeidl |
17 |
|
|
IDLFILES = ../uk |
18 |
|
|
IDLMAKE = cd .. && $(MAKE) idl |
19 |
tdb |
1.1 |
|
20 |
tdb |
1.2 |
# Defining "shortcuts" for building |
21 |
tdb |
1.1 |
|
22 |
tdb |
1.4 |
core : $(IDL) $(CORE) |
23 |
|
|
sample : $(IDL) $(SAMPLE) |
24 |
tdb |
1.1 |
all : core sample |
25 |
|
|
package : $(PACKAGE) |
26 |
|
|
|
27 |
tdb |
1.2 |
clean : |
28 |
|
|
rm -f $(CORE) $(SAMPLE) $(PACKAGE) |
29 |
|
|
|
30 |
tdb |
1.4 |
distclean : clean |
31 |
|
|
rm -Rf $(IDLFILES) |
32 |
|
|
rm -f $(IDL) |
33 |
|
|
|
34 |
|
|
run : core |
35 |
tdb |
1.2 |
java Core |
36 |
|
|
|
37 |
tdb |
1.5 |
update : |
38 |
|
|
cvs -q -d /usr/local/proj/co600_10/cvs update |
39 |
tdb |
1.1 |
|
40 |
tdb |
1.2 |
# Dependencies, and building |
41 |
tdb |
1.1 |
|
42 |
tdb |
1.3 |
#clever catchall to build any .class file from a .java file |
43 |
|
|
%.class : %.java |
44 |
|
|
javac $< |
45 |
tdb |
1.1 |
|
46 |
tdb |
1.4 |
$(PACKAGE) : core |
47 |
tdb |
1.1 |
echo "Main-Class: Core" > MANIFEST_CORE_TMP |
48 |
|
|
jar -cmf MANIFEST_CORE_TMP $(PACKAGE) $(CORE) |
49 |
|
|
rm -f MANIFEST_CORE_TMP |
50 |
|
|
@echo "----------------------------" |
51 |
|
|
@echo "to run: java -jar $(PACKAGE)" |
52 |
|
|
@echo "----------------------------" |
53 |
tdb |
1.2 |
@echo "WARNING: Need to sort Classpath" |
54 |
tdb |
1.1 |
|
55 |
tdb |
1.4 |
$(IDL) : ../iscream.idl |
56 |
|
|
$(IDLMAKE) |
57 |
|
|
|
58 |
tdb |
1.1 |
|
59 |
|
|
# and the help :) |
60 |
|
|
|
61 |
|
|
help : |
62 |
|
|
@echo "Makefile usage [default: core]" |
63 |
|
|
@echo |
64 |
tdb |
1.4 |
@echo "make run - runs the core programs" |
65 |
tdb |
1.1 |
@echo |
66 |
tdb |
1.4 |
@echo "make core - builds the core programs" |
67 |
|
|
@echo "make sample - builds the sample program" |
68 |
|
|
@echo "make all - builds both the core and sample" |
69 |
tdb |
1.1 |
@echo |
70 |
tdb |
1.4 |
@echo "make package - packages the core programs into a JAR" |
71 |
tdb |
1.1 |
@echo |
72 |
tdb |
1.4 |
@echo "make clean - removes all the compiled files" |
73 |
|
|
@echo "make distclean - removes all the compiled files, and the IDL created files" |
74 |
tdb |
1.1 |
@echo |