3 # Makefile configuration, without explicit rules
6 ARCH = $(shell uname -m | sed -e s/i.86/i386/ -e s/sun4u/sparc64/ -e s/arm.*/arm/ -e s/sa110/arm/)
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
18 RANLIB = $(CROSS)ranlib
21 STRIP = $(CROSS)strip --strip-all -R .comment -R .note
28 CRT0 = $(KLIBSRC)/crt0.o
29 KLIBC = $(KLIBSRC)/libc.a
30 LIBGCC = $(shell $(CC) --print-libgcc)
33 # This indicates the location of the final version of the shared library.
34 # THIS MUST BE AN ABSOLUTE PATH WITH NO FINAL SLASH.
35 # Leave this empty to make it the root.
40 # Include arch-specific rule fragments
42 include $(KLIBSRC)/arch/$(ARCH)/MCONFIG