help-make
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Make reported an error "There are no rules to create 'mykernel. bin', s


From: address@hidden
Subject: Make reported an error "There are no rules to create 'mykernel. bin', stop"
Date: Fri, 3 Feb 2023 04:18:21 +0000

system:ubuntu22.10
I'm trying to make mykernel.bin,However, an error was reported. See the title 
for details
This is my makefile code:
GPPPARAMS = -m32 -fno-use-cxa-atexit -fleading-underscore -fno-exceptions 
-fno-builtin -nostdlib -fno-rtti

ASPARAMS = --32

LDPARAMS = -melf_i386

objects = loader.o kernel.o

%.o: %.cpp

        g++ ${GPPPARAMS} -o $@ -c $<

%.o: %.s

        as ${ASPARAMS} -o $@ $<

mykernel.bin: linker.ld ${objects}

        ld ${LDPARAMS} -T $< -o $@ ${objects}

install: mykernel.bin
        sudo cp $< /boot/mykernel.bin

reply via email to

[Prev in Thread] Current Thread [Next in Thread]