diff console/libgnt/test/Makefile @ 13960:a06f7495af6f

[gaim-migrate @ 16513] It is possible to have multiple gnt-applications sharing the same screen. To try this, 'make WM' in console/libgnt/test. It will have a small 'Command' entry. You can give a command like './focus.so' (or one of the other examples). The applications can also be executed standalone. This required some tinkering to the Makefile. I am not sure whether there is an easier way of doing it. committer: Tailor Script <tailor@pidgin.im>
author Sadrul Habib Chowdhury <imadil@gmail.com>
date Mon, 17 Jul 2006 22:27:26 +0000
parents cd2da4b079cf
children b0e37dcb3987
line wrap: on
line diff
--- a/console/libgnt/test/Makefile	Mon Jul 17 21:33:50 2006 +0000
+++ b/console/libgnt/test/Makefile	Mon Jul 17 22:27:26 2006 +0000
@@ -1,6 +1,6 @@
 CC=gcc
-CFLAGS=`pkg-config --cflags gobject-2.0` -g -I../
-LDFLAGS=`pkg-config --libs gobject-2.0` -pg -lgnt -L../
+CFLAGS=`pkg-config --cflags gobject-2.0 gmodule-2.0` -g -I../ -DSTANDALONE
+LDFLAGS=`pkg-config --libs gobject-2.0 gmodule-2.0` -pg -lgnt -L../
 
 EXAMPLES=combo focus tv multiwin
 
@@ -8,6 +8,9 @@
 	make examples
 
 clean:
-	rm -f $(EXAMPLES)
+	rm -f $(EXAMPLES) *.so wm
+
+WM: wm
+	for i in $(EXAMPLES); do gcc -shared $(CFLAGS) -USTANDALONE $(LDFLAGS) $${i}.c -o $${i}.so ; done
 
 examples: $(EXAMPLES)