1 GTKCFLAGS := $(shell pkg-config gtk+-2.0 --cflags)
2 GTKLIBS := $(shell pkg-config gtk+-2.0 --libs)
4 DBUSCFLAGS := $(shell pkg-config dbus-1 --cflags)
5 DBUSLIBS := $(shell pkg-config dbus-1 --libs)
7 CXXFLAGS=-Wall -g -MMD $(GTKCFLAGS) $(DBUSCFLAGS)
8 #LDFLAGS = -module -avoid-version
12 TARGET=simple-launcher.so
18 $(TARGET): simple-launcher.o launchable-item.o launcher-item.o sla-list.o
19 $(LD) $(LDFLAGS) -o $@ $^ $(LIBS)
21 test: test.o launcher-item.o
22 g++ -o $@ $^ $(GTKLIBS) $(DBUSLIBS) $(LIBS) -losso
24 test1: test1.o sla-list.o launcher-item.o
25 g++ -g -o $@ $^ $(GTKLIBS) $(DBUSLIBS) $(LIBS)
28 rm -f *.d *.o $(TARGET) test test1
31 install -d $(DESTDIR)/usr/share/applications/hildon-home
32 install -m 0644 simple-launcher.desktop $(DESTDIR)/usr/share/applications/hildon-home
33 install -d $(DESTDIR)/usr/lib/hildon-home
34 install -m 0644 $(TARGET) $(DESTDIR)/usr/lib/hildon-home