rename the applet loadable file: libsimple-launcher.so to simple-launcher.so
[simple-launcher] / Makefile
1 GTKCFLAGS := $(shell pkg-config gtk+-2.0 --cflags)
2 GTKLIBS := $(shell pkg-config gtk+-2.0 --libs)
3
4 DBUSCFLAGS := $(shell pkg-config dbus-1 --cflags)
5 DBUSLIBS := $(shell pkg-config dbus-1 --libs)
6
7 CXXFLAGS=-Wall -MMD $(GTKCFLAGS) $(DBUSCFLAGS)
8 #LDFLAGS = -module -avoid-version
9 LDFLAGS = -shared
10 LIBS = -lstdc++
11
12 TARGET=simple-launcher.so
13
14 all: $(TARGET)
15
16 $(TARGET): simple-launcher.o launcher-item.o
17         $(LD) $(LDFLAGS) -o $@ $^ $(LIBS)
18
19 test: test.o launcher-item.o
20         g++ -o $@ $^ $(GTKLIBS) $(DBUSLIBS)  $(LIBS) -losso
21
22 clean:
23         rm -f *.d *.o $(TARGET) test
24
25 install: $(TARGET)
26         install -d $(DESTDIR)/usr/share/applications/hildon-home
27         install -m 0644 simple-launcher.desktop $(DESTDIR)/usr/share/applications/hildon-home
28         install -d $(DESTDIR)/usr/lib/hildon-home
29         install -m 0644 $(TARGET) $(DESTDIR)/usr/lib/hildon-home
30
31 -include *.d