X-Git-Url: http://git.maemo.org/git/?a=blobdiff_plain;f=Makefile;h=1cbed792fe71c72af88f5c0e22ef5f74d70bc916;hb=44266ea79540d61ba3cc601a132a23e0f5fdb563;hp=b45cec6384b1874b5a91605adf06fe093cc93b3d;hpb=434be06328d75d352498f1d3350e356dcc280d5c;p=simple-launcher diff --git a/Makefile b/Makefile index b45cec6..1cbed79 100644 --- a/Makefile +++ b/Makefile @@ -1,29 +1,43 @@ 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=libsimple-launcher.so +TARGET=simple-launcher.so +DESKTOP_FILE=simple-launcher.desktop +BACKUP_CONF=simple-launcher.backup + +all: $(TARGET) -all: $(TARGET) test +tests: test test1 -$(TARGET): simple-launcher.o launcher-item.o +$(TARGET): simple-launcher.o launchable-item.o launcher-item.o sla-list.o utils.o settings-dialog.o gconf-wrapper.o $(LD) $(LDFLAGS) -o $@ $^ $(LIBS) test: test.o launcher-item.o - g++ -o $@ $^ $(LIBS) $(GTKLIBS) $(DBUSLIBS) + g++ -o $@ $^ $(GTKLIBS) $(DBUSLIBS) $(LIBS) -losso + +test1: test1.o sla-list.o launcher-item.o + g++ -g -o $@ $^ $(GTKLIBS) $(DBUSLIBS) $(LIBS) clean: - rm -f *.d *.o $(TARGET) test + rm -f *.d *.o $(TARGET) test test1 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