chiark / gitweb /
changed build arrangements, added version number, in preparation for productisation
[chiark-tcl.git] / base / common.make
1 VERSION ?=      1
2 FAMILY ?=       chiark_tcl
3
4 OPTIMISE ?=             -O2
5 TCL_MEM_DEBUG ?=        -DTCL_MEM_DEBUG
6
7 TCMDIFGEN ?=    $(BASE_DIR)/tcmdifgen
8 BASE_TCT ?=     $(BASE_DIR)/base.tct
9 BASE_SHLIB ?=   $(FAMILY)-$(VERSION)
10
11 ifeq ($(shell $(CC) -Wno-pointer-sign -E -x c /dev/null >/dev/null || echo x),)
12 CFLAGS +=       -Wno-pointer-sign
13 endif
14
15 CFLAGS +=       -g -Wall -Wmissing-prototypes -Wstrict-prototypes -Werror \
16                 $(OPTIMISE)
17 CPPFLAGS +=     -I$(BASE_DIR)
18 CPPFLAGS +=     $(TCL_MEM_DEBUG)
19
20 AUTOS +=        $(AUTO_SRCS) $(AUTO_HDRS)
21
22 default:        all
23