1 |
< |
# Makefile for Filter |
1 |
> |
# Makefile for uk.ac.ukc.iscream.core |
2 |
|
# $Id$ |
3 |
|
|
4 |
– |
# For help type: make help |
5 |
– |
|
6 |
– |
|
4 |
|
# Defining Filenames |
5 |
|
|
6 |
< |
FILTERMAN = HostInit.class HostListener.class FilterManager.class\ |
7 |
< |
FilterMain.class FilterServant.class\ |
11 |
< |
RootFilterMain.class RootFilterServant.class\ |
12 |
< |
UDPReader.class FilterThread.class RootFilterThread.class\ |
13 |
< |
TCPReader.class TCPReaderInit.class\ |
14 |
< |
XMLStringParser.class XMLPacketMaker.class XMLPacket.class |
6 |
> |
CLASS = FilterMain.class FilterServant.class FilterThread.class\ |
7 |
> |
TCPReader.class TCPReaderInit.class UDPReader.class |
8 |
|
|
9 |
< |
FMPACKAGE = FilterManager.jar |
9 |
> |
IDL = ../../../../../idl/.madeidl |
10 |
> |
IDLFILES = ../../../../../idl/uk |
11 |
> |
IDLMAKE = cd ../../../../.. && $(MAKE) idl |
12 |
|
|
18 |
– |
IDL = ../.madeidl |
19 |
– |
IDLFILES = ../uk |
20 |
– |
IDLMAKE = cd .. && $(MAKE) idl |
21 |
– |
|
13 |
|
# Defining "shortcuts" for building |
14 |
|
|
15 |
< |
fm : $(IDL) $(FILTERMAN) |
25 |
< |
all : fm |
26 |
< |
package : $(FMPACKAGE) |
15 |
> |
all : filter |
16 |
|
|
17 |
+ |
filter : $(IDL) $(CLASS) |
18 |
+ |
|
19 |
|
clean : |
20 |
< |
rm -f $(FILTERMAN) $(FMPACKAGE) |
20 |
> |
rm -f $(CLASS) |
21 |
|
|
31 |
– |
distclean : clean |
32 |
– |
rm -Rf $(IDLFILES) |
33 |
– |
rm -f $(IDL) |
34 |
– |
|
35 |
– |
run : $(FILTERMAN) |
36 |
– |
java FilterManagerMain |
37 |
– |
|
22 |
|
update : |
23 |
< |
cvs -q -d /usr/local/proj/co600_10/cvs update |
23 |
> |
cvs -q -d /usr/local/proj/co600_10/cvs update -d |
24 |
|
|
25 |
|
# Dependencies, and building |
26 |
|
|
27 |
< |
#clever catchall to build any .class file from a .java file |
27 |
> |
# clever catchall to build any .class file from a .java file |
28 |
|
%.class : %.java |
29 |
|
javac $< |
30 |
|
|
31 |
< |
$(FMPACKAGE) : fm |
48 |
< |
echo "Main-Class: FilterManager" > MANIFEST_FM_TMP |
49 |
< |
jar -cmf MANIFEST_FM_TMP $(FMPACKAGE) $(FILTERMAN) |
50 |
< |
rm -f MANIFEST_FM_TMP |
51 |
< |
@echo "----------------------------" |
52 |
< |
@echo "to run: java -jar $(PACKAGE)" |
53 |
< |
@echo "----------------------------" |
54 |
< |
@echo "WARNING: Need to sort Classpath" |
55 |
< |
|
56 |
< |
$(IDL) : ../iscream.idl |
31 |
> |
$(IDL) : ../../../../../idl/iscream.idl |
32 |
|
$(IDLMAKE) |
58 |
– |
|
59 |
– |
# and the help :) |
60 |
– |
|
61 |
– |
help : |
62 |
– |
@echo "Makefile usage [default: fm]" |
63 |
– |
@echo |
64 |
– |
@echo "make run - runs the filter manager programs" |
65 |
– |
@echo |
66 |
– |
@echo "make fm - builds the filter manager programs" |
67 |
– |
@echo "make all - builds all the programs" |
68 |
– |
@echo |
69 |
– |
@echo "make package - packages the filter manager programs into a JAR" |
70 |
– |
@echo |
71 |
– |
@echo "make clean - removes all the compiled files" |
72 |
– |
@echo "make distclean - removes all the compiled files, and the IDL created files" |
73 |
– |
@echo |