Makefile

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