aboutsummaryrefslogtreecommitdiff
path: root/examples/Makefile.static
diff options
context:
space:
mode:
Diffstat (limited to 'examples/Makefile.static')
-rw-r--r--examples/Makefile.static16
1 files changed, 16 insertions, 0 deletions
diff --git a/examples/Makefile.static b/examples/Makefile.static
new file mode 100644
index 0000000..bfb5092
--- /dev/null
+++ b/examples/Makefile.static
@@ -0,0 +1,16 @@
+CC=gcc
+CFLAGS=-O0 -g -Wall -I/usr/include -I/usr/X11R6/include `pkg-config --cflags glib-2.0 gconf-2.0 gthread-2.0 hildon-1`
+LDFLAGS=-pthread -L/usr/X11R6/lib -lm `pkg-config --libs glib-2.0 gthread-2.0 hildon-1`
+
+EXAMPLES = $(patsubst %.c,%,$(wildcard *.c))
+
+all: $(EXAMPLES)
+
+
+%:%.c
+ gcc $(LDFLAGS) $(CFLAGS) -o $@ $<
+
+
+clean:
+ rm -f *example
+