Mercurial > hg > audiodb
annotate libtests/libtest.mk @ 468:4dbd7917bf9e api-inversion
YAY!
audioDB::index_query_loop is now disentangled. Hardwired lsh_in_core to
true, and invented a new QID flag for !lsh_exact. All tests continue to
pass.
The plans now:
- extract the audiodb_query_spec() function from inside audioDB::query,
and move audioDB::query (and the timestamps function) to audioDB.cpp;
- write libtests/0036 and libtests/0037 in terms of audiodb_query_spec();
- rewrite all the other libtests in terms of audiodb_query_spec();
- delete audiodb_query() [ and maybe rename audiodb_query_spec(), I
dunno];
- implement example bindings (probably to Lisp, because that's what I
know best);
- see if anyone other than me can work out how the API works. If not,
provide documentation;
- revise API in the light of user feedback.
author | mas01cr |
---|---|
date | Wed, 31 Dec 2008 15:44:12 +0000 |
parents | 64b2bf35d30b |
children | e072aa1611f5 |
rev | line source |
---|---|
map01bf@375 | 1 EXECUTABLE=audioDB |
map01bf@375 | 2 SOVERSION=0 |
map01bf@375 | 3 MINORVERSION=0 |
map01bf@375 | 4 LIBRARY_FULL=lib$(EXECUTABLE).so.$(SOVERSION).$(MINORVERSION) |
map01bf@375 | 5 LIBRARY_VERS=lib$(EXECUTABLE).so.$(SOVERSION) |
map01bf@375 | 6 LIBRARY=lib$(EXECUTABLE).so |
map01bf@375 | 7 ARCH_FLAGS= |
mas01cr@373 | 8 |
mas01cr@373 | 9 |
map01bf@375 | 10 ifeq ($(shell uname),Darwin) |
map01bf@375 | 11 override LIBRARY_FULL=lib$(EXECUTABLE).$(SOVERSION).$(MINORVERSION).dylib |
map01bf@375 | 12 override LIBRARY_VERS=lib$(EXECUTABLE).$(SOVERSION).dylib |
map01bf@375 | 13 override LIBRARY=lib$(EXECUTABLE).dylib |
map01bf@375 | 14 ifeq ($(shell sysctl -n hw.optional.x86_64),1) |
map01bf@375 | 15 override ARCH_FLAGS+=-arch x86_64 |
map01bf@375 | 16 endif |
map01bf@375 | 17 endif |
map01bf@375 | 18 |
map01bf@375 | 19 all: $(LIBRARY_FULL) $(LIBRARY_VERS) $(LIBRARY) test1 |
map01bf@375 | 20 |
map01bf@375 | 21 $(LIBRARY_FULL): |
map01bf@375 | 22 -ln -s ../../$(LIBRARY_FULL) $@ |
map01bf@375 | 23 |
map01bf@375 | 24 $(LIBRARY_VERS): |
map01bf@375 | 25 -ln -s ../../$(LIBRARY_FULL) $@ |
map01bf@375 | 26 |
map01bf@375 | 27 $(LIBRARY): $(LIBRARY_VERS) |
mas01cr@373 | 28 -ln -s $< $@ |
mas01cr@373 | 29 |
mas01cr@378 | 30 test1: prog1.c ../test_utils_lib.h ../../audioDB_API.h |
mas01cr@394 | 31 gcc -g -std=c99 -Wall $(ARCH_FLAGS) -laudioDB -L. -Wl,-rpath,. -o $@ $< |
mas01cr@373 | 32 |
mas01cr@373 | 33 clean: |
mas01cr@392 | 34 -rm $(LIBRARY_FULL) $(LIBRARY_VERS) $(LIBRARY) |