Makefile.util.def 30.7 KB
Newer Older
1 2
AutoGen definitions Makefile.tpl;

BVK Chaitanya's avatar
BVK Chaitanya committed
3
library = {
4
  name = libgrubkern.a;
BVK Chaitanya's avatar
BVK Chaitanya committed
5 6 7 8
  cflags = '$(CFLAGS_GNULIB)';
  cppflags = '$(CPPFLAGS_GNULIB)';

  common = util/misc.c;
9 10 11
  common = grub-core/kern/command.c;
  common = grub-core/kern/device.c;
  common = grub-core/kern/disk.c;
12
  common = grub-core/lib/disk.c;
13
  common = util/getroot.c;
14 15 16
  common = grub-core/osdep/unix/getroot.c;
  common = grub-core/osdep/getroot.c;
  common = grub-core/osdep/devmapper/getroot.c;
17
  common = grub-core/osdep/relpath.c;
18
  extra_dist = grub-core/kern/disk_common.c;
19 20 21
  extra_dist = grub-core/osdep/unix/relpath.c;
  extra_dist = grub-core/osdep/aros/relpath.c;
  extra_dist = grub-core/osdep/windows/relpath.c;
22
  common = grub-core/kern/emu/hostdisk.c;
23 24 25
  common = grub-core/osdep/devmapper/hostdisk.c;
  common = grub-core/osdep/hostdisk.c;
  common = grub-core/osdep/unix/hostdisk.c;
26
  common = grub-core/osdep/exec.c;
27
  common = grub-core/osdep/sleep.c;
28
  common = grub-core/osdep/password.c;
29 30
  common = grub-core/kern/emu/misc.c;
  common = grub-core/kern/emu/mm.c;
BVK Chaitanya's avatar
BVK Chaitanya committed
31
  common = grub-core/kern/env.c;
32 33 34
  common = grub-core/kern/err.c;
  common = grub-core/kern/file.c;
  common = grub-core/kern/fs.c;
BVK Chaitanya's avatar
BVK Chaitanya committed
35 36 37
  common = grub-core/kern/list.c;
  common = grub-core/kern/misc.c;
  common = grub-core/kern/partition.c;
38 39
  common = grub-core/lib/crypto.c;
  common = grub-core/disk/luks.c;
40
  common = grub-core/disk/geli.c;
41
  common = grub-core/disk/cryptodisk.c;
42 43 44 45
  common = grub-core/disk/AFSplitter.c;
  common = grub-core/lib/pbkdf2.c;
  common = grub-core/commands/extcmd.c;
  common = grub-core/lib/arg.c;
46 47 48
  common = grub-core/disk/ldm.c;
  common = grub-core/disk/diskfilter.c;
  common = grub-core/partmap/gpt.c;
49
  common = grub-core/partmap/msdos.c;
50
  common = grub-core/fs/proc.c;
51
  common = grub-core/fs/archelp.c;
BVK Chaitanya's avatar
BVK Chaitanya committed
52 53
};

54
library = {
55
  name = libgrubmods.a;
56
  cflags = '-fno-builtin -Wno-undef';
57
  cppflags = '-I$(top_srcdir)/grub-core/lib/minilzo -I$(srcdir)/grub-core/lib/xzembed -DMINILZO_HAVE_CONFIG_H';
58

59 60 61 62 63 64 65
  common_nodist = grub_script.tab.c;
  common_nodist = grub_script.yy.c;
  common_nodist = libgrub_a_init.c;
  common_nodist = grub_script.yy.h;
  common_nodist = grub_script.tab.h;

  common = grub-core/commands/blocklist.c;
66
  common = grub-core/commands/macbless.c;
67
  common = grub-core/commands/xnu_uuid.c;
68
  common = grub-core/commands/testload.c;
69 70 71 72 73
  common = grub-core/commands/ls.c;
  common = grub-core/disk/dmraid_nvidia.c;
  common = grub-core/disk/loopback.c;
  common = grub-core/disk/lvm.c;
  common = grub-core/disk/mdraid_linux.c;
74
  common = grub-core/disk/mdraid_linux_be.c;
75
  common = grub-core/disk/mdraid1x_linux.c;
76 77
  common = grub-core/disk/raid5_recover.c;
  common = grub-core/disk/raid6_recover.c;
78 79 80 81 82 83 84 85
  common = grub-core/font/font.c;
  common = grub-core/gfxmenu/font.c;
  common = grub-core/normal/charset.c;
  common = grub-core/video/fb/fbblit.c;
  common = grub-core/video/fb/fbutil.c;
  common = grub-core/video/fb/fbfill.c;
  common = grub-core/video/fb/video_fb.c;
  common = grub-core/video/video.c;
86
  common = grub-core/video/capture.c;
87 88 89
  common = grub-core/video/colors.c;
  common = grub-core/unidata.c;
  common = grub-core/io/bufio.c;
90 91
  common = grub-core/fs/affs.c;
  common = grub-core/fs/afs.c;
92
  common = grub-core/fs/bfs.c;
93
  common = grub-core/fs/btrfs.c;
94
  common = grub-core/fs/cbfs.c;
95
  common = grub-core/fs/cpio.c;
96 97 98
  common = grub-core/fs/cpio_be.c;
  common = grub-core/fs/odc.c;
  common = grub-core/fs/newc.c;
99 100
  common = grub-core/fs/ext2.c;
  common = grub-core/fs/fat.c;
101
  common = grub-core/fs/exfat.c;
102 103 104
  common = grub-core/fs/fshelp.c;
  common = grub-core/fs/hfs.c;
  common = grub-core/fs/hfsplus.c;
105
  common = grub-core/fs/hfspluscomp.c;
106 107 108
  common = grub-core/fs/iso9660.c;
  common = grub-core/fs/jfs.c;
  common = grub-core/fs/minix.c;
109
  common = grub-core/fs/minix2.c;
110
  common = grub-core/fs/minix3.c;
111 112 113
  common = grub-core/fs/minix_be.c;
  common = grub-core/fs/minix2_be.c;
  common = grub-core/fs/minix3_be.c;
114 115 116 117
  common = grub-core/fs/nilfs2.c;
  common = grub-core/fs/ntfs.c;
  common = grub-core/fs/ntfscomp.c;
  common = grub-core/fs/reiserfs.c;
118
  common = grub-core/fs/romfs.c;
119
  common = grub-core/fs/sfs.c;
120
  common = grub-core/fs/squash4.c;
121 122 123 124
  common = grub-core/fs/tar.c;
  common = grub-core/fs/udf.c;
  common = grub-core/fs/ufs2.c;
  common = grub-core/fs/ufs.c;
125
  common = grub-core/fs/ufs_be.c;
126
  common = grub-core/fs/xfs.c;
127
  common = grub-core/fs/zfs/zfscrypt.c;
128
  common = grub-core/fs/zfs/zfs.c;
129
  common = grub-core/fs/zfs/zfsinfo.c;
130
  common = grub-core/fs/zfs/zfs_lzjb.c;
131
  common = grub-core/fs/zfs/zfs_lz4.c;
132 133
  common = grub-core/fs/zfs/zfs_sha256.c;
  common = grub-core/fs/zfs/zfs_fletcher.c;
134 135 136 137
  common = grub-core/lib/envblk.c;
  common = grub-core/lib/hexdump.c;
  common = grub-core/lib/LzFind.c;
  common = grub-core/lib/LzmaEnc.c;
138
  common = grub-core/lib/crc.c;
139
  common = grub-core/lib/adler32.c;
140
  common = grub-core/lib/crc64.c;
141 142 143 144 145 146
  common = grub-core/normal/datetime.c;
  common = grub-core/normal/misc.c;
  common = grub-core/partmap/acorn.c;
  common = grub-core/partmap/amiga.c;
  common = grub-core/partmap/apple.c;
  common = grub-core/partmap/sun.c;
147
  common = grub-core/partmap/plan.c;
148
  common = grub-core/partmap/dvh.c;
149
  common = grub-core/partmap/sunpc.c;
150
  common = grub-core/partmap/bsdlabel.c;
151
  common = grub-core/partmap/dfly.c;
152 153 154 155 156
  common = grub-core/script/function.c;
  common = grub-core/script/lexer.c;
  common = grub-core/script/main.c;
  common = grub-core/script/script.c;
  common = grub-core/script/argv.c;
157
  common = grub-core/io/gzio.c;
158
  common = grub-core/io/xzio.c;
159
  common = grub-core/io/lzopio.c;
160
  common = grub-core/kern/ia64/dl_helper.c;
161 162
  common = grub-core/kern/arm/dl_helper.c;
  common = grub-core/kern/arm64/dl_helper.c;
163
  common = grub-core/lib/minilzo/minilzo.c;
164 165 166
  common = grub-core/lib/xzembed/xz_dec_bcj.c;
  common = grub-core/lib/xzembed/xz_dec_lzma2.c;
  common = grub-core/lib/xzembed/xz_dec_stream.c;
167 168 169 170 171 172
};

