chiark / gitweb /
ed7755b3823264be00834879869be2a0f41baeec
[elogind.git] / klibc / MCONFIG
1 # -*- makefile -*-
2 #
3 # Makefile configuration, without explicit rules
4 #
5
6 ARCH    = $(shell uname -m | sed -e s/i.86/i386/ -e s/sun4u/sparc64/ -e s/arm.*/arm/ -e s/sa110/arm/)
7 CROSS   = 
8 CC      = $(CROSS)gcc
9 LD      = $(CROSS)ld
10 KLIBSRC = $(SRCROOT)/klibc
11 REQFLAGS = $(ARCHREQFLAGS) -nostdinc -iwithprefix include -I$(KLIBSRC) \
12           -I$(KLIBSRC)/arch/$(ARCH)/include \
13           -I$(KLIBSRC)/include/bits$(BITSIZE) \
14           -D__KLIBC__ -DBITSIZE=$(BITSIZE) -I$(KLIBSRC)/include \
15           -I$(SRCROOT)/linux/include
16 LDFLAGS =
17 AR      = $(CROSS)ar
18 RANLIB  = $(CROSS)ranlib
19 NM      = $(CROSS)nm
20 PERL    = perl
21 STRIP   = $(CROSS)strip --strip-all -R .comment -R .note
22
23 HOST_CC      = gcc
24 HOST_LDFLAGS = -s
25 HOST_LIBS    =
26
27 CRT0    = $(KLIBSRC)/crt0.o
28 KLIBC   = $(KLIBSRC)/libc.a
29 LIBGCC  = $(shell $(CC) --print-libgcc)
30
31 #
32 # This indicates the location of the final version of the shared library.
33 # THIS MUST BE AN ABSOLUTE PATH WITH NO FINAL SLASH.
34 # Leave this empty to make it the root.
35 #
36 SHLIBDIR = /lib
37
38 #
39 # Include arch-specific rule fragments
40 #
41 include $(KLIBSRC)/arch/$(ARCH)/MCONFIG