summaryrefslogtreecommitdiffstats
path: root/rules/pre/klibc.make
blob: 78645646bed57256226b38c3e3b6b75c42e8b558 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
# -*-makefile-*-
#
# Copyright (C) 2009 by Jon Ringle <jon@ringle.org>
#
# See CREDITS for details about who has contributed to this project.
#
# For further information about the PTXdist project and license conditions
# see the README file.
#

#
# This file contains global macro and environment definitions for klibc
#

# ----------------------------------------------------------------------------
# KLIBC stuff
# ----------------------------------------------------------------------------

KLIBC_PATH := $(CROSS_PATH)

KLIBC_CFLAGS	:= -I$(PTXDIST_SYSROOT_TARGET)/usr/lib/klibc/include
KLIBC_LDFLAGS	:= -L$(PTXDIST_SYSROOT_TARGET)/usr/lib/klibc/lib
KLIBC_ENV_CFLAGS	:= CFLAGS="$(KLIBC_CFLAGS)"
KLIBC_ENV_LDFLAGS	:= LDFLAGS="$(KLIBC_LDFLAGS)"

KLIBC_ENV_CC := CC=klcc
KLIBC_ENV_LD := LD=klcc


KLIBC_ENV_PROGS := \
	$(KLIBC_ENV_CC) \
	$(KLIBC_ENV_LD)

KLIBC_ARCH_ENV := KLIBCARCH=$(PTXCONF_ARCH_STRING)

KLIBC_ENV := \
	$(CROSS_ENV_PROGS) \
	$(KLIBC_ENV_PROGS) \
	$(KLIBC_ARCH_ENV) \
	$(KLIBC_ENV_CFLAGS) \
	$(KLIBC_ENV_LDFLAGS)

KLIBC_AUTOCONF_SYSROOT_ROOT := \
	--prefix=

KLIBC_AUTOCONF_ARCH := $(CROSS_AUTOCONF_ARCH)

KLIBC_AUTOCONF := $(KLIBC_AUTOCONF_SYSROOT_ROOT) $(KLIBC_AUTOCONF_ARCH)

INITRAMFS_CONTROL := $(STATEDIR)/initramfs_spec

# vim: syntax=make