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

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

LDOPTIONS=	-L../shared -lshared

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

FILES=	del.o\
	main.o\
	sendfilestr.o\
	filestack.o\
	preference.o\
	rm.o\
	eaccess.o\
	stpcpy.o\
	xmalloc.o\
	error.o

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

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

all: .depend del

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

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

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

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

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


