forked from franzinc/clim2
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Makefile.wnn
122 lines (93 loc) · 2.51 KB
/
Makefile.wnn
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
#
# Makefile.wnn for CLIM 2.0
#
# Makefile for the jlib part of Wnn4.2
WNNFLAGS = -DJAPANESE -DCHINESE -DKOREAN -DLATIN -DWRITE_CHECK -DWNNDEFAULT \
$(PICFLAGS)
WNN_OBJS= js.o wnnerrmsg.o jl.o \
msg.o yincoding.o py_table.o zy_table.o strings.o bcopy.o \
rk_bltinfn.o rk_main.o rk_modread.o rk_read.o rk_vars.o
js.o: wnn/js.c wnn/bdic.c wnn/pwd.c
$(CC) -c $(WNNFLAGS) $(STD_DEFINES) $(CFLAGS) \
-o js.o wnn/js.c
wnnerrmsg.o : wnn/wnnerrmsg.c
$(CC) -c $(WNNFLAGS) $(STD_DEFINES) $(CFLAGS) \
-o wnnerrmsg.o wnn/wnnerrmsg.c
jl.o : wnn/jl.c
$(CC) -c $(WNNFLAGS) $(STD_DEFINES) $(CFLAGS) \
-o jl.o wnn/jl.c
msg.o : wnn/msg.c
$(CC) -c $(WNNFLAGS) $(STD_DEFINES) $(CFLAGS) \
-o msg.o wnn/msg.c
yincoding.o : wnn/yincoding.c
$(CC) -c $(WNNFLAGS) $(STD_DEFINES) $(CFLAGS) \
-o yincoding.o wnn/yincoding.c
py_table.o : wnn/py_table.c
$(CC) -c $(WNNFLAGS) $(STD_DEFINES) $(CFLAGS) \
-o py_table.o wnn/py_table.c
zy_table.o : wnn/zy_table.c
$(CC) -c $(WNNFLAGS) $(STD_DEFINES) $(CFLAGS) \
-o zy_table.o wnn/zy_table.c
strings.o : wnn/strings.c
$(CC) -c $(WNNFLAGS) $(STD_DEFINES) $(CFLAGS) \
-o strings.o wnn/strings.c
bcopy.o : wnn/bcopy.c
$(CC) -c $(WNNFLAGS) $(STD_DEFINES) $(CFLAGS) \
-o bcopy.o wnn/bcopy.c
rk_bltinfn.o : wnn/rk_bltinfn.c
$(CC) -c $(WNNFLAGS) $(STD_DEFINES) $(CFLAGS) \
-o rk_bltinfn.o wnn/rk_bltinfn.c
rk_main.o : wnn/rk_main.c
$(CC) -c $(WNNFLAGS) $(STD_DEFINES) $(CFLAGS) \
-o rk_main.o wnn/rk_main.c
rk_modread.o : wnn/rk_modread.c
$(CC) -c $(WNNFLAGS) $(STD_DEFINES) $(CFLAGS) \
-o rk_modread.o wnn/rk_modread.c
rk_read.o : wnn/rk_read.c
$(CC) -c $(WNNFLAGS) $(STD_DEFINES) $(CFLAGS) \
-o rk_read.o wnn/rk_read.c
rk_vars.o : wnn/rk_vars.c
$(CC) -c $(WNNFLAGS) $(STD_DEFINES) $(CFLAGS) \
-o rk_vars.o wnn/rk_vars.c
libwnn.a: $(WNN_OBJS)
$(AR) $@ $(WNN_OBJS)
ifeq ($(REDHAT),5)
REDHATLIBS = -lcrypt
endif
ifeq ($(REDHAT),6)
REDHATLIBS = -lcrypt
endif
ifeq ($(REDHAT),7)
REDHATLIBS = -lcrypt
endif
ifeq ($(REDHAT),8)
REDHATLIBS = -lcrypt
endif
ifeq ($(REDHAT),9)
REDHATLIBS = -lcrypt
endif
ifeq ($(REDHAT),10)
REDHATLIBS = -lcrypt
endif
ifeq ($(OS_NAME),linux)
ifeq ($(MACHINE),ppc)
REDHATLIBS = -lcrypt
endif
ifdef SUSE
REDHATLIBS = -lcrypt
endif
endif
ifeq ($(OS_NAME),freebsd)
REDHATLIBS = -lcrypt
endif
ifeq ($(OS_NAME),linux)
ifeq ($(MACHINE),x86_64)
REDHATLIBS = -lcrypt
endif
ifeq ($(MACHINE),arm64)
REDHATLIBS = -lcrypt -lrt -lm -ldl -lc
endif
endif
wnn.$(SHARED_EXT): $(WNN_OBJS)
$(MAKE_SHARED) $(SHAREFLAGS) -o wnn.$(SHARED_EXT) $(WNN_OBJS) \
$(REDHATLIBS) $(THREADLIB)