GTKCFLAGS := $(shell pkg-config gtk+-2.0 --cflags) GTKLIBS := $(shell pkg-config gtk+-2.0 --libs) GCONFCFLAGS := $(shell pkg-config gconf-2.0 --cflags) GCONFLIBS := $(shell pkg-config gconf-2.0 --libs) OSSOCFLAGS := $(shell pkg-config libosso --cflags) OSSOLIBS := $(shell pkg-config libosso --libs) HILDONCFLAGS := $(shell pkg-config hildon-1 --cflags) HILDONLIBS := $(shell pkg-config hildon-1 --libs) HDESKTOPCFLAGS := $(shell pkg-config libhildondesktop --cflags) HDESKTOPLIBS := $(shell pkg-config libhildondesktop --libs) CXXFLAGS=-Wall -g -MMD $(HILDONCFLAGS) $(HDESKTOPCFLAGS) $(GTKCFLAGS) $(OSSOCFLAGS) $(GCONFCFLAGS) #LDFLAGS = -module -avoid-version LDFLAGS = -shared LIBS = $(HILDONLIBS) $(HDESKTOPLIBS) $(OSSOLIBS) -lstdc++ TARGET=simple-launcher.so DESKTOP_FILE=simple-launcher.desktop BACKUP_CONF=simple-launcher.backup SOURCES := \ dialog-entry.cc \ gconf-wrapper.cc \ launchable-item.cc \ launcher-item.cc \ settings-dialog.cc \ settings-page-entries.cc \ settings-page-items.cc \ simple-launcher.cc \ utils.cc \ applet-wrapper.cc OBJS := $(SOURCES:%.cc=%.o) all: $(TARGET) $(TARGET): $(OBJS) $(LD) $(LDFLAGS) -o $@ $^ $(LIBS) clean: rm -f *.d *.o $(TARGET) install: $(TARGET) install -d $(DESTDIR)/usr/share/applications/hildon-home install -m 0644 $(DESKTOP_FILE) $(DESTDIR)/usr/share/applications/hildon-home install -d $(DESTDIR)/usr/lib/hildon-home install -m 0644 $(TARGET) $(DESTDIR)/usr/lib/hildon-home install -d $(DESTDIR)/etc/osso-backup/applications install -m 0644 $(BACKUP_CONF) $(DESTDIR)/etc/osso-backup/applications/simple-launcher.conf pclean: fakeroot debian/rules clean package: dpkg-buildpackage -rfakeroot -uc -b -include *.d