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 |
2 |
> |
make exe |
3 |
|
|
4 |
|
clean: |
5 |
|
rm -f XMLFormatter.o XMLTest.o XMLTest Host.o SmallNet.o Config.o SysMon.o SmallNet |
6 |
|
rm -f XMLFormatter.cpp.bak XMLformatter.h.bak Host.cpp.bak Config.cpp.bak Config.h.bak |
7 |
|
rm -f SmallNet.h.bak SmallNet.cpp.bak Makefile.bak SysMon.h.bak SysMon.cpp.bak |
8 |
< |
rm -f Host core |
8 |
> |
rm -f SubNet.h.bak SubNet.cpp.bak SubNet.o SubPipe.o |
9 |
> |
rm -f Host core |
10 |
|
|
12 |
– |
config: |
13 |
– |
g++ -c -o Config.o Config.cpp |
14 |
– |
|
15 |
– |
smallnet: |
16 |
– |
g++ -c -o SmallNet.o SmallNet.cpp |
11 |
|
exe: |
12 |
|
g++ -c -Isocket++-1.10 -Lsocket++-1.10 -o Host.o Host.cpp |
13 |
|
g++ -c -Isocket++-1.10 -Lsocket++-1.10 -o XMLFormatter.o XMLFormatter.cpp |
14 |
|
g++ -c -Isocket++-1.10 -Lsocket++-1.10 -o SmallNet.o SmallNet.cpp |
15 |
|
g++ -c -Isocket++-1.10 -Lsocket++-1.10 -o Config.o Config.cpp |
16 |
|
g++ -c -Isocket++-1.10 -Lsocket++-1.10 -o SysMon.o SysMon.cpp |
17 |
< |
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 |
17 |
> |
g++ -c -Isocket++-1.10 -Lsocket++-1.10 -o SubNet.o SubNet.cpp |
18 |
> |
g++ -c -Isocket++-1.10 -Lsocket++-1.10 -o SubPipe.o SubPipe.cpp |
19 |
> |
g++ -o Host -Isocket++-1.10 -Lsocket++-1.10 -lsocket++ -lsocket -lnsl Host.o Config.o XMLFormatter.o SmallNet.o SysMon.o SubNet.o SubPipe.o socket++-1.10/libsocket++.a |
20 |
|
|
21 |
< |
pipe: |
22 |
< |
g++ -c -Isocket++-1.10 -Lsocket++-1.10 -o PipeTest.o PipeTest.cpp |
23 |
< |
g++ -o PipeTest -Isocket++-1.10 -Lsocket++-1.10 -lsocket++ -lsocket -lnsl PipeTest.o socket++-1.10/libsocket++.a |
21 |
> |
run: |
22 |
> |
make clean exe |
23 |
> |
Host |
24 |
> |
|