[svn-buildpackage] Tagging simple-launcher (0.9.2)
[simple-launcher] / Makefile
index ed3cb60..fb27a98 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -4,26 +4,33 @@ GTKLIBS := $(shell pkg-config gtk+-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)
 #LDFLAGS = -module -avoid-version
 LDFLAGS = -shared
 LIBS = -lstdc++
 
-TARGET=libsimple-launcher.so
+TARGET=simple-launcher.so
 
-all: $(TARGET) test
+all: $(TARGET)
 
-$(TARGET): simple-launcher.o launcher-item.o
+tests: test test1
+
+$(TARGET): simple-launcher.o launchable-item.o launcher-item.o sla-list.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)
 
 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 -d $(DESTDIR)/usr/lib/hildon-home
+       install -m 0644 $(TARGET) $(DESTDIR)/usr/lib/hildon-home
 
 -include *.d