1 |
|
all: exe |
2 |
< |
|
2 |
> |
|
3 |
|
clean: |
4 |
|
rm -f *.o *.bak |
5 |
< |
rm -f Host core |
6 |
< |
|
7 |
< |
exe: |
8 |
< |
g++ -c -Isocket++-1.10 -Lsocket++-1.10 -o Host.o Host.cpp |
9 |
< |
g++ -c -Isocket++-1.10 -Lsocket++-1.10 -o XMLFormatter.o XMLFormatter.cpp |
10 |
< |
g++ -c -Isocket++-1.10 -Lsocket++-1.10 -o SmallNet.o SmallNet.cpp |
11 |
< |
g++ -c -Isocket++-1.10 -Lsocket++-1.10 -o Config.o Config.cpp |
12 |
< |
g++ -c -Isocket++-1.10 -Lsocket++-1.10 -o SysMon.o SysMon.cpp |
13 |
< |
g++ -c -Isocket++-1.10 -Lsocket++-1.10 -o SubNet.o SubNet.cpp |
14 |
< |
g++ -c -Isocket++-1.10 -Lsocket++-1.10 -o SubPipe.o SubPipe.cpp |
15 |
< |
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 |
16 |
< |
|
5 |
> |
rm -f Host core libsocket++.a |
6 |
> |
|
7 |
> |
exe: libsocket++.a |
8 |
> |
g++ -c -Isocket++-1.10 -o Host.o Host.cpp |
9 |
> |
g++ -c -Isocket++-1.10 -o XMLFormatter.o XMLFormatter.cpp |
10 |
> |
g++ -c -Isocket++-1.10 -o SmallNet.o SmallNet.cpp |
11 |
> |
g++ -c -Isocket++-1.10 -o Config.o Config.cpp |
12 |
> |
g++ -c -Isocket++-1.10 -o SysMon.o SysMon.cpp |
13 |
> |
g++ -c -Isocket++-1.10 -o SubNet.o SubNet.cpp |
14 |
> |
g++ -c -Isocket++-1.10 -o SubPipe.o SubPipe.cpp |
15 |
> |
g++ -o Host -L. -lsocket++ -lsocket -lnsl Host.o Config.o XMLFormatter.o SmallNet.o SysMon.o SubNet.o SubPipe.o libsocket++.a |
16 |
> |
|
17 |
|
run: clean exe |
18 |
|
Host |
19 |
|
|
20 |
+ |
libsocket++.a: |
21 |
+ |
cd socket++-1.10 && sh configure && make |
22 |
+ |
cp socket++-1.10/libsocket++.a . |
23 |
+ |
cd socket++-1.10 && make real-clean |