Makefile

Wed, 28 Jul 2010 15:14:54 +0100

author
Philip Pemberton <philpem@philpem.me.uk>
date
Wed, 28 Jul 2010 15:14:54 +0100
changeset 12
f8996e336619
parent 11
bfaaf539bc4d
permissions
-rw-r--r--

Fixed omission: lpfkbinclock wasn't compiled by default.

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@12 6 all: liblpfk.so lpfktest lpfklife lpfkbinclock
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@11 13 -rm -f lpfktest lpfklife lpfkbinclock 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@11 26 lpfkbinclock: test/lpfkbinclock.o
philpem@11 27 $(CC) -o $@ $< -L. -llpfk
philpem@11 28
philpem@8 29 src/liblpfk.o: include/liblpfk.h
philpem@8 30 test/lpfktest.o: include/liblpfk.h
philpem@8 31 test/lpfklife.o: include/liblpfk.h
philpem@8 32