patch-2.1.51 linux/arch/ppc/lib/Makefile

Next file: linux/arch/ppc/lib/checksum.S
Previous file: linux/arch/ppc/ld.script
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.1.50/linux/arch/ppc/lib/Makefile linux/arch/ppc/lib/Makefile
@@ -1,38 +1,11 @@
-.c.s:
-	$(CC) $(CFLAGS) -S $<
-.s.o:
-	$(AS) $(ASFLAGS) -o $*.o $<
-.c.o:
-	$(CC) $(CFLAGS) -c $<
-.S.s:
-	$(CPP) $(CFLAGS) -D__ASSEMBLY__ $< -o $*.s
-.S.o:
-	$(CPP) $(CFLAGS) -D__ASSEMBLY__ $< -o $*.s
-	$(AS) $(ASFLAGS) -o $*.o $*.s
-	rm $*.s
-
-HOST_CC = gcc
-
-L_TARGET = lib.o
-L_OBJS  = checksum.o cksum_support.o string.o
-
-${L_TARGET}: $(L_OBJS)
-	$(LD) -r -o ${L_TARGET} $(L_OBJS)
-
-
-fastdep:
-	$(TOPDIR)/scripts/mkdep *.[Sch] > .depend
-
-dep:
-	$(CPP) -M *.S *.c > .depend
+#
+# Makefile for ppc-specific library files..
+#
 
-modules: 
+.S.o:
+	$(CC) -D__ASSEMBLY__ -c $< -o $*.o
 
-dummy:
+O_TARGET = lib.o
+O_OBJS  = checksum.o string.o strcase.o
 
-#
-# include a dependency file if one exists
-#
-ifeq (.depend,$(wildcard .depend))
-include .depend
-endif
+include $(TOPDIR)/Rules.make

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov