chiark / gitweb /
Debian package wip
[chiark-tcl.git] / base / common.make
index c24170ef0c208b22ec2175a86cac3072d2b83d36..a71574786383e0d4e93395310d11f8b23d19b3f2 100644 (file)
@@ -1,8 +1,35 @@
+# base code for various Tcl extensions
+# Copyright 2006 Ian Jackson
+#
+# This program is free software; you can redistribute it and/or
+# modify it under the terms of the GNU General Public License as
+# published by the Free Software Foundation; either version 2 of the
+# License, or (at your option) any later version.
+#
+# This program is distributed in the hope that it will be useful, but
+# WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+# General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with this library; if not, write to the Free Software
+# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+# 02110-1301, USA.
+
+
+VERSION ?=     1
+FAMILY ?=      chiark_tcl
+
 OPTIMISE ?=            -O2
 TCL_MEM_DEBUG ?=       -DTCL_MEM_DEBUG
 
 TCMDIFGEN ?=   $(BASE_DIR)/tcmdifgen
 BASE_TCT ?=    $(BASE_DIR)/base.tct
+BASE_SHLIB ?=  $(FAMILY)-$(VERSION)
+
+ifeq ($(shell $(CC) -Wno-pointer-sign -E -x c /dev/null >/dev/null || echo x),)
+CFLAGS +=      -Wno-pointer-sign
+endif
 
 CFLAGS +=      -g -Wall -Wmissing-prototypes -Wstrict-prototypes -Werror \
                $(OPTIMISE)