forked from donaldsharp/mpls_utils
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
36 lines (25 loc) · 1021 Bytes
/
Makefile
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
CFLAGS = -g -c -Wall -Werror
all: mpls-ping mpls-daemon
mpls_util.o: mpls_util.c mpls_util.h
gcc $(CFLAGS) -o mpls_util.o mpls_util.c
mpls_network.o: mpls_network.c mpls_network.h
gcc $(CFLAGS) -o mpls_network.o mpls_network.c
mpls_packet.o: mpls_packet.c mpls_packet.h
gcc $(CFLAGS) -o mpls_packet.o mpls_packet.c
mpls_label.o: mpls_label.c mpls_label.h
gcc $(CFLAGS) -o mpls_label.o mpls_label.c
mpls_ping.o: mpls_ping.c
gcc $(CFLAGS) -o mpls_ping.o mpls_ping.c
mpls-ping: mpls_ping.o mpls_label.o mpls_packet.o mpls_network.o mpls_util.o
gcc -o mpls-ping mpls_ping.o mpls_label.o mpls_packet.o mpls_network.o mpls_util.o
mpls_daemon.o: mpls_daemon.c
gcc $(CFLAGS) -o mpls_daemon.o mpls_daemon.c
mpls-daemon: mpls_daemon.o mpls_label.o mpls_packet.o mpls_network.o mpls_util.o
gcc -g -o mpls-daemon mpls_daemon.o mpls_label.o mpls_packet.o mpls_network.o mpls_util.o
install: mpls-daemon mpls-ping
cp mpls-daemon $DESTDIR
cp mpls-ping $DESTDIR
clean:
rm -f *.o
rm -f mpls-daemon
rm -f mpls-ping