# This subdirectory contains modified version of files obtained from the
# uunet.uu.net archive.  You need to do 'make' in this directory first.
# You may have to edit tweak.h to get things to them to properly on your
# system.

# The bsd glob.c file has a bug in blkfree function in that it tries to
# free something that is actually on the stack of the glob function.
# The last call to free has been commented out to fix the bug.

CFLAGS=-g

all: cmp.o glob.o ls.o print.o util.o random.o

cmp.o: cmp.c ls.h tweak.h
glob.o: glob.c ../client_def.h ../common_def.h tweak.h
ls.o: ls.c ../client_def.h ../common_def.h ls.h tweak.h
print.o: print.c ls.h tweak.h
util.o: util.c tweak.h
random.o: random.c

clean:
	rm -f *.o
