~ilya-yanok/ubuntu/precise/grub2/fix-for-948716

« back to all changes in this revision

Viewing changes to conf/i386-pc.rmk

  • Committer: Bazaar Package Importer
  • Author(s): Otavio Salvador
  • Date: 2006-01-05 15:20:40 UTC
  • mto: (17.3.1 squeeze) (1.9.1 upstream)
  • mto: This revision was merged to the branch mainline in revision 4.
  • Revision ID: james.westby@ubuntu.com-20060105152040-b72i5pq1a82z22yi
Tags: upstream-1.92
ImportĀ upstreamĀ versionĀ 1.92

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
# -*- makefile -*-
 
2
 
 
3
COMMON_ASFLAGS = -nostdinc -fno-builtin
 
4
COMMON_CFLAGS = -fno-builtin -mrtd -mregparm=3 -m32
 
5
COMMON_LDFLAGS = -melf_i386
 
6
 
 
7
# Images.
 
8
pkgdata_IMAGES = boot.img diskboot.img kernel.img pxeboot.img
 
9
 
 
10
# For boot.img.
 
11
boot_img_SOURCES = boot/i386/pc/boot.S
 
12
boot_img_ASFLAGS = $(COMMON_ASFLAGS)
 
13
boot_img_LDFLAGS = -nostdlib -Wl,-N,-Ttext,7C00
 
14
 
 
15
# For pxeboot.img
 
16
pxeboot_img_SOURCES = boot/i386/pc/pxeboot.S
 
17
pxeboot_img_ASFLAGS = $(COMMON_ASFLAGS)
 
18
pxeboot_img_LDFLAGS = -nostdlib -Wl,-N,-Ttext,7C00
 
19
 
 
20
# For diskboot.img.
 
21
diskboot_img_SOURCES = boot/i386/pc/diskboot.S
 
22
diskboot_img_ASFLAGS = $(COMMON_ASFLAGS)
 
23
diskboot_img_LDFLAGS = -nostdlib -Wl,-N,-Ttext,8000
 
24
 
 
25
# For kernel.img.
 
26
kernel_img_SOURCES = kern/i386/pc/startup.S kern/main.c kern/device.c \
 
27
        kern/disk.c kern/dl.c kern/file.c kern/fs.c kern/err.c \
 
28
        kern/misc.c kern/mm.c kern/loader.c kern/rescue.c kern/term.c \
 
29
        kern/i386/dl.c kern/i386/pc/init.c kern/parser.c kern/partition.c \
 
30
        kern/env.c disk/i386/pc/biosdisk.c \
 
31
        term/i386/pc/console.c \
 
32
        symlist.c
 
33
kernel_img_HEADERS = arg.h boot.h device.h disk.h dl.h elf.h env.h err.h \
 
34
        file.h fs.h kernel.h loader.h misc.h mm.h net.h parser.h partition.h \
 
35
        pc_partition.h rescue.h symbol.h term.h types.h \
 
36
        machine/biosdisk.h machine/boot.h machine/console.h machine/init.h \
 
37
        machine/memory.h machine/loader.h machine/time.h machine/vga.h \
 
38
        machine/vbe.h
 
39
kernel_img_CFLAGS = $(COMMON_CFLAGS)
 
40
kernel_img_ASFLAGS = $(COMMON_ASFLAGS)
 
41
kernel_img_LDFLAGS = -nostdlib -Wl,-N,-Ttext,8200 $(COMMON_CFLAGS)
 
42
 
 
43
MOSTLYCLEANFILES += symlist.c kernel_syms.lst
 
44
DEFSYMFILES += kernel_syms.lst
 
45
 
 
46
symlist.c: $(addprefix include/grub/,$(kernel_img_HEADERS)) gensymlist.sh
 
47
        sh $(srcdir)/gensymlist.sh $(filter %.h,$^) > $@
 
48
 
 
49
kernel_syms.lst: $(addprefix include/grub/,$(kernel_img_HEADERS)) genkernsyms.sh
 
50
        sh $(srcdir)/genkernsyms.sh $(filter %h,$^) > $@
 
51
 
 
52
# Utilities.
 
53
bin_UTILITIES = grub-mkimage
 
54
sbin_UTILITIES = grub-setup grub-emu grub-mkdevicemap grub-probefs
 
55
noinst_UTILITIES = genmoddep
 
56
 
 
57
# For grub-mkimage.
 
58
grub_mkimage_SOURCES = util/i386/pc/grub-mkimage.c util/misc.c \
 
59
        util/resolve.c
 
60
grub_mkimage_LDFLAGS = $(LIBLZO)
 
61
 
 
62
# For grub-setup.
 
