Moved the examples folder to the trunk (as the examples should be related to the...
[maevies] / examples / Makefile
diff --git a/examples/Makefile b/examples/Makefile
new file mode 100644 (file)
index 0000000..5ab5c43
--- /dev/null
@@ -0,0 +1,16 @@
+CC = g++
+
+LIBS = `pkg-config rest --libs`
+
+FLAGS = `pkg-config rest --cflags`
+
+gtranslate: gtranslate.o
+       $(CC) -o gtranslate gtranslate.o $(LIBS)
+
+gtranslate.o: gtranslate.cpp
+       $(CC) -c gtranslate.cpp $(FLAGS)
+
+all: gtranslate
+
+clean:
+       rm -rf gtranslate gtranslate.o *~