Subversion Repositories HelenOS

Rev

Rev 4669 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 4669 Rev 4675
Line 341... Line 341...
341
-include Makefile.depend
341
-include Makefile.depend
342
 
342
 
343
clean:
343
clean:
344
	-rm -f kernel.bin kernel.raw kernel.map kernel.map.pre kernel.objdump kernel.disasm generic/src/debug/real_map.bin Makefile.depend* generic/include/arch generic/include/genarch arch/$(KARCH)/_link.ld
344
	-rm -f kernel.bin kernel.raw kernel.map kernel.map.pre kernel.objdump kernel.disasm generic/src/debug/real_map.bin Makefile.depend* generic/include/arch generic/include/genarch arch/$(KARCH)/_link.ld
345
	find generic/src/ arch/*/src/ genarch/src/ test/ -name '*.o' -follow -exec rm \{\} \;
345
	find generic/src/ arch/*/src/ genarch/src/ test/ -name '*.o' -follow -exec rm \{\} \;
346
ifeq ($(PLATFORM),arm32)
-
 
347
	rm -f arch/$(KARCH)/include/machine.h 
-
 
348
endif
-
 
349
	for arch in arch/* ; do \
346
	for arch in arch/* ; do \
350
	    [ -e $$arch/_link.ld ] && rm $$arch/_link.ld 2>/dev/null ; \
347
	    [ -e $$arch/_link.ld ] && rm $$arch/_link.ld 2>/dev/null ; \
351
	done ; exit 0
348
	done ; exit 0
352
 
349
 
353
archlinks:
350
archlinks:
354
	ln -sfn ../../arch/$(KARCH)/include/ generic/include/arch
351
	ln -sfn ../../arch/$(KARCH)/include/ generic/include/arch
355
	ln -sfn ../../genarch/include/ generic/include/genarch
352
	ln -sfn ../../genarch/include/ generic/include/genarch
356
ifeq ($(PLATFORM),arm32)
-
 
357
	ln -sfn mach/$(MACHINE)/$(MACHINE).h arch/$(KARCH)/include/machine.h 
-
 
358
endif
-
 
359
 
353
 
360
depend: archlinks
354
depend: archlinks
361
	-makedepend -f - -- $(DEPEND_DEFS) $(CFLAGS) -- $(ARCH_SOURCES) $(GENARCH_SOURCES) $(GENERIC_SOURCES) > Makefile.depend 2> /dev/null
355
	-makedepend -f - -- $(DEPEND_DEFS) $(CFLAGS) -- $(ARCH_SOURCES) $(GENARCH_SOURCES) $(GENERIC_SOURCES) > Makefile.depend 2> /dev/null
362
 
356
 
363
arch/$(KARCH)/_link.ld: arch/$(KARCH)/_link.ld.in
357
arch/$(KARCH)/_link.ld: arch/$(KARCH)/_link.ld.in