aboutsummaryrefslogtreecommitdiff
path: root/make/platform/multi_arch.mk
blob: fe6ac4be0eb4466a96a785e2a9759d2e00e59215 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
Description := Example configuration for build two libraries for separate \
architectures.

Configs := m32 m64
Arch := i386
Arch.m64 := x86_64

CC := clang

CFLAGS := -Wall -Werror
CFLAGS.m32 := $(CFLAGS) -m32 -O3
CFLAGS.m64 := $(CFLAGS) -m64 -O3

FUNCTIONS := moddi3 floatundixf udivdi3
FUNCTIONS.m64 := $(FUNCTIONS) lshrdi3