Tue, 26 Aug 2008 22:05:07 +0100
added 'make doc' rule to makefile
fixed lpfktest to call lpfk_open() correctly after API fixups in 2:071056e12321
Makefile | file | annotate | diff | revisions | |
test/lpfktest.c | file | annotate | diff | revisions |
1.1 --- a/Makefile Tue Aug 26 22:01:01 2008 +0100 1.2 +++ b/Makefile Tue Aug 26 22:05:07 2008 +0100 1.3 @@ -1,11 +1,14 @@ 1.4 CFLAGS=-fPIC -g -I./include 1.5 SONAME=liblpfk.so.1 1.6 1.7 -.PHONY: all clean 1.8 +.PHONY: all doc clean 1.9 1.10 all: liblpfk.so lpfktest lpfklife 1.11 ldconfig -n . 1.12 1.13 +doc: Doxyfile src/liblpfk.c include/liblpfk.h 1.14 + doxygen 1.15 + 1.16 clean: 1.17 -rm -f lpfktest liblpfk.so* 1.18 -rm -f src/*.o test/*.o 1.19 @@ -20,3 +23,7 @@ 1.20 lpfklife: test/lpfklife.o 1.21 $(CC) -o $@ $< -L. -llpfk 1.22 1.23 +src/liblpfk.o: include/liblpfk.h 1.24 +test/lpfktest.o: include/liblpfk.h 1.25 +test/lpfklife.o: include/liblpfk.h 1.26 +
2.1 --- a/test/lpfktest.c Tue Aug 26 22:01:01 2008 +0100 2.2 +++ b/test/lpfktest.c Tue Aug 26 22:05:07 2008 +0100 2.3 @@ -14,7 +14,7 @@ 2.4 return -1; 2.5 } 2.6 2.7 - if ((i = lpfk_open(argv[1], &ctx)) != LPFK_E_OK) { 2.8 + if ((i = lpfk_open(&ctx, argv[1])) != LPFK_E_OK) { 2.9 switch(i) { 2.10 case LPFK_E_PORT_OPEN: 2.11 printf("Error opening comm port.\n");