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