summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile9
1 files changed, 8 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 4ec1ed1..b596bf8 100644
--- a/Makefile
+++ b/Makefile
@@ -1,5 +1,5 @@
CFLAGS?=-g -Wall -O0
-LDFLAGS?=-Wl,-O1
+LDFLAGS?=-Wl,-O1 -Wl,--as-needed
XMIMD_TARGET:=xmimd
XMIMD_OBJS:=main.o ximserver.o mimclient.o context.o
@@ -35,6 +35,13 @@ IMdkit/libIMdkit.a:
meego/libmeego-im-common.a:
$(MAKE) -C meego all
+install: $(XMIMD_TARGET)
+ install -d $(DESTDIR)/usr/bin
+ install -m 0755 $(XMIMD_TARGET) $(DESTDIR)/usr/bin
+
+uninstall:
+ rm -f $(DESTDIR)/usr/bin/$(XMIMD_TARGET)
+
clean:
rm -f *.o $(XMIMD_TARGET) $(XMIMTEST_TARGET)
$(MAKE) -C IMdkit clean