# Makefile for dirdiff
#
# In fact all we have to make is the libfilecmp.so.0.0 library.

BINDIR=$(DESTDIR)${PREFIX}/bin
LIBDIR=$(DESTDIR)${PREFIX}/lib
INSTALL=install

# You may need to change the -I arguments depending on your system
CFLAGS+=-fPIC -I/usr/local/include/tcl8.4/

all:	libfilecmp.so.0

libfilecmp.so.0: filecmp.c
	$(CC) $(CFLAGS) -shared -o $@ filecmp.c

install: dirdiff libfilecmp.so.0
	$(INSTALL) -c dirdiff $(BINDIR)
	$(INSTALL) -c libfilecmp.so.0 $(LIBDIR)

clean:
	rm -f libfilecmp.so.0.0


syntax highlighted by Code2HTML, v. 0.9.1