Makefile

Tue, 26 Aug 2008 19:14:23 +0100

author
Philip Pemberton <philpem@philpem.me.uk>
date
Tue, 26 Aug 2008 19:14:23 +0100
changeset 4
81d49d42ad6a
parent 0
745037d69d81
child 5
2fc2b426ace9
permissions
-rw-r--r--

made error codes negative
tweaked lpfk_read to return an error constant instead of a magic number

philpem@0 1 CFLAGS=-fPIC -g -I./include
philpem@0 2 SONAME=liblpfk.so.1
philpem@0 3
philpem@0 4 .PHONY: all clean
philpem@0 5
philpem@0 6 all: liblpfk.so lpfktest
philpem@0 7 ldconfig -n .
philpem@0 8
philpem@0 9 clean:
philpem@0 10 -rm -f lpfktest
philpem@0 11 -rm -f liblpfk.so*
philpem@0 12 -rm -f src/*.o
philpem@0 13 -rm -f test/*.o
philpem@0 14
philpem@0 15 liblpfk.so: src/liblpfk.o
philpem@0 16 $(CC) -shared -Wl,-soname,$(SONAME) -o $@ $<
philpem@0 17
philpem@0 18 lpfktest: test/lpfktest.o
philpem@0 19 $(CC) -o $@ $< -L. -llpfk