#
|
#
|
# linux/arch/arm/lib/Makefile
|
# linux/arch/arm/lib/Makefile
|
#
|
#
|
# Copyright (C) 1995, 1996 Russell King
|
# Copyright (C) 1995, 1996 Russell King
|
#
|
#
|
|
|
L_TARGET := lib.a
|
L_TARGET := lib.a
|
L_OBJS := backtrace.o bitops.o checksum.o delay.o fp_support.o \
|
L_OBJS := backtrace.o bitops.o checksum.o delay.o fp_support.o \
|
loaders.o memfastset.o segment.o system.o string.o
|
loaders.o memfastset.o segment.o system.o string.o
|
|
|
ifdef CONFIG_ARCH_ACORN
|
ifdef CONFIG_ARCH_ACORN
|
L_OBJS += ll_char_wr.o io-acorn.o irqs-acorn.o
|
L_OBJS += ll_char_wr.o io-acorn.o irqs-acorn.o
|
ifdef CONFIG_ARCH_A5K
|
ifdef CONFIG_ARCH_A5K
|
L_OBJS += floppydma.o
|
L_OBJS += floppydma.o
|
endif
|
endif
|
ifdef CONFIG_ARCH_RPC
|
ifdef CONFIG_ARCH_RPC
|
L_OBJS += floppydma.o
|
L_OBJS += floppydma.o
|
endif
|
endif
|
endif
|
endif
|
|
|
ifeq ($(MACHINE),ebsa110)
|
ifeq ($(MACHINE),ebsa110)
|
L_OBJS += io-ebsa.o irqs-ebsa.o
|
L_OBJS += io-ebsa.o irqs-ebsa.o
|
endif
|
endif
|
|
|
ifeq ($(MACHINE),trio)
|
ifeq ($(MACHINE),trio)
|
L_OBJS += irqs-trio.o io-trio.o
|
L_OBJS += irqs-trio.o io-trio.o
|
endif
|
endif
|
|
|
include $(TOPDIR)/Rules.make
|
include $(TOPDIR)/Rules.make
|
|
|
constants.h: getconstants
|
constants.h: getconstants
|
./getconstants > constants.h
|
./getconstants > constants.h
|
|
|
getconstants: getconstants.c getconstants.h
|
getconstants: getconstants.c getconstants.h
|
$(HOSTCC) -D__KERNEL__ -o getconstants getconstants.c
|
$(HOSTCC) -D__KERNEL__ -o getconstants getconstants.c
|
|
|
getconstants.h: getconsdata.c
|
getconstants.h: getconsdata.c
|
$(CC) $(CFLAGS) -c getconsdata.c
|
$(CC) $(CFLAGS) -c getconsdata.c
|
$(PERL) extractinfo.perl $(OBJDUMP) > $@
|
$(PERL) extractinfo.perl $(OBJDUMP) > $@
|
|
|
ifneq ($(CONFIG_BINUTILS_NEW),y)
|
ifneq ($(CONFIG_BINUTILS_NEW),y)
|
%.o: %.S
|
%.o: %.S
|
$(CC) $(CFLAGS) -D__ASSEMBLY__ -E $< | tr ';$$' '\n#' > ..tmp.$<.s
|
$(CC) $(CFLAGS) -D__ASSEMBLY__ -E $< | tr ';$$' '\n#' > ..tmp.$<.s
|
$(CC) $(CFLAGS:-pipe=) -c -o $@ ..tmp.$<.s
|
$(CC) $(CFLAGS:-pipe=) -c -o $@ ..tmp.$<.s
|
$(RM) ..tmp.$<.s
|
$(RM) ..tmp.$<.s
|
else
|
else
|
%.o: %.S
|
%.o: %.S
|
$(CC) $(CFLAGS) -D__ASSEMBLY__ -c -o $@ $<
|
$(CC) $(CFLAGS) -D__ASSEMBLY__ -c -o $@ $<
|
endif
|
endif
|
|
|
clean:
|
clean:
|
$(RM) getconstants constants.h getconstants.h
|
$(RM) getconstants constants.h getconstants.h
|
|
|