]>
Commit | Line | Data |
---|---|---|
233b1628 | 1 | # -*- makefile -*- |
2 | ||
3 | # For the parser. | |
4 | grub_script.tab.c grub_script.tab.h: normal/parser.y | |
5 | $(YACC) -d -p grub_script_yy -b grub_script $(srcdir)/normal/parser.y | |
befaed6c | 6 | DISTCLEANFILES += grub_script.tab.c grub_script.tab.h |
233b1628 | 7 | |
8 | # For grub-emu. | |
b4c1940a | 9 | grub_modules_init.lst: geninit.sh $(filter-out grub_emu_init.c,$(grub_emu_SOURCES)) |
cfca1cfd | 10 | rm -f $@; grep GRUB_MOD_INIT $(filter %.c,$^) /dev/null > $@ |
befaed6c | 11 | DISTCLEANFILES += grub_modules_init.lst |
233b1628 | 12 | |
13 | grub_modules_init.h: $(filter-out grub_emu_init.c,$(grub_emu_SOURCES)) geninitheader.sh grub_modules_init.lst | |
cfca1cfd | 14 | rm -f $@; sh $(srcdir)/geninitheader.sh > $@ |
befaed6c | 15 | DISTCLEANFILES += grub_modules_init.h |
233b1628 | 16 | |
17 | grub_emu_init.c: $(filter-out grub_emu_init.c,$(grub_emu_SOURCES)) geninit.sh grub_modules_init.lst grub_modules_init.h | |
cfca1cfd | 18 | rm -f $@; sh $(srcdir)/geninit.sh $(filter %.c,$^) > $@ |
befaed6c | 19 | DISTCLEANFILES += grub_emu_init.c |
233b1628 | 20 | |
21 | ||
22 | # Filing systems. | |
23 | pkgdata_MODULES += fshelp.mod fat.mod ufs.mod ext2.mod \ | |
24 | minix.mod hfs.mod jfs.mod iso9660.mod xfs.mod affs.mod \ | |
50214199 | 25 | sfs.mod hfsplus.mod |
233b1628 | 26 | |
27 | # For fshelp.mod. | |
28 | fshelp_mod_SOURCES = fs/fshelp.c | |
29 | fshelp_mod_CFLAGS = $(COMMON_CFLAGS) | |
30 | fshelp_mod_LDFLAGS = $(COMMON_LDFLAGS) | |
31 | ||
32 | # For fat.mod. | |
33 | fat_mod_SOURCES = fs/fat.c | |
34 | fat_mod_CFLAGS = $(COMMON_CFLAGS) | |
35 | fat_mod_LDFLAGS = $(COMMON_LDFLAGS) | |
36 | ||
37 | # For ufs.mod. | |
38 | ufs_mod_SOURCES = fs/ufs.c | |
39 | ufs_mod_CFLAGS = $(COMMON_CFLAGS) | |
40 | ufs_mod_LDFLAGS = $(COMMON_LDFLAGS) | |
41 | ||
42 | # For ext2.mod. | |
43 | ext2_mod_SOURCES = fs/ext2.c | |
44 | ext2_mod_CFLAGS = $(COMMON_CFLAGS) | |
45 | ext2_mod_LDFLAGS = $(COMMON_LDFLAGS) | |
46 | ||
47 | # For minix.mod. | |
48 | minix_mod_SOURCES = fs/minix.c | |
49 | minix_mod_CFLAGS = $(COMMON_CFLAGS) | |
50 | minix_mod_LDFLAGS = $(COMMON_LDFLAGS) | |
51 | ||
52 | # For hfs.mod. | |
53 | hfs_mod_SOURCES = fs/hfs.c | |
54 | hfs_mod_CFLAGS = $(COMMON_CFLAGS) | |
55 | hfs_mod_LDFLAGS = $(COMMON_LDFLAGS) | |
56 | ||
57 | # For jfs.mod. | |
58 | jfs_mod_SOURCES = fs/jfs.c | |
59 | jfs_mod_CFLAGS = $(COMMON_CFLAGS) | |
60 | jfs_mod_LDFLAGS = $(COMMON_LDFLAGS) | |
61 | ||
62 | # For iso9660.mod. | |
63 | iso9660_mod_SOURCES = fs/iso9660.c | |
64 | iso9660_mod_CFLAGS = $(COMMON_CFLAGS) | |
65 | iso9660_mod_LDFLAGS = $(COMMON_LDFLAGS) | |
66 | ||
67 | # For xfs.mod. | |
68 | xfs_mod_SOURCES = fs/xfs.c | |
69 | xfs_mod_CFLAGS = $(COMMON_CFLAGS) | |
70 | xfs_mod_LDFLAGS = $(COMMON_LDFLAGS) | |
71 | ||
72 | # For affs.mod. | |
73 | affs_mod_SOURCES = fs/affs.c | |
74 | affs_mod_CFLAGS = $(COMMON_CFLAGS) | |
75 | affs_mod_LDFLAGS = $(COMMON_LDFLAGS) | |
76 | ||
77 | # For sfs.mod. | |
78 | sfs_mod_SOURCES = fs/sfs.c | |
79 | sfs_mod_CFLAGS = $(COMMON_CFLAGS) | |
80 | sfs_mod_LDFLAGS = $(COMMON_LDFLAGS) | |
233b1628 | 81 | |
50214199 | 82 | # For hfsplus.mod. |
83 | hfsplus_mod_SOURCES = fs/hfsplus.c | |
84 | hfsplus_mod_CFLAGS = $(COMMON_CFLAGS) | |
85 | hfsplus_mod_LDFLAGS = $(COMMON_LDFLAGS) | |
86 | ||
b04216ab | 87 | # Partition maps. |
88 | pkgdata_MODULES += amiga.mod apple.mod pc.mod sun.mod acorn.mod gpt.mod | |
233b1628 | 89 | |
90 | # For amiga.mod | |
91 | amiga_mod_SOURCES = partmap/amiga.c | |
92 | amiga_mod_CFLAGS = $(COMMON_CFLAGS) | |
93 | amiga_mod_LDFLAGS = $(COMMON_LDFLAGS) | |
94 | ||
95 | # For apple.mod | |
96 | apple_mod_SOURCES = partmap/apple.c | |
97 | apple_mod_CFLAGS = $(COMMON_CFLAGS) | |
98 | apple_mod_LDFLAGS = $(COMMON_LDFLAGS) | |
99 | ||
100 | # For pc.mod | |
101 | pc_mod_SOURCES = partmap/pc.c | |
102 | pc_mod_CFLAGS = $(COMMON_CFLAGS) | |
103 | pc_mod_LDFLAGS = $(COMMON_LDFLAGS) | |
104 | ||
105 | # For sun.mod | |
106 | sun_mod_SOURCES = partmap/sun.c | |
107 | sun_mod_CFLAGS = $(COMMON_CFLAGS) | |
108 | sun_mod_LDFLAGS = $(COMMON_LDFLAGS) | |
109 | ||
110 | # For acorn.mod | |
111 | acorn_mod_SOURCES = partmap/acorn.c | |
112 | acorn_mod_CFLAGS = $(COMMON_CFLAGS) | |
113 | acorn_mod_LDFLAGS = $(COMMON_LDFLAGS) | |
114 | ||
b04216ab | 115 | # For gpt.mod |
116 | gpt_mod_SOURCES = partmap/gpt.c | |
117 | gpt_mod_CFLAGS = $(COMMON_CFLAGS) | |
118 | gpt_mod_LDFLAGS = $(COMMON_LDFLAGS) | |
119 | ||
2b002173 | 120 | # Special disk structures |
121 | ||
122 | pkgdata_MODULES += raid.mod lvm.mod | |
123 | ||
124 | # For raid.mod | |
125 | raid_mod_SOURCES = disk/raid.c | |
126 | raid_mod_CFLAGS = $(COMMON_CFLAGS) | |
127 | raid_mod_LDFLAGS = $(COMMON_LDFLAGS) | |
128 | ||
129 | # For raid.mod | |
130 | lvm_mod_SOURCES = disk/lvm.c | |
131 | lvm_mod_CFLAGS = $(COMMON_CFLAGS) | |
132 | lvm_mod_LDFLAGS = $(COMMON_LDFLAGS) | |
233b1628 | 133 | |
134 | # Commands. | |
135 | pkgdata_MODULES += hello.mod boot.mod terminal.mod ls.mod \ | |
136 | cmp.mod cat.mod help.mod font.mod search.mod \ | |
4e93851c | 137 | loopback.mod configfile.mod \ |
89a7d726 | 138 | terminfo.mod test.mod blocklist.mod |
233b1628 | 139 | |
140 | # For hello.mod. | |
141 | hello_mod_SOURCES = hello/hello.c | |
142 | hello_mod_CFLAGS = $(COMMON_CFLAGS) | |
143 | hello_mod_LDFLAGS = $(COMMON_LDFLAGS) | |
144 | ||
145 | # For boot.mod. | |
146 | boot_mod_SOURCES = commands/boot.c | |
147 | boot_mod_CFLAGS = $(COMMON_CFLAGS) | |
148 | boot_mod_LDFLAGS = $(COMMON_LDFLAGS) | |
149 | ||
150 | # For terminal.mod. | |
151 | terminal_mod_SOURCES = commands/terminal.c | |
152 | terminal_mod_CFLAGS = $(COMMON_CFLAGS) | |
153 | terminal_mod_LDFLAGS = $(COMMON_LDFLAGS) | |
154 | ||
155 | # For ls.mod. | |
156 | ls_mod_SOURCES = commands/ls.c | |
157 | ls_mod_CFLAGS = $(COMMON_CFLAGS) | |
158 | ls_mod_LDFLAGS = $(COMMON_LDFLAGS) | |
159 | ||
160 | # For cmp.mod. | |
161 | cmp_mod_SOURCES = commands/cmp.c | |
162 | cmp_mod_CFLAGS = $(COMMON_CFLAGS) | |
163 | cmp_mod_LDFLAGS = $(COMMON_LDFLAGS) | |
164 | ||
165 | # For cat.mod. | |
166 | cat_mod_SOURCES = commands/cat.c | |
167 | cat_mod_CFLAGS = $(COMMON_CFLAGS) | |
168 | cat_mod_LDFLAGS = $(COMMON_LDFLAGS) | |
169 | ||
b5ef1102 | 170 | # For echo.mod |
171 | echo_mod_SOURCES = commands/echo.c | |
172 | echo_mod_CFLAGS = $(COMMON_CFLAGS) | |
173 | echo_mod_LDFLAGS = $(COMMON_LDFLAGS) | |
174 | ||
233b1628 | 175 | # For help.mod. |
176 | help_mod_SOURCES = commands/help.c | |
177 | help_mod_CFLAGS = $(COMMON_CFLAGS) | |
178 | help_mod_LDFLAGS = $(COMMON_LDFLAGS) | |
179 | ||
180 | # For font.mod. | |
181 | font_mod_SOURCES = font/manager.c | |
182 | font_mod_CFLAGS = $(COMMON_CFLAGS) | |
183 | font_mod_LDFLAGS = $(COMMON_LDFLAGS) | |
184 | ||
185 | # For search.mod. | |
186 | search_mod_SOURCES = commands/search.c | |
187 | search_mod_CFLAGS = $(COMMON_CFLAGS) | |
188 | search_mod_LDFLAGS = $(COMMON_LDFLAGS) | |
189 | ||
190 | # For test.mod. | |
191 | test_mod_SOURCES = commands/test.c | |
192 | test_mod_CFLAGS = $(COMMON_CFLAGS) | |
193 | test_mod_LDFLAGS = $(COMMON_LDFLAGS) | |
194 | ||
195 | # For loopback.mod | |
196 | loopback_mod_SOURCES = disk/loopback.c | |
197 | loopback_mod_CFLAGS = $(COMMON_CFLAGS) | |
198 | loopback_mod_LDFLAGS = $(COMMON_LDFLAGS) | |
199 | ||
233b1628 | 200 | # For configfile.mod |
201 | configfile_mod_SOURCES = commands/configfile.c | |
202 | configfile_mod_CFLAGS = $(COMMON_CFLAGS) | |
203 | configfile_mod_LDFLAGS = $(COMMON_LDFLAGS) | |
204 | ||
205 | # For terminfo.mod. | |
206 | terminfo_mod_SOURCES = term/terminfo.c term/tparm.c | |
207 | terminfo_mod_CFLAGS = $(COMMON_CFLAGS) | |
208 | terminfo_mod_LDFLAGS = $(COMMON_LDFLAGS) | |
209 | ||
89a7d726 | 210 | # For blocklist.mod. |
211 | blocklist_mod_SOURCES = commands/blocklist.c | |
212 | blocklist_mod_CFLAGS = $(COMMON_CFLAGS) | |
213 | blocklist_mod_LDFLAGS = $(COMMON_LDFLAGS) | |
233b1628 | 214 | |
215 | # Misc. | |
2166cc83 | 216 | pkgdata_MODULES += gzio.mod elf.mod |
217 | ||
218 | # For elf.mod. | |
219 | elf_mod_SOURCES = kern/elf.c | |
220 | elf_mod_CFLAGS = $(COMMON_CFLAGS) | |
221 | elf_mod_LDFLAGS = $(COMMON_LDFLAGS) | |
233b1628 | 222 | |
223 | # For gzio.mod. | |
224 | gzio_mod_SOURCES = io/gzio.c | |
225 | gzio_mod_CFLAGS = $(COMMON_CFLAGS) | |
226 | gzio_mod_LDFLAGS = $(COMMON_LDFLAGS) | |
227 | ||
228 | ||
229 |