63
grub_setup_SOURCES = util/i386/pc/grub-setup.c util/i386/pc/biosdisk.c  \
 
64
        util/misc.c util/i386/pc/getroot.c kern/device.c kern/disk.c    \
 
65
        kern/err.c kern/misc.c fs/fat.c fs/ext2.c fs/xfs.c fs/affs.c    \
 
66
        fs/sfs.c kern/parser.c kern/partition.c partmap/pc.c            \
 
67
        fs/ufs.c fs/minix.c fs/hfs.c fs/jfs.c fs/hfsplus.c kern/file.c  \
 
68
        kern/fs.c kern/env.c fs/fshelp.c
 
69
 
 
70
# For grub-mkdevicemap.
 
71
grub_mkdevicemap_SOURCES = util/i386/pc/grub-mkdevicemap.c util/misc.c
 
72
 
 
73
# For grub-probefs.
 
74
grub_probefs_SOURCES = util/i386/pc/grub-probefs.c      \
 
75
        util/i386/pc/biosdisk.c util/misc.c util/i386/pc/getroot.c      \
 
76
        kern/device.c kern/disk.c kern/err.c kern/misc.c fs/fat.c       \
 
77
        fs/ext2.c kern/parser.c kern/partition.c partmap/pc.c fs/ufs.c  \
 
78
        fs/minix.c fs/hfs.c fs/jfs.c kern/fs.c kern/env.c fs/fshelp.c   \
 
79
        fs/xfs.c fs/affs.c fs/sfs.c fs/hfsplus.c
 
80
 
 
81
# For grub-emu.
 
82
grub_emu_SOURCES = commands/boot.c commands/cat.c commands/cmp.c                \
 
83
        commands/configfile.c commands/default.c commands/help.c        \
 
84
        commands/terminal.c commands/ls.c commands/test.c               \
 
85
        commands/search.c commands/timeout.c                            \
 
86
        commands/i386/pc/halt.c commands/i386/pc/reboot.c               \
 
87
        disk/loopback.c                                                 \
 
88
        fs/affs.c fs/ext2.c fs/fat.c fs/fshelp.c fs/hfs.c fs/iso9660.c  \
 
89
        fs/jfs.c fs/minix.c fs/sfs.c fs/ufs.c fs/xfs.c fs/hfsplus.c     \
 
90
        io/gzio.c                                                       \
 
91
        kern/device.c kern/disk.c kern/dl.c kern/env.c kern/err.c       \
 
92
        normal/execute.c kern/file.c kern/fs.c normal/lexer.c           \
 
93
        kern/loader.c kern/main.c kern/misc.c kern/parser.c             \
 
94
        grub_script.tab.c kern/partition.c kern/rescue.c kern/term.c    \
 
95
        normal/arg.c normal/cmdline.c normal/command.c normal/function.c\
 
96
        normal/completion.c normal/context.c normal/main.c              \
 
97
        normal/menu.c normal/menu_entry.c normal/misc.c normal/script.c \
 
98
        partmap/amiga.c partmap/apple.c partmap/pc.c partmap/sun.c      \
 
99
        partmap/acorn.c partmap/gpt.c                                   \
 
100
        util/console.c util/grub-emu.c util/misc.c                      \
 
101
        util/i386/pc/biosdisk.c util/i386/pc/getroot.c                  \
 
102
        util/i386/pc/misc.c grub_emu_init.c
 
103
 
 
104
grub_emu_LDFLAGS = $(LIBCURSES)
 
105
 
 
106
# For genmoddep.
 
107
genmoddep_SOURCES = util/genmoddep.c
 
108
 
 
109
# Scripts.
 
110
sbin_SCRIPTS = grub-install
 
111
 
 
112
# For grub-install.
 
113
grub_install_SOURCES = util/i386/pc/grub-install.in
 
114
 
 
115
# Modules.
 
116
pkgdata_MODULES = _chain.mod _linux.mod linux.mod normal.mod vga.mod    \
 
117
        _multiboot.mod chain.mod multiboot.mod reboot.mod halt.mod      \
 
118
        vbe.mod vesafb.mod vbetest.mod vbeinfo.mod play.mod
 
119
 
 
120
# For _chain.mod.
 
121
_chain_mod_SOURCES = loader/i386/pc/chainloader.c
 
122
_chain_mod_CFLAGS = $(COMMON_CFLAGS)
 
123
_chain_mod_LDFLAGS = $(COMMON_LDFLAGS)
 
124
 
 
125
# For chain.mod.
 
126
chain_mod_SOURCES = loader/i386/pc/chainloader_normal.c
 
127
chain_mod_CFLAGS = $(COMMON_CFLAGS)
 
128
chain_mod_LDFLAGS = $(COMMON_LDFLAGS)
 
