]> Dogcows Code - chaz/openbox/blob - otk_c/Makefile
nicer translate()
[chaz/openbox] / 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 timer.c timerqueue.c imagecontrol.c
8 headers = init.h display.h screeninfo.h rect.h gccache.h color.h font.h \
9 timer.h timerqueue.h imagecontrol.h
10
11 CFLAGS += -g -W -Wall -I/usr/gwar/include/python2.2 `pkg-config --cflags xft`
12 LDFLAGS += `pkg-config --libs xft`
13
14 .PHONY: all install clean
15
16 all: $(targets)
17
18 install: $(targets)
19 install -d $(libdir)
20 install $^ $(libdir)
21
22 clean:
23 $(RM) $(targets) *.o core *\~ .\#*
24
25 libotk.so: $(sources:.c=.o)
26 $(CC) -shared -o $@ $^ $(LDFLAGS)
27
28 libotk.a: $(sources:.c=.o)
29 $(AR) -cr $@ $^
This page took 0.036838 seconds and 4 git commands to generate.