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.
61 lines
2.3 KiB
Text
61 lines
2.3 KiB
Text
$NetBSD: patch-af,v 1.1.1.1 2002/06/15 09:29:16 shell Exp $
|
|
|
|
--- ImmModules/TL-1/Makefile.in.orig Wed Jun 7 13:49:56 2000
|
|
+++ ImmModules/TL-1/Makefile.in
|
|
@@ -1,24 +1,26 @@
|
|
# Generated automatically from Makefile.in by configure.
|
|
prefix=@prefix@
|
|
-CFLAGS=@CFLAGS@
|
|
-PROG = TL_hzinput.so
|
|
+CFLAGS=-Wall -I../../include -I. @CFLAGS@
|
|
+PROG = TL_hzinput.a
|
|
TL_OBJS = xl_hzinput.o TL_hzinput.o xl_phrase.o xl_sysphrase.o xl_mfile.o
|
|
|
|
-CFLAGS = -g -Wall -I../../include -I.
|
|
+CC = $(LIBTOOL) --mode=compile @CC@
|
|
+
|
|
+all: $(TL_OBJS)
|
|
+ $(LIBTOOL) --mode=link @CC@ -o $(PROG:.a=.la) $(TL_OBJS:.o=.lo) -rpath $(prefix)/lib/unicon -module -avoid-version
|
|
|
|
-all:dlib
|
|
dlib: $(PROG)
|
|
|
|
xl_mfile.o : xl_mfile.c xl_mfile.h
|
|
- gcc $(CFLAGS) -c xl_mfile.c -o xl_mfile.o
|
|
+ $(CC) $(CFLAGS) -c xl_mfile.c -o xl_mfile.o
|
|
TL_hzinput.o : TL_hzinput.c
|
|
- gcc $(CFLAGS) -DUNICON2_LIB=\"$(prefix)/lib/unicon2\" -c TL_hzinput.c -o TL_hzinput.o
|
|
+ $(CC) $(CFLAGS) -DUNICON2_LIB=\"$(prefix)/lib/unicon\" -c TL_hzinput.c -o TL_hzinput.o
|
|
xl_hzinput.o : xl_hzinput.c
|
|
- gcc $(CFLAGS) -c xl_hzinput.c -o xl_hzinput.o
|
|
+ $(CC) $(CFLAGS) -c xl_hzinput.c -o xl_hzinput.o
|
|
xl_phrase.o : xl_phrase.c
|
|
- gcc $(CFLAGS) -c xl_phrase.c -o xl_phrase.o
|
|
+ $(CC) $(CFLAGS) -c xl_phrase.c -o xl_phrase.o
|
|
xl_sysphrase.o : xl_sysphrase.c
|
|
- gcc $(CFLAGS) -c xl_sysphrase.c -o xl_sysphrase.o
|
|
+ $(CC) $(CFLAGS) -c xl_sysphrase.c -o xl_sysphrase.o
|
|
$(PROG): $(TL_OBJS)
|
|
gcc $(TL_OBJS) -shared -o $(PROG)
|
|
|
|
@@ -60,12 +62,14 @@
|
|
levelphrase : levelphrase.c
|
|
gcc -g -I../../include -I. levelphrase.c -o levelphrase
|
|
install:
|
|
- mkdir -p $(prefix)/lib/unicon2/{gb,gbk,big5}
|
|
- cp -f *.so $(prefix)/lib/unicon2
|
|
- cp -f *.bin $(prefix)/lib/unicon2
|
|
- cp -f gb/*.tab $(prefix)/lib/unicon2/gb
|
|
- cp -f gbk/*.tab $(prefix)/lib/unicon2/gbk
|
|
- cp -f xcin-25/*.tab $(prefix)/lib/unicon2/big5
|
|
+ $(LIBTOOL) --mode=install $(BSD_INSTALL_DATA) $(PROG:.a=.la) $(prefix)/lib/unicon
|
|
+ $(BSD_INSTALL_DATA) *.bin $(prefix)/lib/unicon
|
|
+ $(BSD_INSTALL_DATA_DIR) $(prefix)/lib/unicon/gb
|
|
+ $(BSD_INSTALL_DATA) gb/*.tab $(prefix)/lib/unicon/gb
|
|
+ $(BSD_INSTALL_DATA_DIR) $(prefix)/lib/unicon/gbk
|
|
+ $(BSD_INSTALL_DATA) gbk/*.tab $(prefix)/lib/unicon/gbk
|
|
+ $(BSD_INSTALL_DATA_DIR) $(prefix)/lib/unicon/big5
|
|
+ $(BSD_INSTALL_DATA) xcin-25/*.tab $(prefix)/lib/unicon/big5
|
|
|
|
clean:
|
|
rm -f *.o core a.out *.bak cin2tab test *.so
|