129
 
 
130
# For _linux.mod.
 
131
_linux_mod_SOURCES = loader/i386/pc/linux.c
 
132
_linux_mod_CFLAGS = $(COMMON_CFLAGS)
 
133
_linux_mod_LDFLAGS = $(COMMON_LDFLAGS)
 
134
 
 
135
# For linux.mod.
 
136
linux_mod_SOURCES = loader/i386/pc/linux_normal.c
 
137
linux_mod_CFLAGS = $(COMMON_CFLAGS)
 
138
linux_mod_LDFLAGS = $(COMMON_LDFLAGS)
 
139
 
 
140
# For normal.mod.
 
141
normal_mod_SOURCES = normal/arg.c normal/cmdline.c normal/command.c     \
 
142
        normal/completion.c normal/context.c normal/execute.c           \
 
143
        normal/function.c normal/lexer.c normal/main.c normal/menu.c    \
 
144
        normal/menu_entry.c normal/misc.c grub_script.tab.c             \
 
145
        normal/script.c normal/i386/setjmp.S
 
146
normal_mod_CFLAGS = $(COMMON_CFLAGS)
 
147
normal_mod_ASFLAGS = $(COMMON_ASFLAGS) -m32
 
148
normal_mod_LDFLAGS = $(COMMON_LDFLAGS)
 
149
 
 
150
# For reboot.mod.
 
151
reboot_mod_SOURCES = commands/i386/pc/reboot.c
 
152
reboot_mod_CFLAGS = $(COMMON_CFLAGS)
 
153
reboot_mod_LDFLAGS = $(COMMON_LDFLAGS)
 
154
 
 
155
# For halt.mod.
 
156
halt_mod_SOURCES = commands/i386/pc/halt.c
 
157
halt_mod_CFLAGS = $(COMMON_CFLAGS)
 
158
halt_mod_LDFLAGS = $(COMMON_LDFLAGS)
 
159
 
 
160
# For vga.mod.
 
161
vga_mod_SOURCES = term/i386/pc/vga.c
 
162
vga_mod_CFLAGS = $(COMMON_CFLAGS)
 
163
vga_mod_LDFLAGS = $(COMMON_LDFLAGS)
 
164
 
 
165
# For serial.mod.
 
166
serial_mod_SOURCES = term/i386/pc/serial.c
 
167
serial_mod_CFLAGS = $(COMMON_CFLAGS)
 
168
serial_mod_LDFLAGS = $(COMMON_LDFLAGS)
 
169
 
 
170
# For _multiboot.mod.
 
171
_multiboot_mod_SOURCES = loader/i386/pc/multiboot.c
 
172
_multiboot_mod_CFLAGS = $(COMMON_CFLAGS)
 
173
_multiboot_mod_LDFLAGS = $(COMMON_LDFLAGS)
 
174
 
 
175
# For multiboot.mod.
 
176
multiboot_mod_SOURCES = loader/i386/pc/multiboot_normal.c
 
177
multiboot_mod_CFLAGS = $(COMMON_CFLAGS)
 
178
multiboot_mod_LDFLAGS = $(COMMON_LDFLAGS)
 
179
 
 
180
# For vbe.mod.
 
181
vbe_mod_SOURCES = video/i386/pc/vbe.c
 
182
vbe_mod_CFLAGS = $(COMMON_CFLAGS)
 
183
vbe_mod_LDFLAGS = $(COMMON_LDFLAGS)
 
184
 
 
185
# For vesafb.mod.
 
186
vesafb_mod_SOURCES = term/i386/pc/vesafb.c
 
187
vesafb_mod_CFLAGS = $(COMMON_CFLAGS)
 
188
vesafb_mod_LDFLAGS = $(COMMON_LDFLAGS)
 
189
 
 
190
# For vbeinfo.mod.
 
191
vbeinfo_mod_SOURCES = commands/i386/pc/vbeinfo.c
 
192
vbeinfo_mod_CFLAGS = $(COMMON_CFLAGS)
 
193
vbeinfo_mod_LDFLAGS = $(COMMON_LDFLAGS)
 
194
 
 
195
# For vbetest.mod.
 
196
vbetest_mod_SOURCES = commands/i386/pc/vbetest.c
 
197
vbetest_mod_CFLAGS = $(COMMON_CFLAGS)
 
198
vbetest_mod_LDFLAGS = $(COMMON_LDFLAGS)
 
199
 
 
200
# For play.mod.
 
201
play_mod_SOURCES = commands/i386/pc/play.c
 
202
play_mod_CFLAGS = $(COMMON_CFLAGS)
 
203
play_mod_LDFLAGS = $(COMMON_LDFLAGS)
 
204
 
 
205
include $(srcdir)/conf/common.mk