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.11
Committed: Mon Nov 27 22:07:19 2000 UTC (23 years, 5 months ago) by tdb
Branch: MAIN
Changes since 1.10: +2 -2 lines
Log Message:
Added the new logger to the Makefile.

File Contents

# User Rev Content
1 tdb 1.1 # Makefile for CORE
2 tdb 1.11 # $Id: Makefile,v 1.10 2000/11/23 01:52:03 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.8 LoggerServant.class LoggerImpl.class ScreenLogger.class\
11 tdb 1.10 FileLogger.class MultiLogger.class SimpleGUILogger.class\
12 tdb 1.11 SimpleSwingLogger.class CircularIncludeException.class
13 tdb 1.1
14     SAMPLE = SampleConfigObtainer.class
15    
16 tdb 1.2 PACKAGE = Core.jar
17 tdb 1.1
18 tdb 1.4 IDL = ../.madeidl
19     IDLFILES = ../uk
20     IDLMAKE = cd .. && $(MAKE) idl
21 tdb 1.1
22 tdb 1.2 # Defining "shortcuts" for building
23 tdb 1.1
24 tdb 1.4 core : $(IDL) $(CORE)
25     sample : $(IDL) $(SAMPLE)
26 tdb 1.1 all : core sample
27     package : $(PACKAGE)
28    
29 tdb 1.2 clean :
30     rm -f $(CORE) $(SAMPLE) $(PACKAGE)
31    
32 tdb 1.4 distclean : clean
33     rm -Rf $(IDLFILES)
34     rm -f $(IDL)
35    
36     run : core
37 tdb 1.2 java Core
38    
39 tdb 1.5 update :
40     cvs -q -d /usr/local/proj/co600_10/cvs update
41 tdb 1.1
42 tdb 1.2 # Dependencies, and building
43 tdb 1.1
44 tdb 1.3 #clever catchall to build any .class file from a .java file
45     %.class : %.java
46     javac $<
47 tdb 1.1
48 tdb 1.4 $(PACKAGE) : core
49 tdb 1.1 echo "Main-Class: Core" > MANIFEST_CORE_TMP
50     jar -cmf MANIFEST_CORE_TMP $(PACKAGE) $(CORE)
51     rm -f MANIFEST_CORE_TMP
52     @echo "----------------------------"
53     @echo "to run: java -jar $(PACKAGE)"
54     @echo "----------------------------"
55 tdb 1.2 @echo "WARNING: Need to sort Classpath"
56 tdb 1.1
57 tdb 1.4 $(IDL) : ../iscream.idl
58     $(IDLMAKE)
59    
60 tdb 1.1
61     # and the help :)
62    
63     help :
64     @echo "Makefile usage [default: core]"
65     @echo
66 tdb 1.4 @echo "make run - runs the core programs"
67 tdb 1.1 @echo
68 tdb 1.4 @echo "make core - builds the core programs"
69     @echo "make sample - builds the sample program"
70     @echo "make all - builds both the core and sample"
71 tdb 1.1 @echo
72 tdb 1.4 @echo "make package - packages the core programs into a JAR"
73 tdb 1.1 @echo
74 tdb 1.4 @echo "make clean - removes all the compiled files"
75     @echo "make distclean - removes all the compiled files, and the IDL created files"
76 tdb 1.1 @echo