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 -MMD $(GTKCFLAGS) $(DBUSCFLAGS)
8 #LDFLAGS = -module -avoid-version
12 TARGET=libsimple-launcher.so
16 $(TARGET): simple-launcher.o launcher-item.o
17 $(LD) $(LDFLAGS) -o $@ $^ $(LIBS)
19 test: test.o launcher-item.o
20 g++ -o $@ $^ $(GTKLIBS) $(DBUSLIBS) $(LIBS) -losso
23 rm -f *.d *.o $(TARGET) test
26 install -d $(DESTDIR)/usr/share/applications/hildon-home
27 install -m 0644 simple-launcher.desktop $(DESTDIR)/usr/share/applications/hildon-home