-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathMakefile
More file actions
37 lines (28 loc) · 809 Bytes
/
Copy pathMakefile
File metadata and controls
37 lines (28 loc) · 809 Bytes
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
#
# Makefile for virtual stack executable
#
OBJS = netether.o netarp.o netip.o neticmp.o netudp.o nettcp.o processes.o stack.o
LIBS = -L ../Arrays -L ../Events -L ../NetTAP -larrays -levents -ltap
CFLAGS += -I ../Arrays -I ../Events -I ../NetTAP
#
# Global target
#
all: stack
#
# Cleaning target
#
clean:
rm -f core *.o stack
#
# Executable target
#
stack: $(OBJS)
$(CC) -o stack $(OBJS) $(LIBS)
stack.o: stack.c netether.h netip.h netarp.h neticmp.h netudp.h stack.h
netether.o: netether.c netether.h netip.h stack.h
netarp.o: netarp.c netether.h netip.h netarp.h stack.h
netip.o: netip.c netether.h netip.h neticmp.h stack.h
neticmp.o: neticmp.c netip.h neticmp.h stack.h
netudp.o: netudp.c netip.h neticmp.h stack.h
nettcp.o: nettcp.c netip.h stack.h
processes.o: processes.c netip.h stack.h