ViewVC Help
View File | Revision Log | Show Annotations | Revision Graph | Root Listing
root/i-scream/projects/cms/source/server/uk/org/iscream/cms/server/core/Makefile
(Generate patch)

Comparing projects/cms/source/server/uk/org/iscream/cms/server/core/Makefile (file contents):
Revision 1.7 by ajm, Mon Nov 20 17:11:44 2000 UTC vs.
Revision 1.12.2.1 by tdb, Mon Dec 11 20:29:20 2000 UTC

# Line 1 | Line 1
1 < # Makefile for CORE
1 > # Makefile for uk.ac.ukc.iscream.core
2   # $Id$
3  
4 # For help type: make help
5
6
4   # Defining Filenames
5  
6 < CORE = Core.class ConfigurationManagerServant.class ConfigurationServant.class\
7 <       ScreenLoggerServant.class FileLoggerServant.class\
8 <       MultiLoggerServant.class
6 > CLASS = CircularIncludeException.class ConfigurationManagerServant.class\
7 >        ConfigurationServant.class Core.class\
8 >        LoggerImpl.class LoggerServant.class
9  
10 < SAMPLE = SampleConfigObtainer.class
10 > IDL = ../../../../../idl/.madeidl
11 > IDLFILES = ../../../../../idl/uk
12 > IDLMAKE = cd ../../../../.. && $(MAKE) buildidl
13  
14 < PACKAGE = Core.jar
14 > BUILD = ../../../../../build
15  
17 IDL = ../.madeidl
18 IDLFILES = ../uk
19 IDLMAKE = cd .. && $(MAKE) idl
20
16   # Defining "shortcuts" for building
17  
18 < core : $(IDL) $(CORE)
24 < sample : $(IDL) $(SAMPLE)
25 < all : core sample
26 < package : $(PACKAGE)
18 > all : core loggers
19  
20 < clean :
29 <        rm -f $(CORE) $(SAMPLE) $(PACKAGE)
20 > core : $(IDL) $(CLASS)
21  
22 < distclean : clean
23 <        rm -Rf $(IDLFILES)
24 <        rm -f $(IDL)
22 > loggers : mkloggers
23 > mkloggers :
24 >        cd loggers && $(MAKE) all
25  
26 < run : core
27 <        java Core
26 > clean :
27 >        rm -f $(CLASS)
28 >        cd loggers && $(MAKE) clean
29  
30   update :
31 <        cvs -q -d /usr/local/proj/co600_10/cvs update
31 >        cvs -q -d /usr/local/proj/co600_10/cvs update -d
32  
33   # Dependencies, and building
34  
35 < #clever catchall to build any .class file from a .java file
35 > # clever catchall to build any .class file from a .java file
36   %.class : %.java
37 <        javac $<
37 >        javac -g:none -O -d $(BUILD) $<
38  
39 < $(PACKAGE) : core
48 <        echo "Main-Class: Core" > MANIFEST_CORE_TMP
49 <        jar -cmf MANIFEST_CORE_TMP $(PACKAGE) $(CORE)
50 <        rm -f MANIFEST_CORE_TMP
51 <        @echo "----------------------------"
52 <        @echo "to run: java -jar $(PACKAGE)"
53 <        @echo "----------------------------"
54 <        @echo "WARNING: Need to sort Classpath"
55 <
56 < $(IDL) : ../iscream.idl
39 > $(IDL) : ../../../../../idl/iscream.idl
40          $(IDLMAKE)
58
59
60 # and the help :)
61
62 help :
63        @echo "Makefile usage [default: core]"
64        @echo
65        @echo "make run       - runs the core programs"
66        @echo
67        @echo "make core      - builds the core programs"
68        @echo "make sample    - builds the sample program"
69        @echo "make all       - builds both the core and sample"
70        @echo
71        @echo "make package   - packages the core programs into a JAR"
72        @echo
73        @echo "make clean     - removes all the compiled files"
74        @echo "make distclean - removes all the compiled files, and the IDL created files"
75        @echo

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines