Atmega 8 on bread board (8Mhz Internal Clock)

This was the code for using Arduino as ISP to program a chip atmega328 on a breadboard Without using external clock and pullup resistor

atmega328bb.name=ATmega328 on a breadboard (8 MHz internal clock)

atmega328bb.upload.protocol=stk500
atmega328bb.upload.maximum_size=30720
atmega328bb.upload.speed=57600

atmega328bb.bootloader.low_fuses=0xE2
atmega328bb.bootloader.high_fuses=0xDA
atmega328bb.bootloader.extended_fuses=0x05
atmega328bb.bootloader.path=arduino:atmega
atmega328bb.bootloader.file=ATmegaBOOT_168_atmega328_pro_8MHz.hex
atmega328bb.bootloader.unlock_bits=0x3F
atmega328bb.bootloader.lock_bits=0x0F

atmega328bb.build.mcu=atmega328p
atmega328bb.build.f_cpu=8000000L
atmega328bb.build.core=arduino:arduino
atmega328bb.build.variant=arduino:standard

can I have a code which targets atmega 8 , Actually I want to use my Arduino Mega to program Atmega 8 without using external clock.

Do you have a bootloader ? Do you know how to make a bootloader with optiboot ?

atmega8bb.name=ATmega8 on a breadboard (8 MHz internal clock)

atmega8bb.upload.protocol=Arduino
atmega8bb.upload.maximum_size=7168
atmega8bb.upload.speed=19200

atmega8bb.bootloader.low_fuses=0xc4
atmega8bb.bootloader.high_fuses=0xd9
atmega8bb.bootloader.path=atmega8
atmega8bb.bootloader.file=ATmegaBOOT.hex
atmega8bb.bootloader.unlock_bits=0x3F
atmega8bb.bootloader.lock_bits=0x0F

atmega8bb.build.mcu=atmega8
atmega8bb.build.f_cpu=8000000L
atmega8bb.build.core=arduino