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 headers = init.h display.h screeninfo.h rect.h gccache.h color.h CFLAGS+=-g -I/usr/gwar/include/python2.2 -W -Wall .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 $@ $^