X-Git-Url: https://vcs.maemo.org/git/?a=blobdiff_plain;f=Makefile;h=e7b2109f90e45741c05cc72030ffdfbccaf88d46;hb=0095049cda673a0f8adbd93399813eedd8930a44;hp=cf182541dce218f1b04d9507406be2c1cfde5ba3;hpb=1fdd068941e322770a0f9c7d77b1616ce1c1b0c7;p=simple-launcher diff --git a/Makefile b/Makefile index cf18254..e7b2109 100644 --- a/Makefile +++ b/Makefile @@ -1,31 +1,46 @@ 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) + DBUSCFLAGS := $(shell pkg-config dbus-1 --cflags) DBUSLIBS := $(shell pkg-config dbus-1 --libs) -CXXFLAGS=-Wall -MMD $(GTKCFLAGS) $(DBUSCFLAGS) +CXXFLAGS=-Wall -g -MMD $(GTKCFLAGS) $(DBUSCFLAGS) $(GCONFCFLAGS) #LDFLAGS = -module -avoid-version LDFLAGS = -shared LIBS = -lstdc++ TARGET=simple-launcher.so +DESKTOP_FILE=simple-launcher.desktop +BACKUP_CONF=simple-launcher.backup all: $(TARGET) -$(TARGET): simple-launcher.o launcher-item.o sla-list.o +tests: test test1 test2 + +$(TARGET): simple-launcher.o launchable-item.o launcher-item.o sla-list.o utils.o settings-dialog.o gconf-wrapper.o dialog-entry.o $(LD) $(LDFLAGS) -o $@ $^ $(LIBS) test: test.o launcher-item.o - g++ -o $@ $^ $(GTKLIBS) $(DBUSLIBS) $(LIBS) -losso + g++ -o $@ $^ $(GTKLIBS) $(DBUSLIBS) $(LIBS) -losso + +test1: test1.o sla-list.o launcher-item.o + g++ -g -o $@ $^ $(GTKLIBS) $(DBUSLIBS) $(LIBS) + +test2: test2.o gconf-wrapper.o + g++ -g -o $@ $^ $(GCONFLIBS) clean: - rm -f *.d *.o $(TARGET) test + rm -f *.d *.o $(TARGET) test test1 test2 install: $(TARGET) install -d $(DESTDIR)/usr/share/applications/hildon-home - install -m 0644 simple-launcher.desktop $(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 -include *.d