Version bump (2.5-2)
[ukeyboard.git] / ukbdcreator / Makefile
blob6a8b4c402a31dab1f220a764481f8e14cfcffe45
1 CFLAGS_ADD = -g -W -Wall `pkg-config --cflags gtk+-2.0 hildon-1 hildon-fm-2 libosso gnome-vfs-2.0`
2 LDFLAGS_ADD = `pkg-config --libs gtk+-2.0 hildon-1 hildon-fm-2 libosso libosso gnome-vfs-2.0`
3 LD = $(CC)
5 all: ukbdcreator
7 ukbdcreator.o: ukbdcreator.c version.h ukbdcreator.h
8 $(CC) $(CFLAGS_ADD) -c -o $@ $<
10 compiler.o: compiler.c ukbdcreator.h ../vkb_compiler.h
11 $(CC) $(CFLAGS_ADD) -c -o $@ $<
13 ukbdcreator: ukbdcreator.o compiler.o ../vkb_compiler_lib.o
14 $(LD) $(LDFLAGS_ADD) -o $@ $+
16 version.h: ../VERSION
17 echo '#define UKBD_VERSION "'`cat ../VERSION`'"' > version.h
19 clean:
20 rm -f ukbdcreator *.o core version.h
22 DESTDIR ?= /usr/local
23 install:
24 install -d $(DESTDIR)/usr/bin $(DESTDIR)/usr/share/applications/hildon $(DESTDIR)/usr/share/dbus-1/services
25 install ukbdcreator $(DESTDIR)/usr/bin
26 install -m 0644 ukbdcreator.desktop $(DESTDIR)/usr/share/applications/hildon
27 install -m 0644 cz.upir.ukbdcreator.service $(DESTDIR)/usr/share/dbus-1/services