]> icculus.org git repositories - mikachu/openbox.git/blob - otk_c/Makefile
add the OtkRect_Type extern
[mikachu/openbox.git] / otk_c / Makefile
1 prefix = /tmp/ob
2 exec_prefix = $(prefix)
3 libdir = $(exec_prefix)/lib
4
5 targets = libotk.so libotk.a
6 sources = init.c display.c screeninfo.c rect.c gccache.c color.c font.c
7 headers = init.h display.h screeninfo.h rect.h gccache.h color.h font.h
8
9 CFLAGS += -g -W -Wall -I/usr/gwar/include/python2.2 `pkg-config --cflags xft`
10 LDFLAGS += `pkg-config --libs xft`
11
12 .PHONY: all install clean
13
14 all: $(targets)
15
16 install: $(targets)
17         install -d $(libdir)
18         install $^ $(libdir)
19
20 clean:
21         $(RM) $(targets) *.o core *\~ .\#*
22
23 libotk.so: $(sources:.c=.o)
24         $(CC) -shared -o $@ $^ $(LDFLAGS)
25
26 libotk.a: $(sources:.c=.o)
27         $(AR) -cr $@ $^