X-Git-Url: https://git.dogcows.com/gitweb?a=blobdiff_plain;f=otk_c%2FMakefile;h=f6cb0c54020b4b8d3732249721f4ea034bce8a96;hb=bc88d310fea71823fb2c61d071ff499579bffaba;hp=fd51ae57f45a16442df7f1ee840898d20ded9eba;hpb=54524ace9779d90ae3c4a18eeb70193daea2fb0a;p=chaz%2Fopenbox diff --git a/otk_c/Makefile b/otk_c/Makefile index fd51ae57..f6cb0c54 100644 --- a/otk_c/Makefile +++ b/otk_c/Makefile @@ -1,12 +1,15 @@ -prefix=/tmp/ob -exec_prefix=$(prefix) -libdir=$(exec_prefix)/lib +prefix = /tmp/ob +exec_prefix = $(prefix) +libdir = $(exec_prefix)/lib targets = libotk.so libotk.a -sources = display.c -headers = display.h +sources = init.c display.c screeninfo.c rect.c gccache.c color.c font.c \ + timer.c timerqueue.c imagecontrol.c +headers = init.h display.h screeninfo.h rect.h gccache.h color.h font.h \ + timer.h timerqueue.h imagecontrol.h -CFLAGS+=-I/usr/gwar/include/python2.2 +CFLAGS += -g -W -Wall -I/usr/gwar/include/python2.2 `pkg-config --cflags xft` +LDFLAGS += `pkg-config --libs xft` .PHONY: all install clean @@ -17,7 +20,7 @@ install: $(targets) install $^ $(libdir) clean: - $(RM) $(targets) *.o core + $(RM) $(targets) *.o core *\~ .\#* libotk.so: $(sources:.c=.o) $(CC) -shared -o $@ $^ $(LDFLAGS)