-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathMakefile
57 lines (39 loc) · 1.12 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
47
48
49
50
51
52
53
54
55
56
57
CFLAG = -O -ansi -Wwrite-strings
CINC = -I ./
CLIB = -L .
OBJS = cell.o maze.o queen.o char.o move.o number.o sort.o screen.o math.o text.o view.o text_view.o main.o
EXE = main
.SUFFIXES: .cpp .o
all: $(EXE)
$(EXE): $(OBJS)
g++ $(CFLAG) $(CINC) $(OBJS) -o $@
rm -r $(OBJS)
screen.o: screen.cpp screen.h
g++ $(CINC) -c $<
math.o: math.cpp math.h
g++ $(CINC) -c $<
sort.o: sort.cpp sort.h
g++ $(CINC) -c $<
char.o: char.cpp char.h
g++ $(CINC) -c $<
cell.o: cell.cpp cell.h
g++ $(CINC) -c $<
maze.o: maze.cpp maze.h cell.h
g++ $(CINC) -c $<
queen.o: queen.cpp queen.h
g++ $(CINC) -c $<
number.o: number.cpp number.h
g++ $(CINC) -c $<
move.o: move.cpp move.h
g++ $(CINC) -c $<
text.o: text.cpp text.h
g++ $(CINC) -c $<
view.o: view.cpp view.h
g++ $(CINC) -c $<
text_view.o: text_view.cpp text_view.h view.h text.h screen.h
g++ $(CINC) -c $<
main.o: main.cpp screen.h text_view.h text.h view.h space.h node.h linked_queue.h \
queue.h array_queue.h list.h list_node.h stack.h char.h queen.h maze.h cell.h bin_node.h bin_tree.h huffman_tree.h graph.h
g++ $(CINC) -c $<
clean:
rm -r $(EXE) $(OBJS)