system.mk

changeset 9
55e7f2ff6021
parent 8
c1994196683f
child 16
f597c8f0bcc9
equal deleted inserted replaced
8:c1994196683f 9:55e7f2ff6021
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 ##
60 ## 60 ##
61 ## AR 61 ## AR
62 ## 62 ##
63 63
64 AR=ar 64 AR=ar
65 AR_FLAGS=crs 65 ARFLAGS=crs
66 66
67 67
68 ## 68 ##
69 ## Install & strip 69 ## Install & strip
70 ## 70 ##

mercurial