summaryrefslogtreecommitdiff
path: root/IMdkit/Makefile
diff options
context:
space:
mode:
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
+