Subversion Repositories HelenOS

Rev

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

Rev 288 Rev 289
Line 71... Line 71...
71
dist-clean:
71
dist-clean:
72
	find . ../include -name arch -type l -exec rm \{\} \;
72
	find . ../include -name arch -type l -exec rm \{\} \;
73
	-rm Makefile.depend
73
	-rm Makefile.depend
74
	-$(MAKE) clean
74
	-$(MAKE) clean
75
 
75
 
76
kernel.bin: $(arch_objects) $(objects) $(test_objects)
76
kernel.bin: $(arch_objects) $(objects) $(test_objects) ../arch/$(ARCH)/_link.ld
77
	$(OBJCOPY) -I binary -O $(BFD_NAME) -B $(BFD_ARCH) --prefix-sections=symtab Makefile debug/empty_map.o
77
	$(OBJCOPY) -I binary -O $(BFD_NAME) -B $(BFD_ARCH) --prefix-sections=symtab Makefile debug/empty_map.o
78
	$(LD) $(LFLAGS) $(arch_objects) $(objects) $(test_objects) debug/empty_map.o -o $@ -Map kernel.map.pre
78
	$(LD) -T ../arch/$(ARCH)/_link.ld $(LFLAGS) $(arch_objects) $(objects) $(test_objects) debug/empty_map.o -o $@ -Map kernel.map.pre
79
	../tools/genmap.py kernel.map.pre debug/real_map.bin
79
	../tools/genmap.py kernel.map.pre debug/real_map.bin
80
	$(OBJCOPY) -I binary -O $(BFD_NAME) -B $(BFD_ARCH) --prefix-sections=symtab debug/real_map.bin debug/real_map.o
80
	$(OBJCOPY) -I binary -O $(BFD_NAME) -B $(BFD_ARCH) --prefix-sections=symtab debug/real_map.bin debug/real_map.o
81
	$(LD) $(LFLAGS) $(arch_objects) $(objects) $(test_objects) debug/real_map.o -o $@ -Map kernel.map	
81
	$(LD) -T ../arch/$(ARCH)/_link.ld $(LFLAGS) $(arch_objects) $(objects) $(test_objects) debug/real_map.o -o $@ -Map kernel.map
82
 
82
 
83
%.s: %.S
83
%.s: %.S
84
	$(CC) $(CPPFLAGS) -E $< >$@
84
	$(CC) $(CPPFLAGS) -E $< >$@
85
 
85
 
86
%.o: %.s
86
%.o: %.s