2 # Makefile for stock widget
3 # TODO: Generate debian package for easy installation.
9 SOURCES=lib-stock-home-widget.c lib-stock-settings.c stockgetter.c
10 TARGET =lib-stock-home-widget.so
11 DESKTOP=stock-home-widget.desktop
13 lib-stock-home-widget.c : lib-stock-home-widget.h
14 stockgetter.c : stockgetter.h
16 stock-home-widget: $(SOURCES)
17 @gcc -Wall -ansi -pedantic -shared `pkg-config --libs --cflags hildon-1 libhildondesktop-1` $(SOURCES) -o $(TARGET) -lcurl
23 @rm -rf $(TARGET) *.o *~
26 @cp -f $(TARGET) `pkg-config libhildondesktop-1 --variable=hildondesktoplibdir`/.
27 @cp -f $(DESKTOP) `pkg-config libhildondesktop-1 --variable=hildonhomedesktopentrydir`/.