1 # Makefile for dirdiff 2 # 3 # In fact all we have to make is the libfilecmp.so.0.0 library. 4 5 BINDIR=$(DESTDIR)/usr/bin 6 LIBDIR=$(DESTDIR)/usr/lib 7 INSTALL=install 8 9 # You may need to change the -I arguments depending on your system 10 CFLAGS=-O3 -I/usr/include/tcl8.3/ -I/usr/include/tcl 11 12 all: libfilecmp.so.0.0 13 14 libfilecmp.so.0.0: filecmp.c 15 $(CC) $(CFLAGS) -shared -o $@ filecmp.c 16 17 install: dirdiff libfilecmp.so.0.0 18 $(INSTALL) -c dirdiff $(BINDIR) 19 $(INSTALL) -c libfilecmp.so.0.0 $(LIBDIR) 20 21 clean: 22 rm -f libfilecmp.so.0.0