File: Makefile.in

package info (click to toggle)
xprobe 0.3-4
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, buster, sid
  • size: 2,588 kB
  • sloc: cpp: 12,317; sh: 2,858; makefile: 692; ansic: 7
file content (65 lines) | stat: -rwxr-xr-x 1,231 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
# USI++ Makefile
#

LIBS=@LIBS@
CFLAGS=@CFLAGS@ -I/usr/include/pcap -I. -Wall
CXX=@CXX@
INSTALL=@INSTALL@
RANLIB=@RANLIB@

all: usi++

.PHONY: usi++

clear:
	clear

usi++:icmp.o datalink.o ip.o misc.o udp.o tcp.o TX_IP.o Layer2.o arp.o
	ar cr libusi++.a `LC_ALL=C ls *.o`
#	ld *.o -Bshareable -o libusi++.so
	$(RANLIB) libusi++.a
	rm -f *.o

arp.o: arp.cc
	$(CXX) $(CFLAGS) -c -O2 arp.cc

datalink.o: datalink.cc
	$(CXX) $(CFLAGS) -c -O2 datalink.cc

icmp.o: icmp.cc
	$(CXX) $(CFLAGS) -c -O2 icmp.cc

ip.o: ip.cc
	$(CXX) $(CFLAGS) -c -O2 ip.cc

misc.o: misc.cc
	$(CXX) $(CFLAGS) -c -O2 misc.cc

udp.o: udp.cc
	$(CXX) $(CFLAGS) -c -O2 udp.cc

tcp.o: tcp.cc
	$(CXX) $(CFLAGS) -c -O2 tcp.cc

Layer2.o: Layer2.cc
	$(CXX) $(CFLAGS) -c -O2 Layer2.cc

TX_IP.o: TX_IP.cc
	$(CXX) $(CFLAGS) -c -O2 TX_IP.cc

install:
	$(INSTALL) -g bin -o root -m 0755 libusi++.* /usr/lib
	mkdir -m 0755 /usr/include/usi++||true
	cp -R usi++/* /usr/include/usi++
	chown -R root /usr/include/usi++
	@echo To build programs using libusi++, you have to do \'c++ foo.cc -lusi++ $(LIBS)\'

uninstall:
	rm -f /usr/lib/libusi++.a
	rm -rf /usr/include/usi++

clean:
	rm -f *.o *.a
    
distclean:
	rm -f *.o *.a Makefile config.log config.status config.h usi++ *.so