Subversion Repositories HelenOS-historic

Rev

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

Rev 1214 Rev 1219
Line 62... Line 62...
62
 
62
 
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 init.o
68
	$(LD) -no-check-sections -N -T _link.ld $(OBJECTS) kernel.o -o $@
68
	$(LD) -no-check-sections -N -T _link.ld $(OBJECTS) kernel.o init.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 init.o Makefile.depend
75
 
75
 
76
kernel.o: $(KERNEL)
76
kernel.o: $(KERNEL)
77
	$(OBJCOPY) -I binary -O elf32-powerpc -B powerpc:common --rename-section .data=.image $(KERNEL) $@
77
	$(OBJCOPY) -I binary -O elf32-powerpc -B powerpc:common --rename-section .data=.kernel_image $(KERNEL) $@
-
 
78
 
-
 
79
init.o: $(INIT)
-
 
80
	$(OBJCOPY) -I binary -O elf32-powerpc -B powerpc:common --rename-section .data=.init_image $(INIT) $@
78
 
81
 
79
%.o: %.S
82
%.o: %.S
80
	$(CC) $(DEFS) $(CFLAGS) -D__ASM__ -c $< -o $@
83
	$(CC) $(DEFS) $(CFLAGS) -D__ASM__ -c $< -o $@
81
 
84
 
82
%.o: %.c
85
%.o: %.c