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