all repos — openbox @ 4c9bf6c9a1f2fb3531cec2917576f3d2364b4bf3

openbox fork - make it a bit more like ryudo

otk_c/Makefile (raw)

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
prefix = /tmp/ob
exec_prefix = $(prefix)
libdir = $(exec_prefix)/lib

targets = libotk.so libotk.a
sources = init.c display.c screeninfo.c rect.c gccache.c color.c font.c
headers = init.h display.h screeninfo.h rect.h gccache.h color.h font.h

CFLAGS += -g -W -Wall -I/usr/gwar/include/python2.2 `pkg-config --cflags xft`
LDFLAGS += `pkg-config --libs xft`

.PHONY: all install clean

all: $(targets)

install: $(targets)
	install -d $(libdir)
	install $^ $(libdir)

clean:
	$(RM) $(targets) *.o core *\~ .\#*

libotk.so: $(sources:.c=.o)
	$(CC) -shared -o $@ $^ $(LDFLAGS)

libotk.a: $(sources:.c=.o)
	$(AR) -cr $@ $^