28a69fdf76
(PR#17230 by Rui-Xiang Guo <rxg@netbsd.org>) libraries and modules of Unicon --- The Unicon project intend to implement display/input CJK (Chinese/Japanese/Korean) characters under the Framebuffer under Linux. This package will install the libraries and modules for Chinput.
51 lines
1.8 KiB
Text
51 lines
1.8 KiB
Text
$NetBSD: patch-ad,v 1.1.1.1 2002/06/15 09:29:15 shell Exp $
|
|
|
|
--- client/Makefile.in.orig Mon May 22 17:47:14 2000
|
|
+++ client/Makefile.in
|
|
@@ -1,20 +1,21 @@
|
|
prefix=@prefix@
|
|
-CFLAGS = @CFLAGS@
|
|
+CFLAGS = -Wall -I. -I../include -I../server -I../client @CFLAGS@
|
|
PROG_LIB = libimmclient.a
|
|
SLIB_OBJS = TLC_TcpipImmClient.o TLC_ImmServer.o TLC_Utils.o \
|
|
TLC_MemFile.o TLC_SocketClient.o
|
|
DLIB_OBJS = TLC_LibImmClient.o TLC_Utils.o
|
|
SERVER_LIB=../server/libimm_server.so
|
|
|
|
-CFLAGS = -g -Wall -I. -I../include -I../server -I../client
|
|
# CFLAGS = -g -D__IMM_DEBUG__ -Wall -I. -I../include
|
|
+CC = $(LIBTOOL) --mode=compile $(CXX)
|
|
|
|
-all: $(PROG_LIB)
|
|
+all: $(DLIB_OBJS)
|
|
+ $(LIBTOOL) --mode=link $(CXX) -o $(PROG_LIB:.a=.la) $(DLIB_OBJS:.o=.lo) -rpath $(prefix)/lib -version-info 1:2
|
|
|
|
libimmclient.a: $(DLIB_OBJS)
|
|
ar rc $(PROG_LIB) $(DLIB_OBJS)
|
|
TLC_LibImmClient.o: TLC_LibImmClient.cpp
|
|
- gcc $(CFLAGS) -c TLC_LibImmClient.cpp -o TLC_LibImmClient.o
|
|
+ $(CC) $(CFLAGS) -c TLC_LibImmClient.cpp -o TLC_LibImmClient.o
|
|
|
|
slib: $(SLIB_OBJS)
|
|
ar rc $(PROG_LIB) $(SLIB_OBJS)
|
|
@@ -23,7 +24,7 @@
|
|
TLC_ImmServer.o: TLC_ImmServer.cpp TLC_ImmServer.hpp
|
|
gcc $(CFLAGS) -c TLC_ImmServer.cpp -o TLC_ImmServer.o
|
|
TLC_Utils.o: TLC_Utils.cpp
|
|
- gcc $(CFLAGS) -c TLC_Utils.cpp -o TLC_Utils.o
|
|
+ $(CC) $(CFLAGS) -c TLC_Utils.cpp -o TLC_Utils.o
|
|
TLC_MemFile.o: TLC_MemFile.cpp TLC_MemFile.hpp
|
|
gcc $(CFLAGS) -c TLC_MemFile.cpp -o TLC_MemFile.o
|
|
TLC_SocketClient.o: TLC_SocketClient.cpp TLC_SocketClient.hpp
|
|
@@ -32,9 +33,8 @@
|
|
test: all $(SERVER_LIB)
|
|
g++ $(CFLAGS) -D__DLL_SUPPORT__ -ldl -lpth test.cpp $(PROG_LIB) $(SERVER_LIB) -o test
|
|
|
|
-install: all
|
|
- mkdir -p $(prefix)/lib/unicon2
|
|
- cp -f $(PROG_LIB) $(prefix)/lib/unicon2
|
|
+install:
|
|
+ $(LIBTOOL) --mode=install $(BSD_INSTALL_DATA) $(PROG_LIB:.a=.la) $(prefix)/lib
|
|
clean:
|
|
rm -f *.o *.bak $(PROG_LIB) $(PROG)
|
|
|