diff options
author | Steven Rostedt <srostedt@redhat.com> | 2009-12-17 10:16:02 -0500 |
---|---|---|
committer | Steven Rostedt <rostedt@goodmis.org> | 2009-12-17 22:52:24 -0500 |
commit | a29a760d27d34e8f9e3cb6c15cea7729afe5dfcf (patch) | |
tree | 6d3c316133fb9d4012c34b4678e6e4d56852d6a0 /Makefile | |
parent | 5e524c549b3e3b8bbe596dacd71d74e32990a666 (diff) |
trace-graph: Add trace-compat to deal with old GTK versions
Testing this code on different boxes, I've found that some older
gtk versions don't have all the functions that are needed. This
adds those functions in a hack (for older versions anyway) to
try to cope with this.
Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 7 |
1 files changed, 5 insertions, 2 deletions
@@ -7,7 +7,10 @@ LIBS = -L. -ltracecmd -ldl | |||
7 | 7 | ||
8 | PACKAGES= gtk+-2.0 libgnome-2.0 libgnomecanvas-2.0 libgnomeui-2.0 libxml-2.0 | 8 | PACKAGES= gtk+-2.0 libgnome-2.0 libgnomecanvas-2.0 libgnomeui-2.0 libxml-2.0 |
9 | 9 | ||
10 | CONFIG_FLAGS = $(shell pkg-config --cflags $(PACKAGES)) | 10 | CONFIG_FLAGS = $(shell pkg-config --cflags $(PACKAGES)) \ |
11 | -DGTK_VERSION=$(shell pkg-config --modversion gtk+-2.0 | \ | ||
12 | awk 'BEGIN{FS="."}{ a = ($$1 * (2^16)) + $$2 * (2^8) + $$3; printf ("%d", a);}') | ||
13 | |||
11 | CONFIG_LIBS = $(shell pkg-config --libs $(PACKAGES)) | 14 | CONFIG_LIBS = $(shell pkg-config --libs $(PACKAGES)) |
12 | 15 | ||
13 | CFLAGS = -g -Wall $(CONFIG_FLAGS) | 16 | CFLAGS = -g -Wall $(CONFIG_FLAGS) |
@@ -38,7 +41,7 @@ trace-cmd:: trace-cmd.o trace-read.o trace-view.o trace-view-store.o \ | |||
38 | trace-filter.o | 41 | trace-filter.o |
39 | $(CC) $^ -rdynamic -o $@ $(CONFIG_LIBS) $(LIBS) | 42 | $(CC) $^ -rdynamic -o $@ $(CONFIG_LIBS) $(LIBS) |
40 | 43 | ||
41 | trace-graph:: trace-graph.o | 44 | trace-graph:: trace-graph.o trace-compat.o |
42 | $(CC) $^ -rdynamic -o $@ $(CONFIG_LIBS) $(LIBS) | 45 | $(CC) $^ -rdynamic -o $@ $(CONFIG_LIBS) $(LIBS) |
43 | 46 | ||
44 | .PHONY: gtk_depends | 47 | .PHONY: gtk_depends |