Added initial revision of stock widget to repo.
[stockwidget] / Makefile
diff --git a/Makefile b/Makefile
new file mode 100644 (file)
index 0000000..709015a
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,27 @@
+#
+# Makefile for stock widget
+# TODO: Generate debian package for easy installation.
+# Jon Parr
+#
+
+all: stock-home-widget
+
+SOURCES=lib-stock-home-widget.c lib-stock-settings.c stockgetter.c
+TARGET =lib-stock-home-widget.so
+DESKTOP=stock-home-widget.desktop
+
+lib-stock-home-widget.c : lib-stock-home-widget.h
+stockgetter.c : stockgetter.h
+
+stock-home-widget: $(SOURCES)
+       @gcc -Wall -ansi -pedantic -shared `pkg-config --libs --cflags hildon-1 libhildondesktop-1` $(SOURCES) -o $(TARGET) -lcurl
+
+clean:
+       @rm -rf *.o *~
+
+clobber:
+       @rm -rf $(TARGET) *.o *~
+
+install:
+       @cp -f $(TARGET) `pkg-config libhildondesktop-1 --variable=hildondesktoplibdir`/.
+       @cp -f $(DESKTOP) `pkg-config libhildondesktop-1 --variable=hildonhomedesktopentrydir`/.