~smartboyhw/wubi/bug-1080090-new

« back to all changes in this revision

Viewing changes to src/grubutil/fbinst/.svn/text-base/Makefile.svn-base

  • Committer: Howard Chan
  • Date: 2012-11-20 10:16:05 UTC
  • Revision ID: smartboyhw@gmail.com-20121120101605-qfmjfsdynpzg9an9
Added images

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
#
2
 
#  GRUB Utilities --  Utilities for GRUB Legacy, GRUB2 and GRUB for DOS
3
 
#  Copyright (C) 2007 Bean (bean123ch@gmail.com)
4
 
#
5
 
#  This program is free software: you can redistribute it and/or modify
6
 
#  it under the terms of the GNU Affero General Public License as
7
 
#  published by the Free Software Foundation, either version 3 of the
8
 
#  License, or (at your option) any later version.
9
 
#
10
 
#  This program is distributed in the hope that it will be useful,
11
 
#  but WITHOUT ANY WARRANTY; without even the implied warranty of
12
 
#  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
13
 
#  GNU Affero General Public License for more details.
14
 
#
15
 
#  You should have received a copy of the GNU Affero General Public License
16
 
#  along with this program.  If not, see <http://www.gnu.org/licenses/>.
17
 
#
18
 
 
19
 
ifeq ($(SRCDIR),)
20
 
SRCDIR := $(dir $(firstword $(MAKEFILE_LIST)))
21
 
endif
22
 
 
23
 
PACKAGE = fbinst
24
 
 
25
 
extra_SRCS = Makefile version fbmbr.S fbinst.h
26
 
 
27
 
all_DIST =
28
 
 
29
 
cmn_SRCS = common.mk ldscript keytab.c keytab.h bin2h.c bin2h.pl ver2h.c ver2h.pl utils.c utils.h xdio.c xdio.h xd16.asm
30
 
 
31
 
all_SRCS := fbinst.c $(extra_SRCS)
32
 
all_OBJS = fbinst.o
33
 
all_EXES = fbinst$(EXEEXT)
34
 
 
35
 
extra_CLEAN = fb.mbr version.h fb_mbr.h
36
 
 
37
 
-include common.mk $(SRCDIR)../common/common.mk
38
 
 
39
 
fbinst$(EXEEXT): fbinst.o xdio.o keytab.o
40
 
        $(CC) $(CFLAGS) -o$@ $^
41
 
 
42
 
fbinst.o: version.h fbinst.h fb_mbr_rel.h fb_mbr_dbg.h
43
 
 
44
 
fb_rel.mbr: fbmbr.S version.h fbinst.h
45
 
        $(CC) -nostdlib -I. -I$(SRCDIR) -Wl,-N -Wl,-T -Wl,$(CMNDIR)ldscript -o fb$(EXEEXT) $<
46
 
        $(OC) -O binary fb$(EXEEXT) $@
47
 
        rm fb$(EXEEXT)
48
 
 
49
 
fb_mbr_rel.h: fb_rel.mbr $(BIN2H_DEPS)
50
 
        $(BIN2H_EXEC) $< $@ fb_mbr_rel
51
 
 
52
 
fb_dbg.mbr: fbmbr.S version.h fbinst.h
53
 
        $(CC) -nostdlib -I. -I$(SRCDIR) -DDEBUG -DDEBUG_INT13 -Wl,-N -Wl,-T -Wl,$(CMNDIR)ldscript -o fb$(EXEEXT) $<
54
 
        $(OC) -O binary fb$(EXEEXT) $@
55
 
        rm fb$(EXEEXT)
56
 
 
57
 
fb_mbr_dbg.h: fb_dbg.mbr $(BIN2H_DEPS)
58
 
        $(BIN2H_EXEC) $< $@ fb_mbr_dbg