1# vi:set ts=8 sts=8 sw=8 tw=0:
2#
3# C/Migemo Makefile
4#
5# Maintainer:	MURAOKA Taro <koron.kaoriya@gmail.com>
6
7default: tags
8
9tags: src/*.c src/*.h
10	ctags src/*.c src/*.h
11
12##############################################################################
13# for Borland C 5
14#
15bc: bc-rel
16bc-all: bc-rel bc-dict
17bc-rel:
18	$(MAKE) -f compile\Make_bc5.mak
19bc-dict:
20	$(MAKE) -f compile\Make_bc5.mak dictionary
21bc-clean:
22	$(MAKE) -f compile\Make_bc5.mak clean
23bc-distclean:
24	$(MAKE) -f compile\Make_bc5.mak distclean
25
26##############################################################################
27# for Cygwin
28#
29cyg: cyg-rel
30cyg-all: cyg-rel cyg-dict
31cyg-rel:
32	$(MAKE) -f compile/Make_cyg.mak
33cyg-dict:
34	$(MAKE) -f compile/Make_cyg.mak dictionary
35cyg-install: cyg-all
36	$(MAKE) -f compile/Make_cyg.mak install
37cyg-uninstall:
38	$(MAKE) -f compile/Make_cyg.mak uninstall
39cyg-clean:
40	$(MAKE) -f compile/Make_cyg.mak clean
41cyg-distclean:
42	$(MAKE) -f compile/Make_cyg.mak distclean
43
44##############################################################################
45# for MinGW
46#
47mingw: mingw-rel
48mingw-all: mingw-rel mingw-dict
49mingw-rel:
50	$(MAKE) -f compile/Make_mingw.mak
51mingw-dict:
52	$(MAKE) -f compile/Make_mingw.mak dictionary
53mingw-install: mingw-all
54	$(MAKE) -f compile/Make_mingw.mak install
55mingw-uninstall:
56	$(MAKE) -f compile/Make_mingw.mak uninstall
57mingw-clean:
58	$(MAKE) -f compile/Make_mingw.mak clean
59mingw-distclean:
60	$(MAKE) -f compile/Make_mingw.mak distclean
61
62##############################################################################
63# for GNU/gcc (Linux and others)
64#	(Tested on Vine Linux 2.1.5)
65#
66gcc: gcc-rel
67gcc-all: gcc-rel gcc-dict
68gcc-rel:
69	$(MAKE) -f compile/Make_gcc.mak
70gcc-dict:
71	$(MAKE) -f compile/Make_gcc.mak dictionary
72gcc-dat:
73	$(MAKE) -f compile/Make_gcc.mak dat
74gcc-install: gcc-rel gcc-dat
75	$(MAKE) -f compile/Make_gcc.mak install
76gcc-install-dict: gcc-dict
77	$(MAKE) -f compile/Make_gcc.mak install-dict
78gcc-install-doc:
79	$(MAKE) -f compile/Make_gcc.mak install-doc
80gcc-uninstall:
81	$(MAKE) -f compile/Make_gcc.mak uninstall
82gcc-clean:
83	$(MAKE) -f compile/Make_gcc.mak clean
84gcc-distclean:
85	$(MAKE) -f compile/Make_gcc.mak distclean
86
87##############################################################################
88# for Microsoft Visual C
89#
90msvc: msvc-rel
91msvc-all: msvc-rel msvc-dict
92msvc-rel:
93	$(MAKE) /nologo /f compile\Make_mvc.mak
94msvc-dict:
95	$(MAKE) /nologo /f compile\Make_mvc.mak dictionary
96msvc-clean:
97	$(MAKE) /nologo /f compile\Make_mvc.mak clean
98msvc-distclean:
99	$(MAKE) /nologo /f compile\Make_mvc.mak distclean
100
101##############################################################################
102# for MacOS X
103#
104osx: osx-rel
105osx-all: osx-rel osx-dict
106osx-rel:
107	$(MAKE) -f compile/Make_osx.mak
108osx-dict:
109	$(MAKE) -f compile/Make_osx.mak dictionary
110osx-install: osx-all
111	$(MAKE) -f compile/Make_osx.mak install
112osx-uninstall:
113	$(MAKE) -f compile/Make_osx.mak uninstall
114osx-clean:
115	$(MAKE) -f compile/Make_osx.mak clean
116osx-distclean:
117	$(MAKE) -f compile/Make_osx.mak distclean
118
119##############################################################################
120# for Sun's Solaris/gcc
121#	(Tested on Solaris 8)
122#
123sun: sun-rel
124sun-all: sun-rel sun-dict
125sun-rel:
126	$(MAKE) -f compile/Make_sun.mak
127sun-dict:
128	$(MAKE) -f compile/Make_sun.mak dictionary
129sun-install: sun-all
130	$(MAKE) -f compile/Make_sun.mak install
131sun-uninstall:
132	$(MAKE) -f compile/Make_sun.mak uninstall
133sun-clean:
134	$(MAKE) -f compile/Make_sun.mak clean
135sun-distclean:
136	$(MAKE) -f compile/Make_sun.mak distclean
137