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
Revision: 1.7
Committed: Mon Nov 20 17:11:44 2000 UTC (23 years, 5 months ago) by ajm
Branch: MAIN
Changes since 1.6: +2 -2 lines
Log Message:
Modified to change the name of the Configurator -> ConfigurationManager
Added initial work for multiple configurations

File Contents

# User Rev Content
1 tdb 1.1 # Makefile for CORE
2 ajm 1.7 # $Id: Makefile,v 1.6 2000/11/17 16:28:24 tdb1 Exp $
3 tdb 1.1
4     # For help type: make help
5    
6 tdb 1.2
7 tdb 1.1 # Defining Filenames
8    
9 ajm 1.7 CORE = Core.class ConfigurationManagerServant.class ConfigurationServant.class\
10 tdb 1.6 ScreenLoggerServant.class FileLoggerServant.class\
11     MultiLoggerServant.class
12 tdb 1.1
13     SAMPLE = SampleConfigObtainer.class
14    
15 tdb 1.2 PACKAGE = Core.jar
16 tdb 1.1
17 tdb 1.4 IDL = ../.madeidl
18     IDLFILES = ../uk
19     IDLMAKE = cd .. && $(MAKE) idl
20 tdb 1.1
21 tdb 1.2 # Defining "shortcuts" for building
22 tdb 1.1
23 tdb 1.4 core : $(IDL) $(CORE)
24     sample : $(IDL) $(SAMPLE)
25 tdb 1.1 all : core sample
26     package : $(PACKAGE)
27    
28 tdb 1.2 clean :
29     rm -f $(CORE) $(SAMPLE) $(PACKAGE)
30    
31 tdb 1.4 distclean : clean
32     rm -Rf $(IDLFILES)
33     rm -f $(IDL)
34    
35     run : core
36 tdb 1.2 java Core
37    
38 tdb 1.5 update :
39     cvs -q -d /usr/local/proj/co600_10/cvs update
40 tdb 1.1
41 tdb 1.2 # Dependencies, and building
42 tdb 1.1
43 tdb 1.3 #clever catchall to build any .class file from a .java file
44     %.class : %.java
45     javac $<
46 tdb 1.1
47 tdb 1.4 $(PACKAGE) : core
48 tdb 1.1 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 tdb 1.2 @echo "WARNING: Need to sort Classpath"
55 tdb 1.1
56 tdb 1.4 $(IDL) : ../iscream.idl
57     $(IDLMAKE)
58    
59 tdb 1.1
60     # and the help :)
61    
62     help :
63     @echo "Makefile usage [default: core]"
64     @echo
65 tdb 1.4 @echo "make run - runs the core programs"
66 tdb 1.1 @echo
67 tdb 1.4 @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 tdb 1.1 @echo
71 tdb 1.4 @echo "make package - packages the core programs into a JAR"
72 tdb 1.1 @echo
73 tdb 1.4 @echo "make clean - removes all the compiled files"
74     @echo "make distclean - removes all the compiled files, and the IDL created files"
75 tdb 1.1 @echo