Makefile

changeset 0
745037d69d81
child 5
2fc2b426ace9
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/Makefile	Tue Aug 26 12:45:33 2008 +0100
     1.3 @@ -0,0 +1,19 @@
     1.4 +CFLAGS=-fPIC -g -I./include
     1.5 +SONAME=liblpfk.so.1
     1.6 +
     1.7 +.PHONY:	all clean
     1.8 +
     1.9 +all:	liblpfk.so lpfktest
    1.10 +	ldconfig -n .
    1.11 +
    1.12 +clean:
    1.13 +	-rm -f lpfktest
    1.14 +	-rm -f liblpfk.so*
    1.15 +	-rm -f src/*.o
    1.16 +	-rm -f test/*.o
    1.17 +
    1.18 +liblpfk.so:	src/liblpfk.o
    1.19 +	$(CC) -shared -Wl,-soname,$(SONAME) -o $@ $<
    1.20 +
    1.21 +lpfktest:	test/lpfktest.o
    1.22 +	$(CC) -o $@ $< -L. -llpfk