Version:
~
[ 2.3.5 ] ~
[ 2.3 ] ~
1 # Copyright (C) 2001 MandrakeSoft S.A.
2 #
3 # MandrakeSoft S.A.
4 # 43, rue d'Aboukir
5 # 75002 Paris - France
6 # http://www.linux-mandrake.com/
7 # http://www.mandrakesoft.com/
8 #
9 # This library is free software; you can redistribute it and/or
10 # modify it under the terms of the GNU Lesser General Public
11 # License as published by the Free Software Foundation; either
12 # version 2 of the License, or (at your option) any later version.
13 #
14 # This library is distributed in the hope that it will be useful,
15 # but WITHOUT ANY WARRANTY; without even the implied warranty of
16 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
17 # Lesser General Public License for more details.
18 #
19 # You should have received a copy of the GNU Lesser General Public
20 # License along with this library; if not, write to the Free Software
21 # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
22
23 # Makefile for the BIOS component of bochs
24
25
26 @SUFFIX_LINE@
27
28 srcdir = @srcdir@
29 VPATH = @srcdir@
30
31 SHELL = /bin/sh
32
33 @SET_MAKE@
34
35 CXX = @CXX@
36 CXXFLAGS = @CXXFLAGS@
37
38 LDFLAGS = @LDFLAGS@
39 LIBS = @LIBS@
40 RANLIB = @RANLIB@
41
42 BCC = bcc
43 GCC = gcc
44 AS86 = as86
45
46 BX_INCDIRS = -I.. -I$(srcdir)/.. -I../iodev -I$(srcdir)/../iodev
47 LOCAL_CXXFLAGS =
48
49 BUILDDATE = `date '+%m/%d/%y'`
50 BIOS_BUILD_DATE = "-DBIOS_BUILD_DATE=\"$(BUILDDATE)\""
51 #
52 # -------- end configurable options --------------------------
53 #
54
55
56 .@CPP_SUFFIX@.o:
57 $(CXX) -c $(BX_INCDIRS) $(CXXFLAGS) $(LOCAL_CXXFLAGS) @CXXFP@$< @OFP@$@
58
59
60 bios: biossums BIOS-bochs-latest BIOS-bochs-legacy
61
62 clean:
63 @RMCOMMAND@ *.o *.a *.s _rombios*_.c rombios*.txt rombios*.sym
64 @RMCOMMAND@ usage biossums rombios16.bin
65 @RMCOMMAND@ rombios32.bin rombios32.out
66
67 dist-clean: clean
68 @RMCOMMAND@ Makefile
69
70 bios-clean:
71 @RMCOMMAND@ BIOS-bochs-*
72
73 BIOS-bochs-legacy: rombios.c apmbios.S biossums rombios.h
74 $(GCC) $(BIOS_BUILD_DATE) -DLEGACY -E -P $< > _rombiosl_.c
75 $(BCC) -o rombiosl.s -C-c -D__i86__ -0 -S _rombiosl_.c
76 sed -e 's/^\.text//' -e 's/^\.data//' rombiosl.s > _rombiosl_.s
77 $(AS86) _rombiosl_.s -b tmp.bin -u- -w- -g -0 -j -O -l rombiosl.txt
78 -perl ${srcdir}/makesym.perl < rombiosl.txt > rombiosl.sym
79 mv tmp.bin $@
80 ./biossums $@
81 @RMCOMMAND@ _rombiosl_.s
82
83
84 rombios16.bin: rombios.c apmbios.S biossums rombios.h
85 $(GCC) $(BIOS_BUILD_DATE) -E -P $< > _rombios_.c
86 $(BCC) -o rombios.s -C-c -D__i86__ -0 -S _rombios_.c
87 sed -e 's/^\.text//' -e 's/^\.data//' rombios.s > _rombios_.s
88 $(AS86) _rombios_.s -b tmp.bin -u- -w- -g -0 -j -O -l rombios.txt
89 -perl ${srcdir}/makesym.perl < rombios.txt > rombios.sym
90 mv tmp.bin rombios16.bin
91 ./biossums rombios16.bin
92 @RMCOMMAND@ _rombios_.s
93
94
95 rombios32.bin: rombios32.out rombios.h
96 objcopy -O binary $< $@
97 ./biossums -pad $@
98
99 rombios32.out: rombios32start.o rombios32.o rombios32.ld
100 ld -o $@ -T rombios32.ld rombios32start.o rombios32.o
101
102 rombios32.o: rombios32.c acpi-dsdt.hex
103 $(GCC) -O2 -Wall -c -o $@ $<
104
105 ifeq ("1", "0")
106 acpi-dsdt.hex: acpi-dsdt.dsl
107 iasl -tc -p $@ $<
108 endif
109
110 rombios32start.o: rombios32start.S
111 $(GCC) -c -o $@ $<
112
113 BIOS-bochs-latest: rombios16.bin rombios32.bin
114 cat rombios32.bin rombios16.bin > $@
115
116 biossums: biossums.c
117 $(GCC) -o biossums biossums.c
This page was automatically generated by the
LXR engine.
Visit the LXR main site for more
information.