]> git.ipfire.org Git - thirdparty/systemd.git/blame - klibc/MCONFIG
[PATCH] fix unusual sysfs behavior for pcmcia_socket
[thirdparty/systemd.git] / klibc / MCONFIG
CommitLineData
a41a0e28
GKH
1# -*- makefile -*-
2#
3# Makefile configuration, without explicit rules
4#
5
a0622777
GKH
6# Eventually support separate compilation, but we don't have it yet...
7OBJROOT = $(SRCROOT)
8
a41a0e28
GKH
9ARCH = $(shell uname -m | sed -e s/i.86/i386/ -e s/sun4u/sparc64/ -e s/arm.*/arm/ -e s/sa110/arm/)
10CROSS =
11CC = $(CROSS)gcc
12LD = $(CROSS)ld
13KLIBSRC = $(SRCROOT)/klibc
a0622777
GKH
14KLIBOBJ = $(OBJROOT)/klibc
15REQFLAGS = $(ARCHREQFLAGS) -nostdinc -iwithprefix include \
16 -D__KLIBC__ -DBITSIZE=$(BITSIZE) \
17 -I$(SRCROOT)/include/arch/$(ARCH) \
18 -I$(SRCROOT)/include/bits$(BITSIZE) \
19 -I$(SRCROOT)/include \
20 -I$(SRCROOT)/linux/include -I$(SRCROOT)/linux/include2
21
a41a0e28
GKH
22LDFLAGS =
23AR = $(CROSS)ar
24RANLIB = $(CROSS)ranlib
25NM = $(CROSS)nm
26PERL = perl
27STRIP = $(CROSS)strip --strip-all -R .comment -R .note
a0622777 28OBJCOPY = $(CROSS)objcopy
a41a0e28
GKH
29
30HOST_CC = gcc
da92f46b
GKH
31HOST_CFLAGS = -g -O
32HOST_LDFLAGS =
a41a0e28
GKH
33HOST_LIBS =
34
73028bc3 35# Static library paths
a0622777
GKH
36CRT0 = $(KLIBOBJ)/crt0.o
37KLIBC = $(KLIBOBJ)/libc.a
73028bc3
GKH
38LIBGCC = $(shell $(CC) --print-libgcc)
39
40# Shared library paths
a0622777
GKH
41CRTSHARED = $(KLIBOBJ)/interp.o
42LIBSHARED = $(KLIBOBJ)/libc.so
a41a0e28
GKH
43
44#
45# This indicates the location of the final version of the shared library.
46# THIS MUST BE AN ABSOLUTE PATH WITH NO FINAL SLASH.
47# Leave this empty to make it the root.
48#
49SHLIBDIR = /lib
50
a0622777
GKH
51# Enable this to make perror/strerror return real error messages
52# This makes klibc.so and any static binary which uses these functions
53# about 4K bigger.
54ERRLIST = 1
55
a41a0e28
GKH
56#
57# Include arch-specific rule fragments
58#
59include $(KLIBSRC)/arch/$(ARCH)/MCONFIG
a0622777
GKH
60
61# How to tell the linker main() is the entrypoint
62EMAIN ?= -e main