Subversion Repositories HelenOS-historic

Rev

Rev 1022 | Rev 1157 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 1022 Rev 1058
Line 63... Line 63...
63
all: image.boot
63
all: image.boot
64
 
64
 
65
-include Makefile.depend
65
-include Makefile.depend
66
 
66
 
67
image.boot: depend $(OBJECTS) kernel.o
67
image.boot: depend $(OBJECTS) kernel.o
68
	$(LD) -no-check-sections -N -T _link.ld -Map map $(OBJECTS) kernel.o -o $@
68
	$(LD) -no-check-sections -N -T _link.ld $(OBJECTS) kernel.o -o $@
69
 
69
 
70
depend:
70
depend:
71
	-makedepend $(DEFS) $(CFLAGS) -f - $(SOURCES) > Makefile.depend 2> /dev/null
71
	-makedepend $(DEFS) $(CFLAGS) -f - $(SOURCES) > Makefile.depend 2> /dev/null
72
 
72
 
73
clean:
73
clean:
74
	-rm -f $(OBJECTS) image.boot kernel.o Makefile.depend
74
	-rm -f $(OBJECTS) image.boot kernel.o Makefile.depend
75
 
75
 
76
kernel.o: $(KERNEL)
76
kernel.o: $(KERNEL)
77
	$(OBJCOPY) -I binary -O elf32-powerpc -B powerpc $(KERNEL) $@
77
	$(OBJCOPY) -I binary -O elf32-powerpc -B powerpc --rename-section .data=.image $(KERNEL) $@
78
 
78
 
79
%.o: %.S
79
%.o: %.S
80
	$(CC) $(DEFS) $(CFLAGS) -D__ASM__ -c $< -o $@
80
	$(CC) $(DEFS) $(CFLAGS) -D__ASM__ -c $< -o $@
81
 
81
 
82
%.o: %.c
82
%.o: %.c