-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
54 lines (41 loc) · 1.05 KB
/
Copy pathMakefile
File metadata and controls
54 lines (41 loc) · 1.05 KB
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
CC=gcc
CFLAGS=-g
TARGET:test.exe
LIBS=-lpthread -L ./CommandParser -lcli -lrt
OBJS=gluethread/glthread.o \
graph.o \
topologies.o \
net.o \
utils.o \
nwcli.o \
comm.o
test.exe:testapp.o ${OBJS} CommandParser/libcli.a
${CC} ${CFLAGS} testapp.o ${OBJS} -o test.exe ${LIBS}
testapp.o:testapp.c
${CC} ${CFLAGS} -c testapp.c -o testapp.o
gluethread/glthread.o:gluethread/glthread.c
${CC} ${CFLAGS} -c -I gluethread gluethread/glthread.c -o gluethread/glthread.o
graph.o:graph.c
${CC} ${CFLAGS} -c -I . graph.c -o graph.o
topologies.o:topologies.c
${CC} ${CFLAGS} -c -I . topologies.c -o topologies.o
net.o:net.c
${CC} ${CFLAGS} -c -I . net.c -o net.o
utils.o:utils.c
${CC} ${CFLAGS} -c -I . utils.c -o utils.o
nwcli.o:nwcli.c
${CC} ${CFLAGS} -c -I . nwcli.c -o nwcli.o
comm.o:comm.c
${CC} ${CFLAGS} -c -I . comm.c -o comm.o
CommandParser/libcli.a:
(cd CommandParser; make)
clean:
rm -f *.o
rm -f gluethread/glthread.o
rm -f *exe
all:
make
(cd CommandParser; make)
cleanall:
make clean
(cd CommandParser; make clean)