xref: /openbmc/linux/arch/powerpc/lib/Makefile (revision 8555a002)
114cf11afSPaul Mackerras#
214cf11afSPaul Mackerras# Makefile for ppc-specific library files..
314cf11afSPaul Mackerras#
414cf11afSPaul Mackerras
58555a002SAnton Blanchardifeq ($(CONFIG_PPC64),y)
68555a002SAnton BlanchardEXTRA_CFLAGS		+= -mno-minimal-toc
78555a002SAnton Blanchardendif
88555a002SAnton Blanchard
91a3c061eSStephen Rothwellifeq ($(CONFIG_PPC_MERGE),y)
10a0e60b20SDavid Gibsonobj-y			:= string.o strcase.o
11a0e60b20SDavid Gibsonobj-$(CONFIG_PPC32)	+= div64.o copy_32.o checksum_32.o
121a3c061eSStephen Rothwellendif
1340ef8cbcSPaul Mackerras
1412a39407SStephen Rothwellobj-$(CONFIG_PPC64)	+= checksum_64.o copypage_64.o copyuser_64.o \
15a0e60b20SDavid Gibson			   memcpy_64.o usercopy_64.o mem_64.o string.o \
16a0e60b20SDavid Gibson			   strcase.o
17454fb016SStephen Rothwellobj-$(CONFIG_PPC_ISERIES) += e2a.o
18f78541dcSPaul Mackerrasobj-$(CONFIG_XMON)	+= sstep.o
19f78541dcSPaul Mackerras
20ecc81e0fSStephen Rothwellifeq ($(CONFIG_PPC64),y)
21ecc81e0fSStephen Rothwellobj-$(CONFIG_SMP)	+= locks.o
22a0d8bf9cSStephen Rothwellobj-$(CONFIG_DEBUG_KERNEL) += sstep.o
23ecc81e0fSStephen Rothwellendif
24