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