ViewVC Help
View File | Revision Log | Show Annotations | Revision Graph | Root Listing
root/i-scream/projects/cms/source/server/uk/org/iscream/cms/server/filter/Makefile
Revision: 1.5
Committed: Mon Nov 20 22:05:35 2000 UTC (23 years, 6 months ago) by tdb
Branch: MAIN
Changes since 1.4: +3 -2 lines
Log Message:
Added the Filter to the Makefile. Still todo, seperate the "make run" into two
seperate sections so that the Filter or the FilterManager can be run.

File Contents

# User Rev Content
1 tdb 1.1 # Makefile for Filter
2 tdb 1.5 # $Id: Makefile,v 1.4 2000/11/16 14:47:16 tdb1 Exp $
3 tdb 1.1
4     # For help type: make help
5    
6    
7     # Defining Filenames
8    
9 tdb 1.5 FILTERMAN = FilterManager.class FilterManagerListener.class\
10     HostInit.class Filter.class
11 tdb 1.1
12     FMPACKAGE = FilterManager.jar
13    
14 tdb 1.3 IDL = ../.madeidl
15     IDLFILES = ../uk
16     IDLMAKE = cd .. && $(MAKE) idl
17 tdb 1.1
18     # Defining "shortcuts" for building
19    
20 tdb 1.3 fm : $(IDL) $(FILTERMAN)
21 tdb 1.1 all : fm
22     package : $(FMPACKAGE)
23    
24     clean :
25     rm -f $(FILTERMAN) $(FMPACKAGE)
26    
27 tdb 1.3 distclean : clean
28     rm -Rf $(IDLFILES)
29     rm -f $(IDL)
30    
31 tdb 1.1 run : $(FILTERMAN)
32     java FilterManager
33    
34 tdb 1.4 update :
35     cvs -q -d /usr/local/proj/co600_10/cvs update
36 tdb 1.1
37     # Dependencies, and building
38    
39 tdb 1.2 #clever catchall to build any .class file from a .java file
40     %.class : %.java
41     javac $<
42 tdb 1.1
43 tdb 1.3 $(FMPACKAGE) : fm
44 tdb 1.1 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 tdb 1.3 $(IDL) : ../iscream.idl
53     $(IDLMAKE)
54 tdb 1.1
55     # and the help :)
56    
57     help :
58     @echo "Makefile usage [default: fm]"
59     @echo
60 tdb 1.3 @echo "make run - runs the filter manager programs"
61 tdb 1.1 @echo
62 tdb 1.3 @echo "make fm - builds the filter manager programs"
63     @echo "make all - builds all the programs"
64 tdb 1.1 @echo
65 tdb 1.3 @echo "make package - packages the filter manager programs into a JAR"
66 tdb 1.1 @echo
67 tdb 1.3 @echo "make clean - removes all the compiled files"
68     @echo "make distclean - removes all the compiled files, and the IDL created files"
69 tdb 1.1 @echo