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

     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