program = {
  name = grub-mkimage;
  mansection = 1;

173
  common = util/grub-mkimage.c;
174
  common = util/mkimage.c;
Vladimir Serbinenko's avatar
Vladimir Serbinenko committed
175 176
  common = util/grub-mkimage32.c;
  common = util/grub-mkimage64.c;
177
  common = util/resolve.c;
178
  common = grub-core/kern/emu/argp_common.c;
179
  common = grub-core/osdep/init.c;
180
  common = grub-core/osdep/config.c;
181
  extra_dist = grub-core/osdep/aros/config.c;
182 183 184
  extra_dist = grub-core/osdep/windows/config.c;
  extra_dist = grub-core/osdep/unix/config.c;
  common = util/config.c;
185

BVK Chaitanya's avatar
BVK Chaitanya committed
186
  extra_dist = util/grub-mkimagexx.c;
187

188
  ldadd = libgrubmods.a;
189
  ldadd = libgrubgcry.a;
190
  ldadd = libgrubkern.a;
BVK Chaitanya's avatar
BVK Chaitanya committed
191
  ldadd = grub-core/gnulib/libgnu.a;
192
  ldadd = '$(LIBLZMA)';
193
  ldadd = '$(LIBINTL) $(LIBDEVMAPPER) $(LIBZFS) $(LIBNVPAIR) $(LIBGEOM)';
194
  cppflags = '-DGRUB_PKGLIBDIR=\"$(pkglibdir)\"';
195 196 197 198 199 200
};

program = {
  name = grub-mkrelpath;
  mansection = 1;

201
  common = util/grub-mkrelpath.c;
202
  common = grub-core/kern/emu/argp_common.c;
203
  common = grub-core/osdep/init.c;
204

205
  ldadd = libgrubmods.a;
206
  ldadd = libgrubgcry.a;
207
  ldadd = libgrubkern.a;
208
  ldadd = grub-core/gnulib/libgnu.a;
209
  ldadd = '$(LIBINTL) $(LIBDEVMAPPER) $(LIBUTIL) $(LIBZFS) $(LIBNVPAIR) $(LIBGEOM)';
210 211 212 213 214 215
};

program = {
  name = grub-script-check;
  mansection = 1;

216
  common = util/grub-script-check.c;
217
  common = grub-core/kern/emu/argp_common.c;
218
  common = grub-core/osdep/init.c;
219

220
  ldadd = libgrubmods.a;
221
  ldadd = libgrubgcry.a;
222
  ldadd = libgrubkern.a;
223
  ldadd = grub-core/gnulib/libgnu.a;
224
  ldadd = '$(LIBINTL) $(LIBDEVMAPPER) $(LIBZFS) $(LIBNVPAIR) $(LIBGEOM)';
225 226 227 228 229 230
};

program = {
  name = grub-editenv;
  mansection = 1;

231
  common = util/grub-editenv.c;
232
  common = util/editenv.c;
233
  common = grub-core/osdep/init.c;
234

235
  ldadd = libgrubmods.a;
236
  ldadd = libgrubgcry.a;
237
  ldadd = libgrubkern.a;
238
  ldadd = grub-core/gnulib/libgnu.a;
239
  ldadd = '$(LIBINTL) $(LIBDEVMAPPER) $(LIBZFS) $(LIBNVPAIR) $(LIBGEOM)';
240 241 242 243 244 245
};

program = {
  name = grub-mkpasswd-pbkdf2;
  mansection = 1;

246
  common = util/grub-mkpasswd-pbkdf2.c;
247
  common = grub-core/kern/emu/argp_common.c;
248
  common = grub-core/osdep/random.c;
249
  common = grub-core/osdep/init.c;
250

251
  ldadd = libgrubmods.a;
252
  ldadd = libgrubgcry.a;
253
  ldadd = libgrubkern.a;
254
  ldadd = grub-core/gnulib/libgnu.a;
255
  ldadd = '$(LIBINTL) $(LIBDEVMAPPER) $(LIBZFS) $(LIBNVPAIR) $(LIBGEOM)';
256 257 258 259 260
};

program = {
  name = grub-macho2img;
  mansection = 1;
261
  common = util/grub-macho2img.c;
262
  condition = COND_APPLE_LINKER;
263 264 265 266 267
};

program = {
  name = grub-fstest;
  mansection = 1;
268
  common_nodist = grub_fstest_init.c;
269
  common = util/grub-fstest.c;
270 271
  common = grub-core/kern/emu/hostfs.c;
  common = grub-core/disk/host.c;
272
  common = grub-core/osdep/init.c;
273

274
  ldadd = libgrubmods.a;
275
  ldadd = libgrubgcry.a;
276
  ldadd = libgrubkern.a;
277
  ldadd = grub-core/gnulib/libgnu.a;
278
  ldadd = '$(LIBINTL) $(LIBDEVMAPPER) $(LIBUTIL) $(LIBZFS) $(LIBNVPAIR) $(LIBGEOM)';
279 280
};

281
program = {
282
  name = grub-mount;
283 284
  mansection = 1;
  common_nodist = grub_fstest_init.c;
285
  common = util/grub-mount.c;
286 287
  common = grub-core/kern/emu/hostfs.c;
  common = grub-core/disk/host.c;
288
  common = grub-core/osdep/init.c;
289 290

  ldadd = libgrubmods.a;
291
  ldadd = libgrubgcry.a;
292 293
  ldadd = libgrubkern.a;
  ldadd = grub-core/gnulib/libgnu.a;
294
  ldadd = '$(LIBINTL) $(LIBDEVMAPPER) $(LIBZFS) $(LIBNVPAIR) $(LIBGEOM) -lfuse';
295
  condition = COND_GRUB_MOUNT;
296 297 298 299 300
};

program = {
  name = grub-mkfont;
  mansection = 1;
301
  common = util/grub-mkfont.c;
302
  common = grub-core/kern/emu/argp_common.c;
303
  common = grub-core/osdep/init.c;
304 305

  cflags = '$(freetype_cflags)';
306
  cppflags = '-DGRUB_MKFONT=1';
BVK Chaitanya's avatar
BVK Chaitanya committed
307

308 309 310
  ldadd = libgrubmods.a;
  ldadd = libgrubgcry.a;
  ldadd = libgrubkern.a;
311
  ldadd = grub-core/gnulib/libgnu.a;
312
  ldadd = '$(freetype_libs)';
313
  ldadd = '$(LIBINTL) $(LIBDEVMAPPER) $(LIBZFS) $(LIBNVPAIR) $(LIBGEOM)';
BVK Chaitanya's avatar
BVK Chaitanya committed
314
  condition = COND_GRUB_MKFONT;
315 316 317 318 319 320
};

program = {
  name = grub-probe;
  installdir = sbin;
  mansection = 8;
321
  common = util/grub-probe.c;
322
  common = util/probe.c;
323
  common = grub-core/osdep/ofpath.c;
324
  common = grub-core/kern/emu/argp_common.c;
325
  common = grub-core/osdep/init.c;
326

327
  ldadd = libgrubmods.a;
328
  ldadd = libgrubgcry.a;
329
  ldadd = libgrubkern.a;
330
  ldadd = grub-core/gnulib/libgnu.a;
331
  ldadd = '$(LIBINTL) $(LIBDEVMAPPER) $(LIBUTIL) $(LIBZFS) $(LIBNVPAIR) $(LIBGEOM)';
332 333 334
};

program = {
335
  name = grub-bios-setup;
336 337
  installdir = sbin;
  mansection = 8;
338
  common = util/grub-setup.c;
339
  common = util/setup_bios.c;
340
  extra_dist = util/setup.c;
341
  common = grub-core/kern/emu/argp_common.c;
342
  common = grub-core/lib/reed_solomon.c;
343 344 345 346
  common = grub-core/osdep/blocklist.c;
  extra_dist = grub-core/osdep/generic/blocklist.c;
  extra_dist = grub-core/osdep/linux/blocklist.c;
  extra_dist = grub-core/osdep/windows/blocklist.c;
347
  common = grub-core/osdep/init.c;
348

349 350
  ldadd = libgrubmods.a;
  ldadd = libgrubkern.a;
351
  ldadd = libgrubgcry.a;
352
  ldadd = grub-core/gnulib/libgnu.a;
353
  ldadd = '$(LIBINTL) $(LIBDEVMAPPER) $(LIBUTIL) $(LIBZFS) $(LIBNVPAIR) $(LIBGEOM)';
354
  cppflags = '-DGRUB_SETUP_FUNC=grub_util_bios_setup';
355
};
BVK Chaitanya's avatar
BVK Chaitanya committed
356

357 358 359 360 361
program = {
  name = grub-sparc64-setup;
  installdir = sbin;
  mansection = 8;
  common = util/grub-setup.c;
362
  common = util/setup_sparc.c;
363 364
  common = grub-core/kern/emu/argp_common.c;
  common = grub-core/lib/reed_solomon.c;
365
  common = grub-core/osdep/ofpath.c;
366
  common = grub-core/osdep/blocklist.c;
367
  common = grub-core/osdep/init.c;
368 369 370 371 372 373

  ldadd = libgrubmods.a;
  ldadd = libgrubkern.a;
  ldadd = libgrubgcry.a;
  ldadd = grub-core/gnulib/libgnu.a;
  ldadd = '$(LIBINTL) $(LIBDEVMAPPER) $(LIBUTIL) $(LIBZFS) $(LIBNVPAIR) $(LIBGEOM)';
374
  cppflags = '-DGRUB_SETUP_FUNC=grub_util_sparc_setup';
375 376 377 378 379
};

program = {
  name = grub-ofpathname;
  installdir = sbin;
380
  mansection = 8;
381
  common = util/ieee1275/grub-ofpathname.c;
382
  common = grub-core/osdep/ofpath.c;
383
  common = grub-core/osdep/init.c;
384

385
  ldadd = libgrubmods.a;
386
  ldadd = libgrubgcry.a;
387
  ldadd = libgrubkern.a;
388
  ldadd = grub-core/gnulib/libgnu.a;
389
  ldadd = '$(LIBINTL) $(LIBDEVMAPPER) $(LIBUTIL) $(LIBZFS) $(LIBNVPAIR) $(LIBGEOM)';
390 391
};

392 393 394 395 396
program = {
  name = grub-mklayout;
  mansection = 1;

  common = util/grub-mklayout.c;
397
  common = grub-core/kern/emu/argp_common.c;
398
  common = grub-core/osdep/init.c;
399

400
  ldadd = libgrubmods.a;
401
  ldadd = libgrubgcry.a;
402
  ldadd = libgrubkern.a;
403
  ldadd = grub-core/gnulib/libgnu.a;
404
  ldadd = '$(LIBINTL) $(LIBDEVMAPPER) $(LIBZFS) $(LIBNVPAIR) $(LIBGEOM)';
405 406
};

407 408 409
program = {
  name = grub-macbless;
  installdir = sbin;
410
  mansection = 8;
411 412 413 414 415 416 417 418 419 420 421
  common = util/grub-macbless.c;
  common = grub-core/osdep/init.c;
  common = grub-core/kern/emu/argp_common.c;

  ldadd = libgrubmods.a;
  ldadd = libgrubgcry.a;
  ldadd = libgrubkern.a;
  ldadd = grub-core/gnulib/libgnu.a;
  ldadd = '$(LIBINTL) $(LIBDEVMAPPER) $(LIBZFS) $(LIBNVPAIR) $(LIBGEOM)';
};

422
data = {
423
  common = util/grub.d/README;
424 425 426 427 428
  installdir = grubconf;
};

script = {
  name = '00_header';
429
  common = util/grub.d/00_header.in;
430 431 432 433 434
  installdir = grubconf;
};

script = {
  name = '10_windows';
435
  common = util/grub.d/10_windows.in;
436
  installdir = grubconf;
BVK Chaitanya's avatar
BVK Chaitanya committed
437
  condition = COND_HOST_WINDOWS;
438 439 440 441
};

script = {
  name = '10_hurd';
442
  common = util/grub.d/10_hurd.in;
443
  installdir = grubconf;
444
  condition = COND_HOST_HURD;
445 446 447
};

script = {
BVK Chaitanya's avatar
BVK Chaitanya committed
448
  name = '10_kfreebsd';
449 450
  common = util/grub.d/10_kfreebsd.in;
  installdir = grubconf;
451
  condition = COND_HOST_KFREEBSD;
452 453
};

454 455 456 457
script = {
  name = '10_illumos';
  common = util/grub.d/10_illumos.in;
  installdir = grubconf;
458
  condition = COND_HOST_ILLUMOS;
459 460
};

461
script = {
BVK Chaitanya's avatar
BVK Chaitanya committed
462
  name = '10_netbsd';
463 464
  common = util/grub.d/10_netbsd.in;
  installdir = grubconf;
465
  condition = COND_HOST_NETBSD;
466 467 468 469
};

script = {
  name = '10_linux';
470
  common = util/grub.d/10_linux.in;
471
  installdir = grubconf;
472
  condition = COND_HOST_LINUX;
BVK Chaitanya's avatar
BVK Chaitanya committed
473 474
};

475 476 477 478
script = {
  name = '10_xnu';
  common = util/grub.d/10_xnu.in;
  installdir = grubconf;
479
  condition = COND_HOST_XNU;
480 481
};

BVK Chaitanya's avatar
BVK Chaitanya committed
482 483 484 485
script = {
  name = '20_linux_xen';
  common = util/grub.d/20_linux_xen.in;
  installdir = grubconf;
486
  condition = COND_HOST_LINUX;
487 488 489 490
};

script = {
  name = '30_os-prober';
491
  common = util/grub.d/30_os-prober.in;
492 493 494 495 496
  installdir = grubconf;
};

script = {
  name = '40_custom';
497
  common = util/grub.d/40_custom.in;
498 499 500
  installdir = grubconf;
};

BVK Chaitanya's avatar
BVK Chaitanya committed
501 502
script = {
  name = '41_custom';
503
  common = util/grub.d/41_custom.in;
BVK Chaitanya's avatar
BVK Chaitanya committed
504 505 506
  installdir = grubconf;
};

507
program = {
508 509
  mansection = 1;
  name = grub-mkrescue;
510 511 512 513 514

  common = util/grub-mkrescue.c;
  common = util/render-label.c;
  common = util/glue-efi.c;
  common = util/mkimage.c;
Vladimir Serbinenko's avatar
Vladimir Serbinenko committed
515 516
  common = util/grub-mkimage32.c;
  common = util/grub-mkimage64.c;
517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548
  common = util/grub-install-common.c;
  common = util/setup_bios.c;
  common = util/setup_sparc.c;
  common = grub-core/lib/reed_solomon.c;
  common = grub-core/osdep/random.c;
  common = grub-core/osdep/ofpath.c;
  common = grub-core/osdep/platform.c;
  common = grub-core/osdep/platform_unix.c;
  common = grub-core/osdep/compress.c;
  extra_dist = grub-core/osdep/unix/compress.c;
  extra_dist = grub-core/osdep/basic/compress.c;
  common = util/editenv.c;
  common = grub-core/osdep/blocklist.c;
  common = grub-core/osdep/config.c;
  common = util/config.c;

  common = grub-core/kern/emu/hostfs.c;
  common = grub-core/disk/host.c;

  common = util/resolve.c;

  common = grub-core/kern/emu/argp_common.c;
  common = grub-core/osdep/init.c;

  ldadd = '$(LIBLZMA)';
  ldadd = libgrubmods.a;
  ldadd = libgrubgcry.a;
  ldadd = libgrubkern.a;
  ldadd = grub-core/gnulib/libgnu.a;
  ldadd = '$(LIBINTL) $(LIBDEVMAPPER) $(LIBUTIL) $(LIBZFS) $(LIBNVPAIR) $(LIBGEOM)';

  condition = COND_HAVE_EXEC;
549 550
};

551
program = {
552 553
  mansection = 1;
  name = grub-mkstandalone;
554 555 556 557 558
  common = util/grub-mkstandalone.c;

  common = util/render-label.c;
  common = util/glue-efi.c;
  common = util/mkimage.c;
Vladimir Serbinenko's avatar
Vladimir Serbinenko committed
559 560
  common = util/grub-mkimage32.c;
  common = util/grub-mkimage64.c;
561 562 563 564 565 566 567 568 569
  common = util/grub-install-common.c;
  common = util/setup_bios.c;
  common = util/setup_sparc.c;
  common = grub-core/lib/reed_solomon.c;
  common = grub-core/osdep/random.c;
  common = grub-core/osdep/ofpath.c;
  common = grub-core/osdep/platform.c;
  common = grub-core/osdep/platform_unix.c;
  extra_dist = grub-core/osdep/linux/platform.c;
570
  extra_dist = grub-core/osdep/windows/platform.c;
571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593
  extra_dist = grub-core/osdep/basic/platform.c;
  extra_dist = grub-core/osdep/basic/no_platform.c;
  extra_dist = grub-core/osdep/unix/platform.c;
  common = grub-core/osdep/compress.c;
  common = util/editenv.c;
  common = grub-core/osdep/blocklist.c;
  common = grub-core/osdep/config.c;
  common = util/config.c;

  common = grub-core/kern/emu/hostfs.c;
  common = grub-core/disk/host.c;

  common = util/resolve.c;

  common = grub-core/kern/emu/argp_common.c;
  common = grub-core/osdep/init.c;

  ldadd = '$(LIBLZMA)';
  ldadd = libgrubmods.a;
  ldadd = libgrubgcry.a;
  ldadd = libgrubkern.a;
  ldadd = grub-core/gnulib/libgnu.a;
  ldadd = '$(LIBINTL) $(LIBDEVMAPPER) $(LIBUTIL) $(LIBZFS) $(LIBNVPAIR) $(LIBGEOM)';
594 595
};

596
program = {
597 598 599
  mansection = 8;
  installdir = sbin;
  name = grub-install;
600

601 602 603
  common = util/grub-install.c;
  common = util/probe.c;
  common = util/mkimage.c;
Vladimir Serbinenko's avatar
Vladimir Serbinenko committed
604 605
  common = util/grub-mkimage32.c;
  common = util/grub-mkimage64.c;
606 607 608 609 610 611 612 613 614 615 616 617 618
  common = util/grub-install-common.c;
  common = util/setup_bios.c;
  common = util/setup_sparc.c;
  common = grub-core/lib/reed_solomon.c;
  common = grub-core/osdep/random.c;
  common = grub-core/osdep/ofpath.c;
  common = grub-core/osdep/platform.c;
  common = grub-core/osdep/platform_unix.c;
  common = grub-core/osdep/compress.c;
  common = util/editenv.c;
  common = grub-core/osdep/blocklist.c;
  common = grub-core/osdep/config.c;
  common = util/config.c;
619 620 621
  common = util/render-label.c;
  common = grub-core/kern/emu/hostfs.c;
  common = grub-core/disk/host.c;
622 623 624 625 626 627 628 629 630 631 632

  common = util/resolve.c;
  common = grub-core/kern/emu/argp_common.c;
  common = grub-core/osdep/init.c;

  ldadd = '$(LIBLZMA)';
  ldadd = libgrubmods.a;
  ldadd = libgrubgcry.a;
  ldadd = libgrubkern.a;
  ldadd = grub-core/gnulib/libgnu.a;
  ldadd = '$(LIBINTL) $(LIBDEVMAPPER) $(LIBUTIL) $(LIBZFS) $(LIBNVPAIR) $(LIBGEOM)';
633 634
};

635
program = {
636 637
  mansection = 1;
  installdir = bin;
638 639
  name = grub-mknetdir;

640 641 642
  common = util/grub-mknetdir.c;

  common = util/mkimage.c;
Vladimir Serbinenko's avatar
Vladimir Serbinenko committed
643 644
  common = util/grub-mkimage32.c;
  common = util/grub-mkimage64.c;
645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668
  common = util/grub-install-common.c;
  common = util/setup_bios.c;
  common = util/setup_sparc.c;
  common = grub-core/lib/reed_solomon.c;
  common = grub-core/osdep/random.c;
  common = grub-core/osdep/ofpath.c;
  common = grub-core/osdep/platform.c;
  common = grub-core/osdep/platform_unix.c;
  common = grub-core/osdep/compress.c;
  common = util/editenv.c;
  common = grub-core/osdep/blocklist.c;
  common = grub-core/osdep/config.c;
  common = util/config.c;

  common = util/resolve.c;
  common = grub-core/kern/emu/argp_common.c;
  common = grub-core/osdep/init.c;

  ldadd = '$(LIBLZMA)';
  ldadd = libgrubmods.a;
  ldadd = libgrubgcry.a;
  ldadd = libgrubkern.a;
  ldadd = grub-core/gnulib/libgnu.a;
  ldadd = '$(LIBINTL) $(LIBDEVMAPPER) $(LIBUTIL) $(LIBZFS) $(LIBNVPAIR) $(LIBGEOM)';
669 670
};

671 672
script = {
  name = grub-mkconfig;
673
  common = util/grub-mkconfig.in;
674 675 676 677 678 679
  mansection = 8;
  installdir = sbin;
};

script = {
  name = grub-set-default;
680
  common = util/grub-set-default.in;
681 682 683 684 685 686
  mansection = 8;
  installdir = sbin;
};

script = {
  name = grub-reboot;
687
  common = util/grub-reboot.in;
688 689 690 691 692 693
  mansection = 8;
  installdir = sbin;
};

script = {
  name = grub-mkconfig_lib;
694
  common = util/grub-mkconfig_lib.in;
BVK Chaitanya's avatar
BVK Chaitanya committed
695
  installdir = noinst;
696 697
};

698 699 700
script = {
  name = grub-kbdcomp;
  common = util/grub-kbdcomp.in;
701
  mansection = 1;
702 703
};

BVK Chaitanya's avatar
BVK Chaitanya committed
704
script = {
705
  name = grub-shell;
706
  common = tests/util/grub-shell.in;
BVK Chaitanya's avatar
BVK Chaitanya committed
707
  installdir = noinst;
708 709
};

BVK Chaitanya's avatar
BVK Chaitanya committed
710
script = {
711
  name = grub-shell-tester;
712
  common = tests/util/grub-shell-tester.in;
BVK Chaitanya's avatar
BVK Chaitanya committed
713
  installdir = noinst;
714 715
};

716 717 718 719
script = {
  name = grub-fs-tester;
  common = tests/util/grub-fs-tester.in;
  installdir = noinst;
720
  dependencies = 'garbage-gen$(BUILD_EXEEXT)';
721 722 723 724 725 726 727 728 729 730 731 732 733 734 735 736 737 738 739 740 741 742 743 744 745 746 747 748 749 750 751 752 753 754 755 756 757 758 759 760 761 762 763 764 765 766 767 768 769 770 771 772 773 774 775 776 777 778 779 780 781 782 783 784 785 786 787 788 789 790 791 792 793 794 795 796 797 798 799 800 801 802 803 804 805 806 807 808 809 810 811 812 813 814 815 816 817 818 819 820 821 822 823 824 825 826 827 828 829 830 831 832 833 834 835 836
};

script = {
  testcase;
  name = ext234_test;
  common = tests/ext234_test.in;
};

script = {
  testcase;
  name = squashfs_test;
  common = tests/squashfs_test.in;
};

script = {
  testcase;
  name = iso9660_test;
  common = tests/iso9660_test.in;
};

script = {
  testcase;
  name = hfsplus_test;
  common = tests/hfsplus_test.in;
};

script = {
  testcase;
  name = ntfs_test;
  common = tests/ntfs_test.in;
};

script = {
  testcase;
  name = reiserfs_test;
  common = tests/reiserfs_test.in;
};

script = {
  testcase;
  name = fat_test;
  common = tests/fat_test.in;
};

script = {
  testcase;
  name = minixfs_test;
  common = tests/minixfs_test.in;
};

script = {
  testcase;
  name = xfs_test;
  common = tests/xfs_test.in;
};

script = {
  testcase;
  name = nilfs2_test;
  common = tests/nilfs2_test.in;
};

script = {
  testcase;
  name = romfs_test;
  common = tests/romfs_test.in;
};

script = {
  testcase;
  name = exfat_test;
  common = tests/exfat_test.in;
};

script = {
  testcase;
  name = tar_test;
  common = tests/tar_test.in;
};

script = {
  testcase;
  name = udf_test;
  common = tests/udf_test.in;
};

script = {
  testcase;
  name = hfs_test;
  common = tests/hfs_test.in;
};

script = {
  testcase;
  name = jfs_test;
  common = tests/jfs_test.in;
};

script = {
  testcase;
  name = btrfs_test;
  common = tests/btrfs_test.in;
};

script = {
  testcase;
  name = zfs_test;
  common = tests/zfs_test.in;
};

script = {
  testcase;
  name = cpio_test;
  common = tests/cpio_test.in;
};

BVK Chaitanya's avatar
BVK Chaitanya committed
837 838
script = {
  testcase;
839
  name = example_scripted_test;
840
  common = tests/example_scripted_test.in;
841 842
};

843 844 845 846
script = {
  testcase;
  name = gettext_strings_test;
  common = tests/gettext_strings_test.in;
847
  extra_dist = po/exclude.pot;
848 849
};

850 851 852 853 854 855 856 857 858 859 860 861 862 863 864 865 866 867 868 869 870 871 872 873 874 875 876 877 878 879
script = {
  testcase;
  name = pata_test;
  common = tests/pata_test.in;
};

script = {
  testcase;
  name = ahci_test;
  common = tests/ahci_test.in;
};

script = {
  testcase;
  name = uhci_test;
  common = tests/uhci_test.in;
};

script = {
  testcase;
  name = ohci_test;
  common = tests/ohci_test.in;
};

script = {
  testcase;
  name = ehci_test;
  common = tests/ehci_test.in;
};

BVK Chaitanya's avatar
BVK Chaitanya committed
880 881
script = {
  testcase;
882
  name = example_grub_script_test;
883
  common = tests/example_grub_script_test.in;
884 885
};

886 887 888 889 890 891
script = {
  testcase;
  name = grub_script_eval;
  common = tests/grub_script_eval.in;
};

892 893 894 895 896 897
script = {
  testcase;
  name = grub_script_test;
  common = tests/grub_script_test.in;
};

BVK Chaitanya's avatar
BVK Chaitanya committed
898 899
script = {
  testcase;
900
  name = grub_script_echo1;
901
  common = tests/grub_script_echo1.in;
902 903
};

904 905 906 907 908 909
script = {
  testcase;
  name = grub_script_leading_whitespace;
  common = tests/grub_script_leading_whitespace.in;
};

BVK Chaitanya's avatar
BVK Chaitanya committed
910 911
script = {
  testcase;
912
  name = grub_script_echo_keywords;
913
  common = tests/grub_script_echo_keywords.in;
914 915
};

BVK Chaitanya's avatar
BVK Chaitanya committed
916 917
script = {
  testcase;
918
  name = grub_script_vars1;
919
  common = tests/grub_script_vars1.in;
920 921
};

BVK Chaitanya's avatar
BVK Chaitanya committed
922 923
script = {
  testcase;
924
  name = grub_script_for1;
925
  common = tests/grub_script_for1.in;
926 927
};

BVK Chaitanya's avatar
BVK Chaitanya committed
928 929
script = {
  testcase;
930
  name = grub_script_while1;
931
  common = tests/grub_script_while1.in;
932 933
};

BVK Chaitanya's avatar
BVK Chaitanya committed
934 935
script = {
  testcase;
936
  name = grub_script_if;
937
  common = tests/grub_script_if.in;
938 939
};

BVK Chaitanya's avatar
BVK Chaitanya committed
940 941
script = {
  testcase;
942
  name = grub_script_blanklines;
943
  common = tests/grub_script_blanklines.in;
944 945
};

BVK Chaitanya's avatar
BVK Chaitanya committed
946 947
script = {
  testcase;
948
  name = grub_script_final_semicolon;
949
  common = tests/grub_script_final_semicolon.in;
950 951
};

BVK Chaitanya's avatar
BVK Chaitanya committed
952 953
script = {
  testcase;
954
  name = grub_script_dollar;
955
  common = tests/grub_script_dollar.in;
956 957
};

BVK Chaitanya's avatar
BVK Chaitanya committed
958 959
script = {
  testcase;
960
  name = grub_script_comments;
961
  common = tests/grub_script_comments.in;
962 963
};

BVK Chaitanya's avatar
BVK Chaitanya committed
964 965 966
script = {
  testcase;
  name = grub_script_functions;
967
  common = tests/grub_script_functions.in;
BVK Chaitanya's avatar
BVK Chaitanya committed
968 969 970 971 972
};

script = {
  testcase;
  name = grub_script_break;
973
  common = tests/grub_script_break.in;
BVK Chaitanya's avatar
BVK Chaitanya committed
974 975 976 977 978
};

script = {
  testcase;
  name = grub_script_continue;
979
  common = tests/grub_script_continue.in;
BVK Chaitanya's avatar
BVK Chaitanya committed
980 981 982 983 984
};

script = {
  testcase;
  name = grub_script_shift;
985
  common = tests/grub_script_shift.in;
BVK Chaitanya's avatar
BVK Chaitanya committed
986 987
};

BVK Chaitanya's avatar
BVK Chaitanya committed
988 989 990 991 992 993
script = {
  testcase;
  name = grub_script_blockarg;
  common = tests/grub_script_blockarg.in;
};

