-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathmakefile
46 lines (40 loc) · 1.03 KB
/
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
37
38
39
40
41
42
43
44
45
46
listsObjects = ../list/list_init.o \
../list/list_insert_next.o \
../list/list_push.o \
../list/list_insert_prev.o \
../list/list_remove.o \
../list/list_destory.o \
../list/list_pop.o \
../list/list_shift.o
setObjects = ../set/set_init.o \
../set/set_destory.o \
../set/set_difference.o \
../set/set_insert.o \
../set/set_intersection.o \
../set/set_is_equal.o \
../set/set_is_member.o \
../set/set_is_subset.o \
../set/set_remove.o \
../set/set_union.o
graphObjects = main.o \
graph_init.o \
graph_destory.o \
graph_insert_vertex.o \
graph_insert_edge.o \
graph_remove_vertex.o \
graph_remove_edge.o \
graph_is_adjacent.o \
graph_adjlist.o
objects = $(listsObjects) $(setObjects) $(graphObjects)
build: $(objects)
gcc -o test.out $(objects)
make clean
$(objects): graph.h
test:
./test.out
run:
make
make test
.PHONY : clean
clean :
-rm $(objects)