-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile.gcc
41 lines (37 loc) · 848 Bytes
/
Makefile.gcc
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
CFLAGS = \
-DSTANDALONE \
-W \
-Waggregate-return \
-Wall \
-Wbad-function-cast \
-Wcast-qual \
-Wcast-align \
-Wdisabled-optimization \
-Wfloat-equal \
-Winline \
-Wlong-long \
-Wmissing-declarations \
-Wmissing-format-attribute \
-Wmissing-noreturn \
-Wmissing-prototypes \
-Wnested-externs \
-Wpacked \
-Wpadded \
-Wpointer-arith \
-Wredundant-decls \
-Wshadow \
-Wsign-compare \
-Wstrict-prototypes \
-Wundef \
-Wunreachable-code \
-Wwrite-strings \
-ansi \
-pedantic
# All possible warning messages have been enabled above except the following:
# -Wconversion - somewhat contradicts warnings for missing prototypes
# -Wtraditional - disallows 1.0f, 1L, etc., which weakens strict type checking
all: astrcmp.exe
clean:
-rm -f *.exe *.o
astrcmp.exe: astrcmp.c astrcmp.h
$(CC) $(CFLAGS) -o astrcmp.exe astrcmp.c