Makefile

Tue, 26 Aug 2008 22:05:07 +0100

author
Philip Pemberton <philpem@philpem.me.uk>
date
Tue, 26 Aug 2008 22:05:07 +0100
changeset 8
fd84ec9e11df
parent 6
aed399ff850b
child 11
bfaaf539bc4d
permissions
-rw-r--r--

added 'make doc' rule to makefile
fixed lpfktest to call lpfk_open() correctly after API fixups in 2:071056e12321

     1 CFLAGS=-fPIC -g -I./include
     2 SONAME=liblpfk.so.1
     4 .PHONY:	all doc clean
     6 all:	liblpfk.so lpfktest lpfklife
     7 	ldconfig -n .
     9 doc:	Doxyfile src/liblpfk.c include/liblpfk.h
    10 	doxygen
    12 clean:
    13 	-rm -f lpfktest liblpfk.so*
    14 	-rm -f src/*.o test/*.o
    15 	-rm -f src/*~ test/*~ *~
    17 liblpfk.so:	src/liblpfk.o
    18 	$(CC) -shared -Wl,-soname,$(SONAME) -o $@ $<
    20 lpfktest:	test/lpfktest.o
    21 	$(CC) -o $@ $< -L. -llpfk
    23 lpfklife:	test/lpfklife.o
    24 	$(CC) -o $@ $< -L. -llpfk
    26 src/liblpfk.o:		include/liblpfk.h
    27 test/lpfktest.o:	include/liblpfk.h
    28 test/lpfklife.o:	include/liblpfk.h