chiark / gitweb /
ec8b65c0e4c8a335060e5fa8441f2af5b130f0bc
[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$(KERNEL_DIR)/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_CFLAGS  = -g -O
25 HOST_LDFLAGS = 
26 HOST_LIBS    =
27
28 # Static library paths
29 CRT0      = $(KLIBSRC)/crt0.o
30 KLIBC     = $(KLIBSRC)/libc.a
31 LIBGCC    = $(shell $(CC) --print-libgcc)
32
33 # Shared library paths
34 CRTSHARED = $(KLIBSRC)/interp.o
35 LIBSHARED = $(KLIBSRC)/libc.so
36
37 #
38 # This indicates the location of the final version of the shared library.
39 # THIS MUST BE AN ABSOLUTE PATH WITH NO FINAL SLASH.
40 # Leave this empty to make it the root.
41 #
42 SHLIBDIR = /lib
43
44 #
45 # Include arch-specific rule fragments
46 #
47 include $(KLIBSRC)/arch/$(ARCH)/MCONFIG