xref: /openbmc/linux/arch/powerpc/lib/Makefile (revision 1088a209)
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)
102578bfaeSStephen Rothwellobj-y			:= string.o alloc.o \
112578bfaeSStephen Rothwell			   checksum_$(CONFIG_WORD_SIZE).o
122578bfaeSStephen Rothwellobj-$(CONFIG_PPC32)	+= div64.o copy_32.o
131a3c061eSStephen Rothwellendif
1440ef8cbcSPaul Mackerras
152578bfaeSStephen Rothwellobj-$(CONFIG_PPC64)	+= copypage_64.o copyuser_64.o \
16ded220bdSDavid S. Miller			   memcpy_64.o usercopy_64.o mem_64.o string.o
17f78541dcSPaul Mackerrasobj-$(CONFIG_XMON)	+= sstep.o
1882090035SKumar Galaobj-$(CONFIG_KPROBES)	+= sstep.o
195902ebceSVitaly Bordugobj-$(CONFIG_NOT_COHERENT_CACHE)	+= dma-noncoherent.o
20f78541dcSPaul Mackerras
21ecc81e0fSStephen Rothwellifeq ($(CONFIG_PPC64),y)
22ecc81e0fSStephen Rothwellobj-$(CONFIG_SMP)	+= locks.o
23ecc81e0fSStephen Rothwellendif
24b0c110b4SVitaly Bordug
251088a209SSylvain Munautobj-$(CONFIG_PPC_LIB_RHEAP) += rheap.o
26