openbox/otk_c/Makefile

27 lines
494 B
Makefile
Raw Normal View History

prefix=/tmp/ob
2002-12-20 22:02:42 +00:00
exec_prefix=$(prefix)
libdir=$(exec_prefix)/lib
targets = libotk.so libotk.a
sources = display.c screeninfo.c rect.c gccache.c
headers = display.h screeninfo.h rect.h gccache.h
CFLAGS+=-I/usr/gwar/include/python2.2
.PHONY: all install clean
all: $(targets)
install: $(targets)
install -d $(libdir)
install $^ $(libdir)
clean:
2002-12-20 22:12:21 +00:00
$(RM) $(targets) *.o core *\~ .\#*
libotk.so: $(sources:.c=.o)
$(CC) -shared -o $@ $^ $(LDFLAGS)
libotk.a: $(sources:.c=.o)
$(AR) -cr $@ $^