annotate keiko/config.mk @ 1:b5139af1a420 tip basis

Fixed permissions on compile scripts
author Mike Spivey <mike@cs.ox.ac.uk>
date Fri, 13 Oct 2017 17:27:58 +0100
parents bfdcc3820b32
children
rev   line source
mike@0 1 # Choose C compiler depending on host type
mike@0 2
mike@0 3 HOST := $(shell uname -s)-$(shell uname -m)
mike@0 4
mike@0 5 CC-Linux-i686 = gcc
mike@0 6 CC-Linux-x86_64 = gcc
mike@0 7 CC-Darwin-i386 = gcc -m32
mike@0 8 CC-Darwin-x86_64 = gcc -m32
mike@0 9 CC-Linux-armv6l = gcc
mike@0 10 CC-Linux-armv7l = gcc
mike@0 11
mike@0 12 DEF-Linux-x86_64 = -DM64X32
mike@0 13
mike@0 14 _CC := $(CC-$(HOST))
mike@0 15 HOST_DEFINES = $(DEF-$(HOST))
mike@0 16
mike@0 17 ifndef _CC
mike@0 18 $(error Can't configure for host type $(HOST))
mike@0 19 endif
mike@0 20
mike@0 21 CC = $(_CC) -std=gnu99