0
|
1 #
|
|
2 # $Id: Makefile.in,v 1.4 2001/08/14 13:43:20 hiroo Exp $
|
|
3 #
|
|
4
|
|
5
|
|
6 include @top_srcdir@/makerule.mk
|
|
7 top_builddir = ..
|
|
8
|
|
9 #
|
|
10 # Do simply 'make' for normal cases.
|
|
11 # Do 'make project', if your site participates in the PUBDIC project.
|
|
12 #
|
|
13
|
|
14 ### ATOD=atod
|
|
15 ### ATOF=atof
|
|
16 ### HINSI=hinsi.data
|
|
17 ### FZK_SRC=fzk.master fzk.attr fzk.jirattr fzk.fzkattr fzk.jircon fzk.con fzk.shuutan
|
|
18 ### FZK_FLAG=
|
|
19 ###
|
|
20 ### dic=\
|
|
21 ### kihon.dic \
|
|
22 ### setsuji.dic \
|
|
23 ### jinmei.dic \
|
|
24 ### chimei.dic \
|
|
25 ### koyuu.dic \
|
|
26 ### special.dic \
|
|
27 ### computer.dic \
|
|
28 ### bio.dic \
|
|
29 ### symbol.dic \
|
|
30 ### tankan.dic
|
|
31 ###
|
|
32 ### more=\
|
|
33 ### kihon.more \
|
|
34 ### setsuji.more \
|
|
35 ### jinmei.more \
|
|
36 ### chimei.more \
|
|
37 ### koyuu.more \
|
|
38 ### special.more \
|
|
39 ### computer.more \
|
|
40 ### bio.more \
|
|
41 ### symbol.more \
|
|
42 ### tankan.more
|
|
43 ###
|
|
44 ### all: full.fzk kougo.fzk std.fzk $(dic)
|
|
45 ###
|
|
46 ### project: all $(more)
|
|
47 ###
|
|
48 ### clean::
|
|
49 ### rm -f *.fzk *.dic *.more
|
|
50 ###
|
|
51 ### std.fzk: $(FZK_SRC)
|
|
52 ### /lib/cpp $(FZK_FLAG) fzk.master | egrep -v '^(# |$$)' | $(ATOF) $@
|
|
53 ###
|
|
54 ### full.fzk: $(FZK_SRC)
|
|
55 ### make FZK_FLAG=-DKANSAI std.fzk
|
|
56 ### mv std.fzk $@
|
|
57 ###
|
|
58 ### kougo.fzk: $(FZK_SRC)
|
|
59 ### make FZK_FLAG=-DKOUGO std.fzk
|
|
60 ### mv std.fzk $@
|
|
61 ###
|
|
62 ### .SUFFIXES: .hd .u .dic .more
|
|
63 ###
|
|
64 ### .u.dic:
|
|
65 ### cat $*.hd $< | $(ATOD) -p Version -P Version $@
|
|
66 ###
|
|
67 ### .hd.more:
|
|
68 ### $(ATOD) $@ < $<
|
|
69 ###
|
|
70 ### $(dic): $(HINSI)
|
|
71
|
|
72 # ---------------------------------------------------------------------------
|
|
73 # ここからは Pubdic+ 由来のもの
|
|
74 #
|
|
75 # ---------------------------------------------------------------------------
|
|
76
|
|
77 TARGETS = pod ctopd wtopd
|
|
78 PUBDICS = pubdic.p special.p
|
|
79 WNNDICS = bio.u chimei.u computer.u jinmei.u kihon.u koyuu.u setsuji.u symbol.u tankan.u
|
|
80
|
|
81 all:: $(TARGETS) wnn
|
|
82 canna: iroha.t
|
|
83 wnn: $(WNNDICS)
|
|
84 sj3: visual.dic
|
|
85
|
|
86
|
|
87 pod: pod.o
|
|
88 $(CC) $(CFLAGS) -o $@ pod.o
|
|
89
|
|
90 ctopd: ctopd.o
|
|
91 $(CC) $(CFLAGS) -o $@ ctopd.o
|
|
92
|
|
93 wtopd: wtopd.o
|
|
94 $(CC) $(CFLAGS) -o $@ wtopd.o
|
|
95
|
|
96
|
|
97
|
|
98 iroha.t: $(PUBDICS) pod
|
|
99 cat $(PUBDICS) | ./pod - -p -i -2 > iroha.spl
|
|
100 mergeword < iroha.spl > iroha.t
|
|
101 $(RM) iroha.spl
|
|
102
|
|
103 visual.dic: pubdic.p pod
|
|
104 ./pod pubdic.p -p -v -3 > $@
|
|
105
|
|
106 bio.u: pod pubdic.p
|
|
107 ./pod pubdic.p -w -1 -k bio > $@
|
|
108
|
|
109 chimei.u: pod pubdic.p
|
|
110 ./pod pubdic.p -w -1 -k chimei > $@
|
|
111
|
|
112 computer.u: pod pubdic.p
|
|
113 ./pod pubdic.p -w -1 -k computer > $@
|
|
114
|
|
115 jinmei.u: pod pubdic.p
|
|
116 ./pod pubdic.p -w -1 -k jinmei > $@
|
|
117
|
|
118 kihon.u: pod pubdic.p
|
|
119 ./pod pubdic.p -w -1 -k kihon > $@
|
|
120
|
|
121 koyuu.u: pod pubdic.p
|
|
122 ./pod pubdic.p -w -1 -k koyuu > $@
|
|
123
|
|
124 setsuji.u: pod pubdic.p
|
|
125 ./pod pubdic.p -w -1 -k setsuji > $@
|
|
126
|
|
127 symbol.u: pod pubdic.p
|
|
128 ./pod pubdic.p -w -1 -k symbol > $@
|
|
129
|
|
130 tankan.u: pod pubdic.p
|
|
131 ./pod pubdic.p -w -1 -k tankan > $@
|
|
132
|
|
133 clean::
|
|
134 $(RM) $(WNNDICS) iroha.t visual.dic
|
|
135 $(RM) $(TARGETS)
|
|
136 $(RM) pod.o ctopd.o wtopd.o
|