]> icculus.org git repositories - mikachu/openbox.git/blob - otk_c/Makefile
some experimentin with C and python api. part 1.
[mikachu/openbox.git] / otk_c / Makefile
1 prefix=/tmp/ob
2 libdir=$(prefix)/lib
3
4 targets = libotk.so libotk.a
5 sources = display.c
6 headers = display.h
7
8 CFLAGS+=-I/usr/gwar/include/python2.2
9
10 .PHONY: all install clean
11
12 all: $(targets)
13
14 install: $(targets)
15         install -d $(libdir)
16         install $^ $(libdir)
17
18 clean:
19         $(RM) $(targets) *.o core
20
21 libotk.so: $(sources:.c=.o)
22         $(CC) -shared -o $@ $^ $(LDFLAGS)
23
24 libotk.a: $(sources:.c=.o)
25         $(AR) -cr $@ $^