- Makefile: Add GTK+ version check (>= 2.6)

This commit is contained in:
Stefan Gehn 2008-09-30 14:42:40 +00:00
parent 25470669c3
commit e03fa87217
1 changed files with 6 additions and 2 deletions

View File

@ -120,10 +120,10 @@ UNIXOBJS = winops-x11.o
all: gkrellm
gkrellm: $(OBJS) $(UNIXOBJS) $(EXTRAOBJS)
gkrellm: check_env $(OBJS) $(UNIXOBJS) $(EXTRAOBJS)
$(CC) $(OBJS) $(UNIXOBJS) $(EXTRAOBJS) -o gkrellm $(LIBS) $(LINK_FLAGS)
static: $(OBJS) $(UNIXOBJS) $(EXTRAOBJS)
static: check_env $(OBJS) $(UNIXOBJS) $(EXTRAOBJS)
$(CC) $(OBJS) $(UNIXOBJS) $(EXTRAOBJS) -o gkrellm.static -static \
$(LIBS) $(LINK_FLAGS)
@ -354,3 +354,7 @@ win32-resource.o: win32-resource.rc win32-resource.h
libgkrellm.a: win32-libgkrellm.o
ar -cr libgkrellm.a win32-libgkrellm.o
# Checks if the build environment is ok
check_env:
$(PKG_CONFIG) --atleast-version=2.6 gtk+-2.0