mirror of
https://github.com/systemd/systemd-stable.git
synced 2024-10-30 23:21:08 +03:00
977083c253
Based on a patch from Svetoslav Slavtchev <svetljo@gmx.de>
42 lines
1.0 KiB
Makefile
42 lines
1.0 KiB
Makefile
# -*- makefile -*-
|
|
#
|
|
# Makefile configuration, without explicit rules
|
|
#
|
|
|
|
ARCH = $(shell uname -m | sed -e s/i.86/i386/ -e s/sun4u/sparc64/ -e s/arm.*/arm/ -e s/sa110/arm/)
|
|
CROSS =
|
|
CC = $(CROSS)gcc
|
|
LD = $(CROSS)ld
|
|
KLIBSRC = $(SRCROOT)/klibc
|
|
REQFLAGS = $(ARCHREQFLAGS) -nostdinc -iwithprefix include -I$(KLIBSRC) \
|
|
-I$(KLIBSRC)/arch/$(ARCH)/include \
|
|
-I$(KLIBSRC)/include/bits$(BITSIZE) \
|
|
-D__KLIBC__ -DBITSIZE=$(BITSIZE) -I$(KLIBSRC)/include \
|
|
-I$(KERNEL_DIR)/include
|
|
LDFLAGS =
|
|
AR = $(CROSS)ar
|
|
RANLIB = $(CROSS)ranlib
|
|
NM = $(CROSS)nm
|
|
PERL = perl
|
|
STRIP = $(CROSS)strip --strip-all -R .comment -R .note
|
|
|
|
HOST_CC = gcc
|
|
HOST_LDFLAGS = -s
|
|
HOST_LIBS =
|
|
|
|
CRT0 = $(KLIBSRC)/crt0.o
|
|
KLIBC = $(KLIBSRC)/libc.a
|
|
LIBGCC = $(shell $(CC) --print-libgcc)
|
|
|
|
#
|
|
# This indicates the location of the final version of the shared library.
|
|
# THIS MUST BE AN ABSOLUTE PATH WITH NO FINAL SLASH.
|
|
# Leave this empty to make it the root.
|
|
#
|
|
SHLIBDIR = /lib
|
|
|
|
#
|
|
# Include arch-specific rule fragments
|
|
#
|
|
include $(KLIBSRC)/arch/$(ARCH)/MCONFIG
|