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.5 by tdb, Thu Nov 16 14:46:14 2000 UTC vs.
Revision 1.15 by tdb, Tue May 29 17:02:34 2001 UTC

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

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines