-
Notifications
You must be signed in to change notification settings - Fork 0
/
makefile
49 lines (45 loc) · 1.16 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
CFLAGS = -std=c99 \
-pipe \
-ggdb3 -Wstrict-overflow=5 -fstack-protector-all \
-W -Wall -Wextra \
-Wbad-function-cast \
-Wcast-align \
-Wcast-qual \
-Wconversion \
-Wfloat-equal \
-Wformat-y2k \
-Winit-self \
-Winline \
-Winvalid-pch \
-Wmissing-declarations \
-Wmissing-field-initializers \
-Wmissing-format-attribute \
-Wmissing-include-dirs \
-Wmissing-noreturn \
-Wmissing-prototypes \
-Wnested-externs \
-Wnormalized=nfc \
-Wold-style-definition \
-Woverlength-strings \
-Wpacked \
-Wpadded \
-Wpointer-arith \
-Wredundant-decls \
-Wshadow \
-Wsign-compare \
-Wstack-protector \
-Wstrict-aliasing=2 \
-Wstrict-prototypes \
-Wundef \
-Wunsafe-loop-optimizations \
-Wvolatile-register-var \
-Wwrite-strings
#------------------------------------------------------------------------------
.PHONY : all clean
#------------------------------------------------------------------------------
all : teste
teste : teste.o grafo.o
$(CC) $(CFLAGS) -o $@ $^ -l cgraph
#------------------------------------------------------------------------------
clean :
$(RM) teste *.o