1 # Copyright (C) 2001 MandrakeSoft S.A.
6 # http://www.linux-mandrake.com/
7 # http://www.mandrakesoft.com/
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.
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.
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
23 # Makefile for the BIOS component of bochs
46 BX_INCDIRS
= -I..
-I
$(srcdir)/..
-I..
/iodev
-I
$(srcdir)/..
/iodev
49 BUILDDATE
= `date '+%m/%d/%y'`
50 BIOS_BUILD_DATE
= "-DBIOS_BUILD_DATE=\"$(BUILDDATE)\""
52 # -------- end configurable options --------------------------
57 $(CXX
) -c
$(BX_INCDIRS
) $(CXXFLAGS
) $(LOCAL_CXXFLAGS
) @CXXFP@
$< @OFP@
$@
60 bios
: biossums BIOS-bochs-latest BIOS-bochs-2-processors BIOS-bochs-4-processors BIOS-bochs-8-processors
63 @RMCOMMAND@
*.o
*.a
*.s rombios.bin _rombios
*_.c
64 @RMCOMMAND@ as86-sym.txt ld86-sym.txt
65 @RMCOMMAND@ rombios
*.txt rombios
*.sym usage biossums
71 @RMCOMMAND@ BIOS-bochs-
*
73 BIOS-bochs-latest
: rombios.c biossums
74 $(GCC
) -DBX_SMP_PROCESSORS
=1 $(BIOS_BUILD_DATE
) -E
-P
$< > _rombios_.c
75 $(BCC
) -o rombios.s
-C-c
-D__i86__
-0 -S _rombios_.c
76 sed
-e
's/^\.text//' -e
's/^\.data//' rombios.s
> _rombios_.s
77 $(AS86
) _rombios_.s
-b tmp.bin
-u-
-w-
-g
-0 -j
-O
-l rombios.txt
78 -perl
${srcdir}/makesym.perl
< rombios.txt
> rombios.sym
79 mv tmp.bin BIOS-bochs-latest
80 .
/biossums BIOS-bochs-latest
83 BIOS-bochs-2-processors
: rombios.c biossums
84 $(GCC
) -DBX_SMP_PROCESSORS
=2 $(BIOS_BUILD_DATE
) -E
-P
$< > _rombios2_.c
85 $(BCC
) -o rombios2.s
-C-c
-D__i86__
-0 -S _rombios2_.c
86 sed
-e
's/^\.text//' -e
's/^\.data//' rombios2.s
> _rombios2_.s
87 $(AS86
) _rombios2_.s
-b tmp2.bin
-u-
-w-
-g
-0 -j
-O
-l rombios2.txt
88 -perl
${srcdir}/makesym.perl
< rombios2.txt
> rombios2.sym
89 mv tmp2.bin BIOS-bochs-2-processors
90 .
/biossums BIOS-bochs-2-processors
93 BIOS-bochs-4-processors
: rombios.c biossums
94 $(GCC
) -DBX_SMP_PROCESSORS
=4 $(BIOS_BUILD_DATE
) -E
-P
$< > _rombios4_.c
95 $(BCC
) -o rombios4.s
-C-c
-D__i86__
-0 -S _rombios4_.c
96 sed
-e
's/^\.text//' -e
's/^\.data//' rombios4.s
> _rombios4_.s
97 $(AS86
) _rombios4_.s
-b tmp4.bin
-u-
-w-
-g
-0 -j
-O
-l rombios4.txt
98 -perl
${srcdir}/makesym.perl
< rombios4.txt
> rombios4.sym
99 mv tmp4.bin BIOS-bochs-4-processors
100 .
/biossums BIOS-bochs-4-processors
103 BIOS-bochs-8-processors
: rombios.c biossums
104 $(GCC
) -DBX_SMP_PROCESSORS
=8 $(BIOS_BUILD_DATE
) -E
-P
$< > _rombios8_.c
105 $(BCC
) -o rombios8.s
-C-c
-D__i86__
-0 -S _rombios8_.c
106 sed
-e
's/^\.text//' -e
's/^\.data//' rombios8.s
> _rombios8_.s
107 $(AS86
) _rombios8_.s
-b tmp8.bin
-u-
-w-
-g
-0 -j
-O
-l rombios8.txt
108 -perl
${srcdir}/makesym.perl
< rombios8.txt
> rombios8.sym
109 mv tmp8.bin BIOS-bochs-8-processors
110 .
/biossums BIOS-bochs-8-processors
114 $(GCC
) -o biossums biossums.c