summaryrefslogtreecommitdiff
path: root/IMdkit/Makefile
diff options
context:
space:
mode:
authorJavier S. Pedro <maemo@javispedro.com>2012-04-11 03:12:40 +0200
committerJavier S. Pedro <maemo@javispedro.com>2012-04-11 03:12:40 +0200
commitbfbf55700091bb6084b3cbe151a762816db0e3f0 (patch)
treebf7605926a6e8fb06c85b1d1a605d889ca67a79f /IMdkit/Makefile
downloadxmimd-bfbf55700091bb6084b3cbe151a762816db0e3f0.tar.gz
xmimd-bfbf55700091bb6084b3cbe151a762816db0e3f0.zip
initial import
Diffstat (limited to 'IMdkit/Makefile')
-rw-r--r--IMdkit/Makefile23
1 files changed, 23 insertions, 0 deletions
diff --git a/IMdkit/Makefile b/IMdkit/Makefile
new file mode 100644
index 0000000..dccafb1
--- /dev/null
+++ b/IMdkit/Makefile
@@ -0,0 +1,23 @@
+CFLAGS?=-g -O0 -Wall
+LDFLAGS?=-Wl,-O1
+
+XIMDKIT_TARGET:=libIMdkit.a
+
+XIMDKIT_OBJS:=FrameMgr.o IMConn.o IMMethod.o IMValues.o \
+ i18nAttr.o i18nClbk.o i18nIc.o i18nIMProto.o i18nMethod.o i18nPtHdr.o i18nUtil.o i18nX.o
+XIMDKIT_PKGCONFIG:=x11
+XIMDKIT_CFLAGS:=$(shell pkg-config --cflags $(XIMDKIT_PKGCONFIG)) -std=c99
+
+all: $(XIMDKIT_TARGET)
+
+$(XIMDKIT_TARGET): $(XIMDKIT_OBJS)
+ ar rcs $@ $^
+
+$(XIMDKIT_OBJS): %.o: %.c
+ $(CC) $(XIMDKIT_CFLAGS) $(CFLAGS) -o $@ -c $<
+
+clean:
+ rm -f $(XIMDKIT_TARGET) *.o
+
+.PHONY: all clean
+