comparison keiko/config.mk @ 0:bfdcc3820b32

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