VPATH = ../bin
vpath %.c $(REISERFS_KERNEL_SOURCE) $(REISERFS_LIB)

LIB_OBJS = misc.o vfs.o reiserfs.o version.o
OBJS = resize_reiserfs.o fe.o do_shrink.o bitmap.o $(LIB_OBJS)

RESIZER = $(TMPBINDIR)/resize_reiserfs

all: $(RESIZER)

.c.o:
	$(CC) $(CFLAGS) -Wall -g $<

$(RESIZER): $(OBJS)
	$(CC) $(LFLAGS) -o $(RESIZER) $(OBJS)

clean:
	rm -f *.o $(RESIZER) *~

dep:
	gcc -MM $(IDIRS) *.c > .depend

install:
	cp -f $(RESIZER) $(SBIN)

uninstall:
	rm -f $(SBIN)/resize_reiserfs


ifeq (.depend,$(wildcard .depend))
include .depend
endif









