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