ViewVC Help
View File | Revision Log | Show Annotations | Revision Graph | Root Listing
root/i-scream/projects/cms/source/host/c++/Makefile
(Generate patch)

Comparing projects/cms/source/host/c++/Makefile (file contents):
Revision 1.3 by ab11, Mon Feb 26 14:56:44 2001 UTC vs.
Revision 1.10 by tdb, Wed Jun 13 20:13:49 2001 UTC

# Line 1 | Line 1
1 < all:
2 <        g++ -c -o XMLFormatter.o XMLFormatter.cpp
3 <        g++ -c -o Config.o Config.cpp
4 <        g++ -c -o SmallNet.o SmallNet.cpp
5 <        
1 > # config
2 >
3 > OBJECTS = Host.o XMLFormatter.o SmallNet.o Config.o\
4 >          SysMon.o SubNet.o SubPipe.o
5 >
6 > SOCKLIBDIR = socket++-1.10
7 > SOCKLIB = libsocket++.a
8 >
9 > HOST = Host
10 >
11 > # default
12 > all: $(HOST)
13 >
14 > # target to compile the main binary
15 > $(HOST): $(OBJECTS) $(SOCKLIB)
16 >        g++ -o $@ -L. -lsocket++ -lsocket -lnsl $(OBJECTS) $(SOCKLIB)
17 >
18 > # target to compile any object file
19 > %.o : %.cpp
20 >        g++ -c -I$(SOCKLIBDIR) -o $@ $<
21 >
22 > # target to compile the socket library
23 > $(SOCKLIB):
24 >        cd $(SOCKLIBDIR) && sh configure && make
25 >        cp $(SOCKLIBDIR)/$(SOCKLIB) .
26 >        cd $(SOCKLIBDIR) && make real-clean
27 >
28 > # cleanup target
29   clean:
30 <        rm -f XMLFormatter.o XMLTest.o XMLTest Host.o SmallNet.o Config.o SysMon.o SmallNet
31 <        rm -f XMLFormatter.cpp.bak XMLformatter.h.bak Host.cpp.bak Config.cpp.bak Config.h.bak
9 <        rm -f SmallNet.h.bak SmallNet.cpp.bak Makefile.bak SysMon.h.bak SysMon.cpp.bak
10 <        rm -f Host core
11 <        
12 < config:
13 <        g++ -c -o Config.o Config.cpp
30 >        rm -f $(OBJECTS) $(SOCKLIB) $(HOST)
31 >        rm -f core
32  
33 < smallnet:
34 <        g++ -c -o SmallNet.o SmallNet.cpp
35 < exe:
36 <        g++ -c -Isocket++-1.10 -Lsocket++-1.10 -o Host.o Host.cpp
19 <        g++ -c -Isocket++-1.10 -Lsocket++-1.10 -o XMLFormatter.o XMLFormatter.cpp
20 <        g++ -c -Isocket++-1.10 -Lsocket++-1.10 -o SmallNet.o SmallNet.cpp
21 <        g++ -c -Isocket++-1.10 -Lsocket++-1.10 -o Config.o Config.cpp
22 <        g++ -c -Isocket++-1.10 -Lsocket++-1.10 -o SysMon.o SysMon.cpp
23 <        g++ -o Host -Isocket++-1.10 -Lsocket++-1.10 -lsocket++ -lsocket -lnsl Host.o Config.o XMLFormatter.o SmallNet.o SysMon.o socket++-1.10/libsocket++.a
24 <        
25 < pipe:
26 <        g++ -c -Isocket++-1.10 -Lsocket++-1.10 -o PipeTest.o PipeTest.cpp
27 <        g++ -o PipeTest -Isocket++-1.10 -Lsocket++-1.10 -lsocket++ -lsocket -lnsl PipeTest.o socket++-1.10/libsocket++.a
33 > # run target
34 > run: $(HOST)
35 >        ./$(HOST)
36 >

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines