- boot sequence with up to 3 boot devices inplemented. The sequence is stored
[gplbios.git] / Makefile.in
blob1ad9b512ef7cd1481ecb69a8b4d10e737f608155
1 # Copyright (C) 2001 MandrakeSoft S.A.
3 # MandrakeSoft S.A.
4 # 43, rue d'Aboukir
5 # 75002 Paris - France
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
26 @SUFFIX_LINE@
28 srcdir = @srcdir@
29 VPATH = @srcdir@
31 SHELL = /bin/sh
33 @SET_MAKE@
35 CXX = @CXX@
36 CXXFLAGS = @CXXFLAGS@
38 LDFLAGS = @LDFLAGS@
39 LIBS = @LIBS@
40 RANLIB = @RANLIB@
42 BX_INCDIRS = -I.. -I$(srcdir)/.. -I../iodev -I$(srcdir)/../iodev
43 LOCAL_CXXFLAGS =
46 # -------- end configurable options --------------------------
50 .@CPP_SUFFIX@.o:
51 $(CXX) -c $(BX_INCDIRS) $(CXXFLAGS) $(LOCAL_CXXFLAGS) @CXXFP@$< @OFP@$@
54 bios: biossums BIOS-bochs-latest BIOS-bochs-2-processors BIOS-bochs-4-processors BIOS-bochs-8-processors
56 clean:
57 @RMCOMMAND@ *.o *.a *.s rombios.bin _rombios*_.c
58 @RMCOMMAND@ as86-sym.txt ld86-sym.txt
59 @RMCOMMAND@ rombios*.txt rombios*.sym usage biossums
61 dist-clean: clean
62 @RMCOMMAND@ Makefile
64 bios-clean:
65 @RMCOMMAND@ BIOS-bochs-*
67 BIOS-bochs-latest: rombios.c biossums
68 gcc -DBX_SMP_PROCESSORS=1 -E -P $< > _rombios_.c
69 bcc -o rombios.s -C-c -D__i86__ -0 -S _rombios_.c
70 sed -e 's/^\.text//' -e 's/^\.data//' rombios.s > _rombios_.s
71 as86 _rombios_.s -b tmp.bin -u- -w- -g -0 -j -O -l rombios.txt
72 -perl ${srcdir}/makesym.perl < rombios.txt > rombios.sym
73 mv tmp.bin BIOS-bochs-latest
74 ./biossums BIOS-bochs-latest
75 rm -f _rombios_.s
77 BIOS-bochs-2-processors: rombios.c biossums
78 gcc -DBX_SMP_PROCESSORS=2 -E -P $< > _rombios2_.c
79 bcc -o rombios2.s -C-c -D__i86__ -0 -S _rombios2_.c
80 sed -e 's/^\.text//' -e 's/^\.data//' rombios2.s > _rombios2_.s
81 as86 _rombios2_.s -b tmp2.bin -u- -w- -g -0 -j -O -l rombios2.txt
82 -perl ${srcdir}/makesym.perl < rombios2.txt > rombios2.sym
83 mv tmp2.bin BIOS-bochs-2-processors
84 ./biossums BIOS-bochs-2-processors
85 rm -f _rombios2_.s
87 BIOS-bochs-4-processors: rombios.c biossums
88 gcc -DBX_SMP_PROCESSORS=4 -E -P $< > _rombios4_.c
89 bcc -o rombios4.s -C-c -D__i86__ -0 -S _rombios4_.c
90 sed -e 's/^\.text//' -e 's/^\.data//' rombios4.s > _rombios4_.s
91 as86 _rombios4_.s -b tmp4.bin -u- -w- -g -0 -j -O -l rombios4.txt
92 -perl ${srcdir}/makesym.perl < rombios4.txt > rombios4.sym
93 mv tmp4.bin BIOS-bochs-4-processors
94 ./biossums BIOS-bochs-4-processors
95 rm -f _rombios4_.s
97 BIOS-bochs-8-processors: rombios.c biossums
98 gcc -DBX_SMP_PROCESSORS=8 -E -P $< > _rombios8_.c
99 bcc -o rombios8.s -C-c -D__i86__ -0 -S _rombios8_.c
100 sed -e 's/^\.text//' -e 's/^\.data//' rombios8.s > _rombios8_.s
101 as86 _rombios8_.s -b tmp8.bin -u- -w- -g -0 -j -O -l rombios8.txt
102 -perl ${srcdir}/makesym.perl < rombios8.txt > rombios8.sym
103 mv tmp8.bin BIOS-bochs-8-processors
104 ./biossums BIOS-bochs-8-processors
105 rm -f _rombios8_.s
107 biossums: biossums.c
108 gcc -o biossums biossums.c