###############################################################################
# 			The Undelete System	(undel)                       #
###############################################################################
INCL=		../include

CC=		gcc
CFLAGS=		-g -I $(INCL) -pipe

LDOPTIONS=	-L../shared -lshared

###############################################################################

FILES=	undel.o\
	undel_files.o\
	undel_all.o\
	sendfilestr.o

###############################################################################
default: all
###############################################################################

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

all: .depend undel

undel: $(FILES) ../shared/libshared.a
	$(CC) $(FILES) $(LDOPTIONS) -o undel

###############################################################################

.depend:
	$(CC) -I $(INCL) -M *.c > .depend

clean:
	-rm -f *.o *~ undel .depend

###############################################################################
