HEADERS = cos.h concord.h concord-name.h concord-bdb.h
-OBJS = cos.lo symbol.lo read.lo print.lo concord.lo concord-bdb.lo name.lo
-
+OBJS = cos.lo symbol.lo read.lo print.lo concord.lo concord-bdb.lo \
+ name.lo cos-hash.lo
all: libconcord.la
-rpath ${libdir} -version-info $(ABI_VERSION) \
-no-undefined
-cos.lo: cos.c cos-i.h cos-read.h cos.h concord.h config.h sysdep.h Makefile
+cos.lo: cos.c cos-i.h cos-hash.h cos-read.h cos.h concord.h config.h sysdep.h Makefile
$(LIBTOOL) --mode=compile $(CC) $(CONCORD_CFLAGS) $(CFLAGS) cos.c
-symbol.lo: symbol.c cos-i.h cos.h config.h sysdep.h Makefile
+symbol.lo: symbol.c cos-i.h cos-hash.h cos.h config.h sysdep.h Makefile
$(LIBTOOL) --mode=compile $(CC) $(CFLAGS) symbol.c
read.lo: read.c cos-read.h Makefile
print.lo: print.c cos-print.h Makefile
$(LIBTOOL) --mode=compile $(CC) $(CFLAGS) print.c
-concord.lo: concord.c cos-i.h cos.h concord.h config.h sysdep.h
+concord.lo: concord.c cos-i.h cos-hash.h cos.h concord.h config.h sysdep.h
$(LIBTOOL) --mode=compile $(CC) $(CFLAGS) concord.c
concord-bdb.lo: concord-bdb.c concord-bdb.h concord-name.h
$(LIBTOOL) --mode=compile $(CC) $(CFLAGS) concord-bdb.c
-name.lo: name.c concord-name.h
+name.lo: name.c concord-name.h hash-i.h
$(LIBTOOL) --mode=compile $(CC) $(CFLAGS) name.c
+cos-hash.lo: cos-hash.c concord-name.h cos-hash.h hash-i.h
+ $(LIBTOOL) --mode=compile $(CC) $(CFLAGS) cos-hash.c
+
install: install.h install.libs
symbol-test: symbol-test.c libconcord.la
gcc -Wall -Wmissing-prototypes -o symbol-test symbol-test.c -lconcord
+hash-test: hash-test.c libconcord.la
+ gcc -Wall -Wmissing-prototypes -o hash-test hash-test.c -lconcord
+
clean:
-$(RM) -r *.o *.lo *.so *.la .libs sample