BVK Chaitanya's avatar
BVK Chaitanya committed
994 995 996 997 998 999
script = {
  testcase;
  name = grub_script_setparams;
  common = tests/grub_script_setparams.in;
};

1000 1001 1002 1003 1004 1005
script = {
  testcase;
  name = grub_script_return;
  common = tests/grub_script_return.in;
};

BVK Chaitanya's avatar
BVK Chaitanya committed
1006 1007 1008 1009 1010 1011
script = {
  testcase;
  name = grub_cmd_regexp;
  common = tests/grub_cmd_regexp.in;
};

1012 1013 1014 1015 1016 1017
script = {
  testcase;
  name = grub_cmd_date;
  common = tests/grub_cmd_date.in;
};

1018 1019 1020 1021 1022 1023 1024 1025 1026 1027 1028 1029
script = {
  testcase;
  name = grub_cmd_set_date;
  common = tests/grub_cmd_set_date.in;
};

script = {
  testcase;
  name = grub_cmd_sleep;
  common = tests/grub_cmd_sleep.in;
};

BVK Chaitanya's avatar
BVK Chaitanya committed
1030 1031 1032 1033 1034 1035
script = {
  testcase;
  name = grub_script_expansion;
  common = tests/grub_script_expansion.in;
};

BVK Chaitanya's avatar
BVK Chaitanya committed
1036 1037 1038 1039 1040 1041
script = {
  testcase;
  name = grub_script_not;
  common = tests/grub_script_not.in;
};

1042 1043 1044 1045 1046 1047
script = {
  testcase;
  name = grub_script_no_commands;
  common = tests/grub_script_no_commands.in;
};

1048 1049 1050 1051 1052 1053
script = {
  testcase;
  name = partmap_test;
  common = tests/partmap_test.in;
};

1054 1055 1056 1057 1058 1059 1060 1061 1062 1063 1064 1065 1066 1067 1068 1069 1070 1071 1072 1073 1074 1075 1076 1077 1078 1079 1080 1081 1082 1083
script = {
  testcase;
  name = hddboot_test;
  common = tests/hddboot_test.in;
};

script = {
  testcase;
  name = fddboot_test;
  common = tests/fddboot_test.in;
};

script = {
  testcase;
  name = cdboot_test;
  common = tests/cdboot_test.in;
};

script = {
  testcase;
  name = netboot_test;
  common = tests/netboot_test.in;
};

script = {
  testcase;
  name = pseries_test;
  common = tests/pseries_test.in;
};

1084 1085 1086 1087 1088 1089
script = {
  testcase;
  name = core_compress_test;
  common = tests/core_compress_test.in;
};

1090 1091 1092 1093 1094 1095 1096 1097 1098 1099 1100 1101 1102 1103 1104 1105 1106 1107
script = {
  testcase;
  name = xzcompress_test;
  common = tests/xzcompress_test.in;
};

script = {
  testcase;
  name = gzcompress_test;
  common = tests/gzcompress_test.in;
};

script = {
  testcase;
  name = lzocompress_test;
  common = tests/lzocompress_test.in;
};

BVK Chaitanya's avatar
BVK Chaitanya committed
1108 1109 1110 1111 1112 1113
script = {
  testcase;
  name = grub_cmd_echo;
  common = tests/grub_cmd_echo.in;
};

1114 1115 1116 1117 1118 1119
script = {
  testcase;
  name = help_test;
  common = tests/help_test.in;
};

1120 1121 1122 1123 1124 1125
script = {
  testcase;
  name = grub_script_gettext;
  common = tests/grub_script_gettext.in;
};

1126 1127 1128 1129 1130 1131
script = {
  testcase;
  name = grub_script_escape_comma;
  common = tests/grub_script_escape_comma.in;
};

1132 1133 1134 1135 1136 1137
script = {
  testcase;
  name = grub_script_strcmp;
  common = tests/grub_script_strcmp.in;
};

1138 1139 1140 1141 1142 1143
script = {
  testcase;
  name = test_sha512sum;
  common = tests/test_sha512sum.in;
};

1144 1145 1146 1147 1148 1149
script = {
  testcase;
  name = test_unset;
  common = tests/test_unset.in;
};

1150 1151 1152 1153 1154 1155
script = {
  testcase;
  name = grub_func_test;
  common = tests/grub_func_test.in;
};

1156 1157 1158 1159 1160 1161
script = {
  testcase;
  name = grub_cmd_tr;
  common = tests/grub_cmd_tr.in;
};

1162 1163 1164 1165 1166 1167
script = {
  testcase;
  name = file_filter_test;
  common = tests/file_filter_test.in;
};

1168 1169 1170 1171 1172 1173
script = {
  testcase;
  name = grub_cmd_test;
  common = tests/grub_cmd_test.in;
};

1174 1175 1176 1177 1178 1179
script = {
  testcase;
  name = syslinux_test;
  common = tests/syslinux_test.in;
};

BVK Chaitanya's avatar
BVK Chaitanya committed
1180 1181
program = {
  testcase;
1182
  name = example_unit_test;
1183 1184 1185 1186 1187
  common = tests/example_unit_test.c;
  common = tests/lib/unit_test.c;
  common = grub-core/kern/list.c;
  common = grub-core/kern/misc.c;
  common = grub-core/tests/lib/test.c;
1188
  ldadd = libgrubmods.a;
1189
  ldadd = libgrubgcry.a;
1190
  ldadd = libgrubkern.a;
1191
  ldadd = grub-core/gnulib/libgnu.a;
1192
  ldadd = '$(LIBDEVMAPPER) $(LIBZFS) $(LIBNVPAIR) $(LIBGEOM)';
1193
};
1194

1195 1196 1197 1198 1199 1200 1201 1202 1203 1204
program = {
  testcase;
  name = printf_test;
  common = tests/printf_unit_test.c;
  common = tests/lib/unit_test.c;
  common = grub-core/kern/list.c;
  common = grub-core/kern/misc.c;
  common = grub-core/tests/lib/test.c;
  ldadd = libgrubmods.a;
  ldadd = libgrubgcry.a;
1205
  ldadd = libgrubkern.a;
1206
  ldadd = grub-core/gnulib/libgnu.a;
1207
  ldadd = '$(LIBDEVMAPPER) $(LIBZFS) $(LIBNVPAIR) $(LIBGEOM)';
1208
};
1209

