aboutsummaryrefslogtreecommitdiff
path: root/convert/gdk-pixbuf-convert/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'convert/gdk-pixbuf-convert/Makefile')
-rw-r--r--convert/gdk-pixbuf-convert/Makefile44
1 files changed, 44 insertions, 0 deletions
diff --git a/convert/gdk-pixbuf-convert/Makefile b/convert/gdk-pixbuf-convert/Makefile
new file mode 100644
index 0000000..e350747
--- /dev/null
+++ b/convert/gdk-pixbuf-convert/Makefile
@@ -0,0 +1,44 @@
+PREFIX = /usr/local
+
+GTKCFLAGS = `pkg-config --cflags gtk+-2.0`
+GTKLDFLAGS += `pkg-config --libs gtk+-2.0`
+GDKPIXBUFCFLAGS = `pkg-config --cflags gdk-pixbuf-2.0`
+GDKPIXBUFLDFLAGS += `pkg-config --libs gdk-pixbuf-2.0`
+
+CPPFLAGS = $(GTKCFLAGS) -D_GNU_SOURCE
+ifeq ($(DEBUG),yes)
+CFLAGS += -O2 -g
+LDFLAGS = -g #-lefence
+else
+CFLAGS += -Os -fomit-frame-pointer
+endif
+CFLAGS += -Wall
+CPPFLAGS += -DPACKAGE=\"$(PACKAGE)\" -DPREFIX=\"$(PREFIX)\" -DPACKAGE_LOCALE_DIR=\"$(PREFIX)/share/locale\"
+CFLAGS += -MD
+
+MEMBERS = gdk-pixbuf-convert
+LIB_MEMBERS =
+
+OBJS = $(patsubst %,%.o,$(MEMBERS))
+SOURCES = $(patsubst %,%.c,$(MEMBERS) $(LIB_MEMBERS))
+LIB_OBJS = $(patsubst %,%.o,$(LIB_MEMBERS))
+LIB_SOURCES = $(patsubst %,%.c,$(LIB_MEMBERS))
+
+DEPS = $(patsubst %,%.d,$(MEMBERS) $(LIB_MEMBERS))
+
+
+all: gdk-pixbuf-convert
+
+gdk-pixbuf-convert: $(OBJS)
+ $(CC) -o $@ $^ $(GDKPIXBUFCFLAGS) $(GDKPIXBUFLDFLAGS) $(LDFLAGS) -L.
+
+clean:
+ rm -f $(MEMBERS) $(OBJS) $(DEPS)
+
+install: all
+ mkdir -p $(PREFIX)/bin
+ install -s $(MEMBERS) $(PREFIX)/bin/
+
+uninstall:
+ $(RM) $(PREFIX)/bin/$(MEMBERS)
+