Home | History | Annotate | Download | only in qemu-pc-bios
      1 # Copyright (C) 2011 The Android Open Source Project
      2 #
      3 # Licensed under the Apache License, Version 2.0 (the "License");
      4 # you may not use this file except in compliance with the License.
      5 # You may obtain a copy of the License at
      6 #
      7 #      http://www.apache.org/licenses/LICENSE-2.0
      8 #
      9 # Unless required by applicable law or agreed to in writing, software
     10 # distributed under the License is distributed on an "AS IS" BASIS,
     11 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
     12 # See the License for the specific language governing permissions and
     13 # limitations under the License.
     14 #
     15 
     16 # this is a set of definitions that allow the usage of Makefile.android
     17 # even if we're not using the Android build system.
     18 #
     19 
     20 CC           := gcc
     21 BCC          := bcc
     22 AS86         ;= as86
     23 MAKE         := make
     24 CP           := cp
     25 
     26 all: bios.bin vgabios-cirrus.bin
     27 
     28 bochs/bios/Makefile:
     29 		cd bochs && ./configure
     30 
     31 bios.bin: bochs/bios/Makefile
     32 		$(MAKE) -C bochs/bios
     33 		$(CP) bochs/bios/BIOS-bochs-latest $@
     34 
     35 vgabios-cirrus.bin:
     36 		$(MAKE) -C vgabios
     37 		$(CP) vgabios/VGABIOS-lgpl-latest.cirrus.bin $@
     38 
     39 clean:
     40 		rm -rf bochs/Makefile bochs/build bochs/config.h bochs/config.log \
     41 			bochs/config.status bochs/instrument bochs/ltdlconf.h
     42 		$(MAKE) -C bochs/bios bios-clean
     43 		$(MAKE) -C bochs/bios dist-clean
     44 		$(MAKE) -C vgabios bios-clean
     45 		$(MAKE) -C vgabios dist-clean
     46 		rm -rf bios.bin vgabios-cirrus.bin
     47 
     48 
     49 
     50 
     51