]> git.kernelconcepts.de Git - metawatch.git/blobdiff - gtk-gui/Makefile
Add GTK test client, rework API with callbacks, make library
[metawatch.git] / gtk-gui / Makefile
diff --git a/gtk-gui/Makefile b/gtk-gui/Makefile
new file mode 100644 (file)
index 0000000..5de16ab
--- /dev/null
@@ -0,0 +1,35 @@
+#  Copyright (C) 2011 Nils Faerber <nils.faerber@kernelconcepts.de>
+
+ $(pkg-config --libs --cflags glib-2.0) $(pkg-config --libs --cflags dbus-glib-1) $(pkg-config --libs --cflags dbus-1)
+
+# prefix for installation and search path (like icons)
+PREFIX = /usr/local/
+CFLAGS = -DDEBUG -Wall -O2 -Wl,--export-dynamic $(CCFLAGS) -I.. `pkg-config --cflags glib-2.0` `pkg-config --cflags dbus-glib-1` `pkg-config --cflags dbus-1` `pkg-config --cflags gtk+-2.0`
+#CFLAGS = -Wall -O2 $(CCFLAGS)
+
+LDFLAGS = `pkg-config --libs glib-2.0` `pkg-config --libs dbus-glib-1` `pkg-config --libs dbus-1` `pkg-config --libs gtk+-2.0` `pkg-config --libs gmodule-export-2.0` -L.. -lmetawatch
+
+PRGNAME = mw-client
+
+MEMBERS = mw-client
+
+# no need to change anything below this line
+# ------------------------------------------
+.SUFFIXES: .d .c
+
+CFLAGS += -MD -DPREFIX=\"$(PREFIX)\" $(OPTIONS)
+LDFLAGS += $(CLDFLAGS)
+
+SOURCES = $(patsubst %,%.c,$(MEMBERS))
+OBJS = $(patsubst %,%.o,$(MEMBERS))
+DEPS = $(patsubst %,%.d,$(MEMBERS))
+
+all: $(PRGNAME)
+
+$(PRGNAME): $(OBJS)
+       $(CC) -o $@ $^ $(LDFLAGS)
+
+clean:
+       rm -f *.o *.d $(PRGNAME)
+
+-include $(DEPS)