Makefile

Tue, 26 Aug 2008 21:59:54 +0100

author
Philip Pemberton <philpem@philpem.me.uk>
date
Tue, 26 Aug 2008 21:59:54 +0100
changeset 5
2fc2b426ace9
parent 0
745037d69d81
child 6
aed399ff850b
permissions
-rw-r--r--

Added "Conway's Life" demo to LPFK test suite. This is a good test for
cached LED status setting, and a decent base for other LPFK games.

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@5 6 all: liblpfk.so lpfktest lpfklife
philpem@0 7 ldconfig -n .
philpem@0 8
philpem@0 9 clean:
philpem@5 10 -rm -f lpfktest liblpfk.so*
philpem@5 11 -rm -f src/*.o test/*.o
philpem@5 12 -rf -f src/*~ test/*~ *~
philpem@0 13
philpem@0 14 liblpfk.so: src/liblpfk.o
philpem@0 15 $(CC) -shared -Wl,-soname,$(SONAME) -o $@ $<
philpem@0 16
philpem@0 17 lpfktest: test/lpfktest.o
philpem@0 18 $(CC) -o $@ $< -L. -llpfk
philpem@5 19
philpem@5 20 lpfklife: test/lpfklife.o
philpem@5 21 $(CC) -o $@ $< -L. -llpfk
philpem@5 22