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