chiark / gitweb /
update wip; see cvs diff from 1.12 before checkin
[chiark-tcl.git] / base / common.make
1 OPTIMISE ?=             -O2
2 TCL_MEM_DEBUG ?=        -DTCL_MEM_DEBUG
3
4 TCMDIFGEN ?=    $(BASE_DIR)/tcmdifgen
5 BASE_TCT ?=     $(BASE_DIR)/base.tct
6
7 ifeq ($(shell $(CC) -Wno-pointer-sign -E -x c /dev/null >/dev/null || echo x),)
8 CFLAGS +=       -Wno-pointer-sign
9 endif
10
11 CFLAGS +=       -g -Wall -Wmissing-prototypes -Wstrict-prototypes -Werror \
12                 $(OPTIMISE)
13 CPPFLAGS +=     -I$(BASE_DIR)
14 CPPFLAGS +=     $(TCL_MEM_DEBUG)
15
16 AUTOS +=        $(AUTO_SRCS) $(AUTO_HDRS)
17
18 default:        all
19