Makefile

Wed, 03 Sep 2008 17:15:47 +0100

author
Philip Pemberton <philpem@philpem.me.uk>
date
Wed, 03 Sep 2008 17:15:47 +0100
changeset 10
f76c929f65e6
parent 8
fd84ec9e11df
child 11
bfaaf539bc4d
permissions
-rw-r--r--

added "naive" and "wraparound" algorithms to lpfklife

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