1210 1211 1212 1213 1214 1215 1216 1217 1218 1219 1220 1221 1222 1223 1224
program = {
  testcase;
  name = date_test;
  common = tests/date_unit_test.c;
  common = tests/lib/unit_test.c;
  common = grub-core/kern/list.c;
  common = grub-core/kern/misc.c;
  common = grub-core/tests/lib/test.c;
  ldadd = libgrubmods.a;
  ldadd = libgrubgcry.a;
  ldadd = libgrubkern.a;
  ldadd = grub-core/gnulib/libgnu.a;
  ldadd = '$(LIBDEVMAPPER) $(LIBZFS) $(LIBNVPAIR) $(LIBGEOM)';
};

1225 1226 1227 1228 1229 1230 1231 1232 1233 1234 1235 1236 1237 1238 1239 1240 1241
program = {
  testcase;
  name = priority_queue_unit_test;
  common = tests/priority_queue_unit_test.cc;
  common = tests/lib/unit_test.c;
  common = grub-core/kern/list.c;
  common = grub-core/kern/misc.c;
  common = grub-core/tests/lib/test.c;
  common = grub-core/lib/priority_queue.c;
  ldadd = libgrubmods.a;
  ldadd = libgrubgcry.a;
  ldadd = libgrubkern.a;
  ldadd = grub-core/gnulib/libgnu.a;
  ldadd = '$(LIBDEVMAPPER) $(LIBZFS) $(LIBNVPAIR) $(LIBGEOM)';
  condition = COND_HAVE_CXX;
};

1242 1243 1244 1245 1246 1247 1248 1249 1250 1251 1252 1253 1254 1255 1256
program = {
  testcase;
  name = cmp_test;
  common = tests/cmp_unit_test.c;
  common = tests/lib/unit_test.c;
  common = grub-core/kern/list.c;
  common = grub-core/kern/misc.c;
  common = grub-core/tests/lib/test.c;
  ldadd = libgrubmods.a;
  ldadd = libgrubgcry.a;
  ldadd = libgrubkern.a;
  ldadd = grub-core/gnulib/libgnu.a;
  ldadd = '$(LIBDEVMAPPER) $(LIBZFS) $(LIBNVPAIR) $(LIBGEOM)';
};

1257 1258 1259 1260 1261
program = {
  name = grub-menulst2cfg;
  mansection = 1;
  common = util/grub-menulst2cfg.c;
  common = grub-core/lib/legacy_parse.c;
1262
  common = grub-core/lib/i386/pc/vesa_modes_table.c;
1263
  common = grub-core/osdep/init.c;
1264

1265
  ldadd = libgrubmods.a;
1266
  ldadd = libgrubgcry.a;
1267
  ldadd = libgrubkern.a;
1268
  ldadd = grub-core/gnulib/libgnu.a;
1269
  ldadd = '$(LIBINTL) $(LIBDEVMAPPER) $(LIBZFS) $(LIBNVPAIR) $(LIBGEOM)';
1270
};
1271

1272 1273 1274 1275 1276 1277 1278 1279 1280 1281 1282 1283 1284 1285 1286 1287 1288 1289
program = {
  name = grub-syslinux2cfg;
  mansection = 1;
  common = util/grub-syslinux2cfg.c;
  common = grub-core/lib/syslinux_parse.c;
  common = grub-core/lib/getline.c;
  common = grub-core/osdep/init.c;
  common = grub-core/kern/emu/hostfs.c;
  common = grub-core/disk/host.c;
  common = grub-core/kern/emu/argp_common.c;

  ldadd = libgrubmods.a;
  ldadd = libgrubgcry.a;
  ldadd = libgrubkern.a;
  ldadd = grub-core/gnulib/libgnu.a;
  ldadd = '$(LIBINTL) $(LIBDEVMAPPER) $(LIBZFS) $(LIBNVPAIR) $(LIBGEOM)';
};

1290 1291 1292 1293 1294
program = {
  name = grub-glue-efi;
  mansection = 1;

  common = util/grub-glue-efi.c;
1295
  common = util/glue-efi.c;
1296
  common = grub-core/kern/emu/argp_common.c;
1297
  common = grub-core/osdep/init.c;
1298 1299 1300 1301 1302 1303 1304 1305

  ldadd = libgrubmods.a;
  ldadd = libgrubgcry.a;
  ldadd = libgrubkern.a;
  ldadd = grub-core/gnulib/libgnu.a;
  ldadd = '$(LIBINTL) $(LIBDEVMAPPER) $(LIBZFS) $(LIBNVPAIR) $(LIBGEOM)';
};

1306 1307 1308 1309 1310
program = {
  name = grub-render-label;
  mansection = 1;

  common = util/grub-render-label.c;
1311
  common = util/render-label.c;
1312 1313 1314
  common = grub-core/kern/emu/argp_common.c;
  common = grub-core/kern/emu/hostfs.c;
  common = grub-core/disk/host.c;
1315
  common = grub-core/osdep/init.c;
1316 1317 1318 1319 1320 1321 1322

  ldadd = libgrubmods.a;
  ldadd = libgrubgcry.a;
  ldadd = libgrubkern.a;
  ldadd = grub-core/gnulib/libgnu.a;
  ldadd = '$(LIBINTL) $(LIBDEVMAPPER) $(LIBZFS) $(LIBNVPAIR) $(LIBGEOM)';
};
1323 1324 1325 1326 1327 1328 1329 1330 1331 1332 1333 1334 1335 1336 1337 1338 1339 1340 1341 1342 1343 1344 1345 1346 1347 1348 1349 1350 1351

program = {
  name = grub-file;
  mansection = 1;

  common = util/grub-file.c;
  common = util/render-label.c;
  common = grub-core/commands/file.c;
  common = grub-core/commands/file32.c;
  common = grub-core/commands/file64.c;
  common = grub-core/loader/i386/xen_file.c;
  common = grub-core/loader/i386/xen_file32.c;
  common = grub-core/loader/i386/xen_file64.c;
  common = grub-core/io/offset.c;
  common = grub-core/kern/elf.c;
  common = grub-core/loader/lzss.c;
  common = grub-core/loader/macho.c;
  common = grub-core/loader/macho32.c;
  common = grub-core/loader/macho64.c;
  common = grub-core/kern/emu/hostfs.c;
  common = grub-core/disk/host.c;
  common = grub-core/osdep/init.c;

  ldadd = libgrubmods.a;
  ldadd = libgrubgcry.a;
  ldadd = libgrubkern.a;
  ldadd = grub-core/gnulib/libgnu.a;
  ldadd = '$(LIBINTL) $(LIBDEVMAPPER) $(LIBZFS) $(LIBNVPAIR) $(LIBGEOM)';
};