| 33 |
33 |
| 34 CC=gcc |
34 CC=gcc |
| 35 |
35 |
| 36 ANSI_SOURCE=-ansi |
36 ANSI_SOURCE=-ansi |
| 37 # gnu libc |
37 # gnu libc |
| 38 XOPEN_SOURCE=-ansi -D_XOPEN_SOURCE |
38 XOPEN_SOURCE=-ansi -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED |
| 39 # most other systems |
39 # most other systems |
| 40 #XOPEN_SOURCE=-ansi -D__EXTENSIONS__ |
40 #XOPEN_SOURCE=-ansi -D__EXTENSIONS__ |
| 41 |
41 |
| 42 # Same as '-Wall -pedantic-errors' without '-Wunused' as callbacks often |
42 # Same as '-Wall -pedantic-errors' without '-Wunused' as callbacks often |
| 43 # have unused variables. |
43 # have unused variables. |
| 44 WARN= -W -Wimplicit -Wreturn-type -Wswitch -Wcomment \ |
44 WARN= -W -Wimplicit -Wreturn-type -Wswitch -Wcomment \ |
| 45 -Wtrigraphs -Wformat -Wchar-subscripts -Wuninitialized \ |
45 -Wtrigraphs -Wformat -Wchar-subscripts -Wuninitialized \ |
| 46 -Wparentheses -pedantic-errors |
46 -Wparentheses -pedantic-errors |
| 47 |
47 |
| 48 CC_FLAGS=-g -O2 $(WARN) $(DEFINES) $(INCLUDES) $(EXTRA_INCLUDES) |
48 CFLAGS=-g -O2 $(WARN) $(DEFINES) $(INCLUDES) $(EXTRA_INCLUDES) |
| 49 LINK_FLAGS=-g $(LIBS) $(EXTRA_LIBS) |
49 LDFLAGS=-g $(LIBS) $(EXTRA_LIBS) |
| 50 |
50 |
| 51 |
51 |
| 52 ## |
52 ## |
| 53 ## make depend |
53 ## make depend |
| 54 ## |
54 ## |