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 = FilterManager.class FilterManagerListener.class\ |
7 |
< |
HostInit.class Filter.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 |
|
|
14 |
– |
IDL = ../.madeidl |
15 |
– |
IDLFILES = ../uk |
16 |
– |
IDLMAKE = cd .. && $(MAKE) idl |
17 |
– |
|
13 |
|
# Defining "shortcuts" for building |
14 |
|
|
15 |
< |
fm : $(IDL) $(FILTERMAN) |
21 |
< |
all : fm |
22 |
< |
package : $(FMPACKAGE) |
15 |
> |
all : $(IDL) $(CLASS) |
16 |
|
|
17 |
|
clean : |
18 |
< |
rm -f $(FILTERMAN) $(FMPACKAGE) |
18 |
> |
rm -f $(CLASS) |
19 |
|
|
27 |
– |
distclean : clean |
28 |
– |
rm -Rf $(IDLFILES) |
29 |
– |
rm -f $(IDL) |
30 |
– |
|
31 |
– |
run : $(FILTERMAN) |
32 |
– |
java FilterManager |
33 |
– |
|
20 |
|
update : |
21 |
< |
cvs -q -d /usr/local/proj/co600_10/cvs update |
21 |
> |
cvs -q -d /usr/local/proj/co600_10/cvs update -d |
22 |
|
|
23 |
|
# Dependencies, and building |
24 |
|
|
25 |
< |
#clever catchall to build any .class file from a .java file |
25 |
> |
# clever catchall to build any .class file from a .java file |
26 |
|
%.class : %.java |
27 |
|
javac $< |
28 |
|
|
29 |
< |
$(FMPACKAGE) : fm |
44 |
< |
echo "Main-Class: FilterManager" > MANIFEST_FM_TMP |
45 |
< |
jar -cmf MANIFEST_FM_TMP $(FMPACKAGE) $(FILTERMAN) |
46 |
< |
rm -f MANIFEST_FM_TMP |
47 |
< |
@echo "----------------------------" |
48 |
< |
@echo "to run: java -jar $(PACKAGE)" |
49 |
< |
@echo "----------------------------" |
50 |
< |
@echo "WARNING: Need to sort Classpath" |
51 |
< |
|
52 |
< |
$(IDL) : ../iscream.idl |
29 |
> |
$(IDL) : ../../../../../idl/iscream.idl |
30 |
|
$(IDLMAKE) |
54 |
– |
|
55 |
– |
# and the help :) |
56 |
– |
|
57 |
– |
help : |
58 |
– |
@echo "Makefile usage [default: fm]" |
59 |
– |
@echo |
60 |
– |
@echo "make run - runs the filter manager programs" |
61 |
– |
@echo |
62 |
– |
@echo "make fm - builds the filter manager programs" |
63 |
– |
@echo "make all - builds all the programs" |
64 |
– |
@echo |
65 |
– |
@echo "make package - packages the filter manager programs into a JAR" |
66 |
– |
@echo |
67 |
– |
@echo "make clean - removes all the compiled files" |
68 |
– |
@echo "make distclean - removes all the compiled files, and the IDL created files" |
69 |
– |
@echo |