1# 2# Makefile for the linux reiser-filesystem routines. 3# 4# Note! Dependencies are done automagically by 'make dep', which also 5# removes any old dependencies. DON'T put your own dependencies here 6# unless it's something special (ie not a .c file). 7# 8# Note 2! The CFLAGS definitions are now in the main makefile... 9 10O_TARGET := reiserfs.o 11obj-y := bitmap.o do_balan.o namei.o inode.o file.o dir.o fix_node.o super.o prints.o objectid.o \ 12lbalance.o ibalance.o stree.o hashes.o buffer2.o tail_conversion.o journal.o resize.o item_ops.o ioctl.o procfs.o 13 14obj-m := $(O_TARGET) 15 16# gcc -O2 (the kernel default) is overaggressive on ppc32 when many inline 17# functions are used. This causes the compiler to advance the stack 18# pointer out of the available stack space, corrupting kernel space, 19# and causing a panic. Since this behavior only affects ppc32, this ifeq 20# will work around it. If any other architecture displays this behavior, 21# add it here. 22ifeq ($(CONFIG_PPC32),y) 23EXTRA_CFLAGS := -O1 24endif 25 26include $(TOPDIR)/Rules.make 27 28TAGS: 29 etags *.c 30 31