ругается: No rule to make target 'kernel'. Запускаю make kernel. Содержание makefile CC = m68k-elf-gcc
AS = m68k-elf-as
LL = m68k-elf-ld
DBG = m68k-elf-gdb
INCL = ../common
INCL2 = ../common/
INCL3 = ../common/
CFLAGS = $(DBG) -O2 -bm68k-elf -mcpu32 -S -I$(INCL)
#CFLAGS = $(DBG) -O2 -bm68k-elf -mcpu32 -S -ffixed-%d7
AFLAGS = -a=$(*F).lst -mcpu32 -mno-68881 -mno-68882 -mno-68851
#---- Tu use with CPU32BUG(M68332BCC) disabled
#### run dans la RAM
LFLAGS = -e ResetHandler -Ttext 0x100000 -Tdata 0x110000 -Tbss 0x111000
#### run dans la flash
#LFLAGS = -e ResetHandler -Ttext 0x0 -Tdata 0x110000 -Tbss 0x120000
ODIR = Odir
SDIR = Sdir
#-------------------------------------------------------------
itc.h: $(INCL3)types.h
touch $(INCL2)$@
oc.h: $(INCL3)types.h
touch $(INCL2)$@
ppwa.h: $(INCL3)types.h
touch $(INCL2)$@
pwm.h: $(INCL3)types.h
touch $(INCL2)$@
mappings.h: $(INCL3)types.h
touch $(INCL2)$@
qsm.h: $(INCL3)types.h
touch $(INCL2)$@
sim.h: $(INCL3)types.h
touch $(INCL2)$@
spc3.h: $(INCL3)types.h
touch $(INCL2)$@
readsci.h: $(INCL3)types.h
touch $(INCL2)$@
tpuram.h: $(INCL3)types.h
touch $(INCL2)$@
tpu.h: $(INCL3)types.h $(INCL3)pwm.h $(INCL3)itc.h $(INCL3)ppwa.h $(INCL3)oc.h
touch $(INCL2)$@
globals.h: $(INCL3)sim.h $(INCL3)tpuram.h $(INCL3)qsm.h $(INCL3)tpu.h
touch $(INCL2)$@
#MODULES = sim.h tpuram.h qsm.h tpu.h itc.h
#-------------------------------------------------------------
$(SDIR)/globals.s: globals.c globals.h
$(CC) $(CFLAGS) -o $@ $(*F).c
$(ODIR)/globals.o: $(SDIR)/globals.s
$(AS) $(AFLAGS) -o $@ $(SDIR)/$(*F).s
#-------------------------------------------------------------
$(ODIR)/rc6array.o: rc6array.s
$(AS) $(AFLAGS) -o $@ $(*F).s
#-------------------------------------------------------------
reset.o: m68332.d reset.s
$(AS) $(AFLAGS) -o $@ $(*F).s
$(ODIR)/reset.o: m68332.d reset.s
$(AS) $(AFLAGS) -o $@ $(*F).s
#-------------------------------------------------------------
$(SDIR)/init.s: init.c mappings.h globals.h
$(CC) $(CFLAGS) -o $@ $(*F).c
$(ODIR)/init.o: $(SDIR)/init.s
$(AS) $(AFLAGS) -o $@ $(SDIR)/$(*F).s
#-------------------------------------------------------------
$(SDIR)/irqtpu.s: irqtpu.c globals.h
$(CC) $(CFLAGS) -o $@ $(*F).c
$(ODIR)/irqtpu.o: $(SDIR)/irqtpu.s
$(AS) $(AFLAGS) -o $@ $(SDIR)/$(*F).s
#-------------------------------------------------------------
$(SDIR)/irqsci.s: irqsci.c globals.h
$(CC) $(CFLAGS) -o $@ $(*F).c
$(ODIR)/irqsci.o: $(SDIR)/irqsci.s
$(AS) $(AFLAGS) -o $@ $(SDIR)/$(*F).s
#-------------------------------------------------------------
$(SDIR)/io.s: io.c globals.h
$(CC) $(CFLAGS) -o $@ $(*F).c
$(ODIR)/io.o: $(SDIR)/io.s
$(AS) $(AFLAGS) -o $@ $(SDIR)/$(*F).s
#-------------------------------------------------------------
$(SDIR)/progmgt.s: progmgt.c globals.h
$(CC) $(CFLAGS) -o $@ $(*F).c
$(ODIR)/progmgt.o: $(SDIR)/progmgt.s
$(AS) $(AFLAGS) -o $@ $(SDIR)/$(*F).s
#-------------------------------------------------------------
$(SDIR)/readsci.s: readsci.c globals.h readsci.h
$(CC) $(CFLAGS) -o $@ $(*F).c
$(ODIR)/readsci.o: $(SDIR)/readsci.s
$(AS) $(AFLAGS) -o $@ $(SDIR)/$(*F).s
#-------------------------------------------------------------
$(SDIR)/automate.s: automate.c
$(CC) $(CFLAGS) -o $@ $(*F).c
$(ODIR)/automate.o: $(SDIR)/automate.s
$(AS) $(AFLAGS) -o $@ $(SDIR)/$(*F).s
#-------------------------------------------------------------
$(SDIR)/loop.s: loop.c globals.h
$(CC) $(CFLAGS) -o $@ $(*F).c
$(ODIR)/loop.o: $(SDIR)/loop.s
$(AS) $(AFLAGS) -o $@ $(SDIR)/$(*F).s
#-------------------------------------------------------------
$(SDIR)/irqspc3.s: irqspc3.c spc3.h mappings.h globals.h
$(CC) $(CFLAGS) -o $@ $(*F).c
$(ODIR)/irqspc3.o: $(SDIR)/irqspc3.s
$(AS) $(AFLAGS) -o $@ $(SDIR)/$(*F).s
#-------------------------------------------------------------
$(SDIR)/initspc3.s: initspc3.c spc3.h mappings.h globals.h
$(CC) $(CFLAGS) -o $@ $(*F).c
$(ODIR)/initspc3.o: $(SDIR)/initspc3.s
$(AS) $(AFLAGS) -o $@ $(SDIR)/$(*F).s
#-------------------------------------------------------------
$(SDIR)/readspc3.s: readspc3.c spc3.h mappings.h globals.h
$(CC) $(CFLAGS) -o $@ $(*F).c
$(ODIR)/readspc3.o: $(SDIR)/readspc3.s
$(AS) $(AFLAGS) -o $@ $(SDIR)/$(*F).s
#-------------------------------------------------------------
$(SDIR)/datagram.s: datagram.c spc3.h mappings.h globals.h
$(CC) $(CFLAGS) -o $@ $(*F).c
$(ODIR)/datagram.o: $(SDIR)/datagram.s
$(AS) $(AFLAGS) -o $@ $(SDIR)/$(*F).s
#-------------------------------------------------------------
kernel.elf: $(ODIR)/reset.o $(ODIR)/init.o $(ODIR)/initspc3.o $(ODIR)/irqtpu.o $(ODIR)/irqsci.o \
$(ODIR)/progmgt.o $(ODIR)/readsci.o $(ODIR)/irqspc3.o $(ODIR)/readspc3.o $(ODIR)/datagram.o \
$(ODIR)/globals.o $(ODIR)/rc6array.o $(ODIR)/loop.o $(ODIR)/automate.o makefile
$(LL) $(LFLAGS) -Map $*.map $(ODIR)/reset.o $(ODIR)/init.o $(ODIR)/initspc3.o $(ODIR)/irqtpu.o $(ODIR)/irqsci.o \
$(ODIR)/progmgt.o $(ODIR)/readsci.o $(ODIR)/irqspc3.o $(ODIR)/readspc3.o $(ODIR)/datagram.o \
$(ODIR)/globals.o $(ODIR)/rc6array.o $(ODIR)/loop.o $(ODIR)/automate.o \
/m68k-elf-3.3.2/m68k-elf/lib/mcpu32/libm.a \
/m68k-elf-3.3.2/m68k-elf/lib/mcpu32/libc.a \
/m68k-elf-3.3.2/lib/gcc-lib/m68k-elf/3.3.2/mcpu32/libgcc.a -o $@
#-------------------------------------------------------------
out.txt: out.elf
m68k-elf-objcopy -O m68k-aout out.elf $@
-
- ИМХО Цели kernel действительно нет. Попробуй make kernel.elf vsasha(151 знак., 15.01.2007 10:42, )
- цели "kernel" в этом файле нет Sergey Pinigin(248 знак., 15.01.2007 07:16, , ссылка)