-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile.win
121 lines (84 loc) · 8.49 KB
/
Makefile.win
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
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
# Project: learn-c
# Makefile created by Dev-C++ 5.11
CPP = g++.exe -D__DEBUG__
CC = gcc.exe -D__DEBUG__
WINDRES = windres.exe
OBJ = LinkedList/01-linkedlist-create.o LinkedList/01-linkedlist-create-test.o LinkedList/02-linkedlist-insert.o LinkedList/02-linkedlist-insert-test.o LinkedList/03-linkedlist-delete.o LinkedList/03-linkedlist-delete-test.o LinkedList/04-linkedlist-reverse.o LinkedList/04-linkedlist-reverse-test.o LinkedList/05-linkedlist-compare.o LinkedList/05-linkedlist-compare-test.o LinkedList/06-linkedlist-merge.o LinkedList/06-linkedlist-merge-test.o LinkedList/07-linkedlist-get.o LinkedList/07-linkedlist-get-test.o LinkedList/08-linkedlist-distinct.o LinkedList/08-linkedlist-distinct-test.o LinkedList/09-linkedlist-cycle-detection.o LinkedList/09-linkedlist-cycle-detection-test.o LinkedList/10-linkedlist-find-merge-point.o LinkedList/10-linkedlist-find-merge-point-test.o LinkedList/11-linkedlist-split.o LinkedList/11-linkedlist-split-test.o LinkedList/12-linkedlist-intersect.o LinkedList/12-linkedlist-intersect-test.o LinkedList/13-linkedlist-diff.o LinkedList/13-linkedlist-diff-test.o LinkedList/99-linkedlist-print.o LinkedList/99-linkedlist-print-test.o LinkedList/stdafx.o LinkedList/Test.o LinkedList/Util.o LinkedList/main.o
LINKOBJ = LinkedList/01-linkedlist-create.o LinkedList/01-linkedlist-create-test.o LinkedList/02-linkedlist-insert.o LinkedList/02-linkedlist-insert-test.o LinkedList/03-linkedlist-delete.o LinkedList/03-linkedlist-delete-test.o LinkedList/04-linkedlist-reverse.o LinkedList/04-linkedlist-reverse-test.o LinkedList/05-linkedlist-compare.o LinkedList/05-linkedlist-compare-test.o LinkedList/06-linkedlist-merge.o LinkedList/06-linkedlist-merge-test.o LinkedList/07-linkedlist-get.o LinkedList/07-linkedlist-get-test.o LinkedList/08-linkedlist-distinct.o LinkedList/08-linkedlist-distinct-test.o LinkedList/09-linkedlist-cycle-detection.o LinkedList/09-linkedlist-cycle-detection-test.o LinkedList/10-linkedlist-find-merge-point.o LinkedList/10-linkedlist-find-merge-point-test.o LinkedList/11-linkedlist-split.o LinkedList/11-linkedlist-split-test.o LinkedList/12-linkedlist-intersect.o LinkedList/12-linkedlist-intersect-test.o LinkedList/13-linkedlist-diff.o LinkedList/13-linkedlist-diff-test.o LinkedList/99-linkedlist-print.o LinkedList/99-linkedlist-print-test.o LinkedList/stdafx.o LinkedList/Test.o LinkedList/Util.o LinkedList/main.o
LIBS = -L"d:/Program Files (x86)/Dev-Cpp/MinGW64/lib" -L"d:/Program Files (x86)/Dev-Cpp/MinGW64/x86_64-w64-mingw32/lib" -static-libgcc -g3
INCS = -I"d:/Program Files (x86)/Dev-Cpp/MinGW64/include" -I"d:/Program Files (x86)/Dev-Cpp/MinGW64/x86_64-w64-mingw32/include" -I"d:/Program Files (x86)/Dev-Cpp/MinGW64/lib/gcc/x86_64-w64-mingw32/4.9.2/include"
CXXINCS = -I"d:/Program Files (x86)/Dev-Cpp/MinGW64/include" -I"d:/Program Files (x86)/Dev-Cpp/MinGW64/x86_64-w64-mingw32/include" -I"d:/Program Files (x86)/Dev-Cpp/MinGW64/lib/gcc/x86_64-w64-mingw32/4.9.2/include" -I"d:/Program Files (x86)/Dev-Cpp/MinGW64/lib/gcc/x86_64-w64-mingw32/4.9.2/include/c++"
BIN = learn-c.exe
CXXFLAGS = $(CXXINCS) -g3
CFLAGS = $(INCS) -g3
RM = rm.exe -f
.PHONY: all all-before all-after clean clean-custom
all: all-before $(BIN) all-after
clean: clean-custom
${RM} $(OBJ) $(BIN)
$(BIN): $(OBJ)
$(CC) $(LINKOBJ) -o $(BIN) $(LIBS)
LinkedList/01-linkedlist-create.o: LinkedList/01-linkedlist-create.c
$(CC) -c LinkedList/01-linkedlist-create.c -o LinkedList/01-linkedlist-create.o $(CFLAGS)
LinkedList/01-linkedlist-create-test.o: LinkedList/01-linkedlist-create-test.c
$(CC) -c LinkedList/01-linkedlist-create-test.c -o LinkedList/01-linkedlist-create-test.o $(CFLAGS)
LinkedList/02-linkedlist-insert.o: LinkedList/02-linkedlist-insert.c
$(CC) -c LinkedList/02-linkedlist-insert.c -o LinkedList/02-linkedlist-insert.o $(CFLAGS)
LinkedList/02-linkedlist-insert-test.o: LinkedList/02-linkedlist-insert-test.c
$(CC) -c LinkedList/02-linkedlist-insert-test.c -o LinkedList/02-linkedlist-insert-test.o $(CFLAGS)
LinkedList/03-linkedlist-delete.o: LinkedList/03-linkedlist-delete.c
$(CC) -c LinkedList/03-linkedlist-delete.c -o LinkedList/03-linkedlist-delete.o $(CFLAGS)
LinkedList/03-linkedlist-delete-test.o: LinkedList/03-linkedlist-delete-test.c
$(CC) -c LinkedList/03-linkedlist-delete-test.c -o LinkedList/03-linkedlist-delete-test.o $(CFLAGS)
LinkedList/04-linkedlist-reverse.o: LinkedList/04-linkedlist-reverse.c
$(CC) -c LinkedList/04-linkedlist-reverse.c -o LinkedList/04-linkedlist-reverse.o $(CFLAGS)
LinkedList/04-linkedlist-reverse-test.o: LinkedList/04-linkedlist-reverse-test.c
$(CC) -c LinkedList/04-linkedlist-reverse-test.c -o LinkedList/04-linkedlist-reverse-test.o $(CFLAGS)
LinkedList/05-linkedlist-compare.o: LinkedList/05-linkedlist-compare.c
$(CC) -c LinkedList/05-linkedlist-compare.c -o LinkedList/05-linkedlist-compare.o $(CFLAGS)
LinkedList/05-linkedlist-compare-test.o: LinkedList/05-linkedlist-compare-test.c
$(CC) -c LinkedList/05-linkedlist-compare-test.c -o LinkedList/05-linkedlist-compare-test.o $(CFLAGS)
LinkedList/06-linkedlist-merge.o: LinkedList/06-linkedlist-merge.c
$(CC) -c LinkedList/06-linkedlist-merge.c -o LinkedList/06-linkedlist-merge.o $(CFLAGS)
LinkedList/06-linkedlist-merge-test.o: LinkedList/06-linkedlist-merge-test.c
$(CC) -c LinkedList/06-linkedlist-merge-test.c -o LinkedList/06-linkedlist-merge-test.o $(CFLAGS)
LinkedList/07-linkedlist-get.o: LinkedList/07-linkedlist-get.c
$(CC) -c LinkedList/07-linkedlist-get.c -o LinkedList/07-linkedlist-get.o $(CFLAGS)
LinkedList/07-linkedlist-get-test.o: LinkedList/07-linkedlist-get-test.c
$(CC) -c LinkedList/07-linkedlist-get-test.c -o LinkedList/07-linkedlist-get-test.o $(CFLAGS)
LinkedList/08-linkedlist-distinct.o: LinkedList/08-linkedlist-distinct.c
$(CC) -c LinkedList/08-linkedlist-distinct.c -o LinkedList/08-linkedlist-distinct.o $(CFLAGS)
LinkedList/08-linkedlist-distinct-test.o: LinkedList/08-linkedlist-distinct-test.c
$(CC) -c LinkedList/08-linkedlist-distinct-test.c -o LinkedList/08-linkedlist-distinct-test.o $(CFLAGS)
LinkedList/09-linkedlist-cycle-detection.o: LinkedList/09-linkedlist-cycle-detection.c
$(CC) -c LinkedList/09-linkedlist-cycle-detection.c -o LinkedList/09-linkedlist-cycle-detection.o $(CFLAGS)
LinkedList/09-linkedlist-cycle-detection-test.o: LinkedList/09-linkedlist-cycle-detection-test.c
$(CC) -c LinkedList/09-linkedlist-cycle-detection-test.c -o LinkedList/09-linkedlist-cycle-detection-test.o $(CFLAGS)
LinkedList/10-linkedlist-find-merge-point.o: LinkedList/10-linkedlist-find-merge-point.c
$(CC) -c LinkedList/10-linkedlist-find-merge-point.c -o LinkedList/10-linkedlist-find-merge-point.o $(CFLAGS)
LinkedList/10-linkedlist-find-merge-point-test.o: LinkedList/10-linkedlist-find-merge-point-test.c
$(CC) -c LinkedList/10-linkedlist-find-merge-point-test.c -o LinkedList/10-linkedlist-find-merge-point-test.o $(CFLAGS)
LinkedList/11-linkedlist-split.o: LinkedList/11-linkedlist-split.c
$(CC) -c LinkedList/11-linkedlist-split.c -o LinkedList/11-linkedlist-split.o $(CFLAGS)
LinkedList/11-linkedlist-split-test.o: LinkedList/11-linkedlist-split-test.c
$(CC) -c LinkedList/11-linkedlist-split-test.c -o LinkedList/11-linkedlist-split-test.o $(CFLAGS)
LinkedList/12-linkedlist-intersect.o: LinkedList/12-linkedlist-intersect.c
$(CC) -c LinkedList/12-linkedlist-intersect.c -o LinkedList/12-linkedlist-intersect.o $(CFLAGS)
LinkedList/12-linkedlist-intersect-test.o: LinkedList/12-linkedlist-intersect-test.c
$(CC) -c LinkedList/12-linkedlist-intersect-test.c -o LinkedList/12-linkedlist-intersect-test.o $(CFLAGS)
LinkedList/13-linkedlist-diff.o: LinkedList/13-linkedlist-diff.c
$(CC) -c LinkedList/13-linkedlist-diff.c -o LinkedList/13-linkedlist-diff.o $(CFLAGS)
LinkedList/13-linkedlist-diff-test.o: LinkedList/13-linkedlist-diff-test.c
$(CC) -c LinkedList/13-linkedlist-diff-test.c -o LinkedList/13-linkedlist-diff-test.o $(CFLAGS)
LinkedList/99-linkedlist-print.o: LinkedList/99-linkedlist-print.c
$(CC) -c LinkedList/99-linkedlist-print.c -o LinkedList/99-linkedlist-print.o $(CFLAGS)
LinkedList/99-linkedlist-print-test.o: LinkedList/99-linkedlist-print-test.c
$(CC) -c LinkedList/99-linkedlist-print-test.c -o LinkedList/99-linkedlist-print-test.o $(CFLAGS)
LinkedList/stdafx.o: LinkedList/stdafx.cpp
$(CC) -c LinkedList/stdafx.cpp -o LinkedList/stdafx.o $(CFLAGS)
LinkedList/Test.o: LinkedList/Test.c
$(CC) -c LinkedList/Test.c -o LinkedList/Test.o $(CFLAGS)
LinkedList/Util.o: LinkedList/Util.c
$(CC) -c LinkedList/Util.c -o LinkedList/Util.o $(CFLAGS)
LinkedList/main.o: LinkedList/main.c
$(CC) -c LinkedList/main.c -o LinkedList/main.o $(CFLAGS)