File gcin-parallel-compiling.patch of Package gcin
Index: gcin-2.8.6/Makefile
===================================================================
--- gcin-2.8.6.orig/Makefile
+++ gcin-2.8.6/Makefile
@@ -112,19 +112,19 @@ all: $(PROGS) trad2sim $(GCIN_SO) $(DATA
#gcc_ld_run_path=-Wl,-rpath,$(gcin_ld_run_path)
-gcin: $(OBJS) $(IMdkitLIB) $(OBJ_IMSRV)
+gcin: $(OBJS) $(IMdkitLIB) $(OBJ_IMSRV) im-client/libgcin-im-client.so
$(CCLD) $(EXTRA_LDFLAGS) $(gcc_ld_run_path) -o $@ $(OBJS) $(IMdkitLIB) $(OBJ_IMSRV) -lXtst $(GCIN_LDFLAGS) -L/usr/X11R6/$(LIB)
rm -f core.* vgcore.*
ln -sf $@ $@.test
-gcin-nocur: $(OBJS) $(IMdkitLIB) $(OBJ_IMSRV)
+gcin-nocur: $(OBJS) $(IMdkitLIB) $(OBJ_IMSRV) im-client/libgcin-im-client.so
$(CCLD) -Wl,-rpath,$(gcinlibdir) $(EXTRA_LDFLAGS) -o $@ $(OBJS) $(IMdkitLIB) $(OBJ_IMSRV) -lXtst $(LDFLAGS) -L/usr/X11R6/$(LIB)
rm -f core.*
-tslearn: $(OBJS_TSLEARN)
+tslearn: $(OBJS_TSLEARN) im-client/libgcin-im-client.so
$(CCLD) $(gcc_ld_run_path) -o $@ $(OBJS_TSLEARN) -L./im-client -lgcin-im-client $(LDFLAGS)
-ts-edit: $(OBJS_TS_EDIT)
+ts-edit: $(OBJS_TS_EDIT) im-client/libgcin-im-client.so
$(CCLD) $(gcc_ld_run_path) -o $@ $(OBJS_TS_EDIT) -L./im-client -lgcin-im-client -lcurl $(LDFLAGS)
ts-contribute: ts-edit
@@ -171,16 +171,16 @@ gtab-merge: $(OBJS_gtab_merge)
kbmcv: $(OBJS_kbmcv)
$(CCLD) -o $@ $(OBJS_kbmcv) $(LDFLAGS)
-gcin-gb-toggle: $(OBJS_gcin_gb_toggle)
+gcin-gb-toggle: $(OBJS_gcin_gb_toggle) im-client/libgcin-im-client.so
$(CCLD) $(gcc_ld_run_path) -o $@ $(OBJS_gcin_gb_toggle) -L./im-client -lgcin-im-client $(LDFLAGS)
-gcin-kbm-toggle: $(OBJS_gcin_kbm_toggle)
+gcin-kbm-toggle: $(OBJS_gcin_kbm_toggle) im-client/libgcin-im-client.so
$(CCLD) $(gcc_ld_run_path) -o $@ $(OBJS_gcin_kbm_toggle) -L./im-client -lgcin-im-client $(LDFLAGS)
-gcin-exit: $(OBJS_gcin_exit)
+gcin-exit: $(OBJS_gcin_exit) im-client/libgcin-im-client.so
$(CCLD) $(gcc_ld_run_path) -o $@ $(OBJS_gcin_exit) -L./im-client -lgcin-im-client $(LDFLAGS)
-gcin-message: $(OBJS_gcin_message)
+gcin-message: $(OBJS_gcin_message) im-client/libgcin-im-client.so
$(CCLD) $(gcc_ld_run_path) -o $@ $(OBJS_gcin_message) -L./im-client -lgcin-im-client $(LDFLAGS)
pin-juyin: $(OBJS_pin_juyin)