Subversion Repositories HelenOS

Rev

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

Rev 3593 Rev 3742
Line 57... Line 57...
57
 
57
 
58
GENERIC_OBJECTS := $(addsuffix .o,$(basename $(GENERIC_SOURCES))) \
58
GENERIC_OBJECTS := $(addsuffix .o,$(basename $(GENERIC_SOURCES))) \
59
			$(addsuffix .o,$(basename $(IMAGES)))	
59
			$(addsuffix .o,$(basename $(IMAGES)))	
60
ARCH_OBJECTS := $(addsuffix .o,$(basename $(ARCH_SOURCES)))
60
ARCH_OBJECTS := $(addsuffix .o,$(basename $(ARCH_SOURCES)))
61
 
61
 
-
 
62
OBJECTS := $(GENERIC_OBJECTS) $(ARCH_OBJECTS)
-
 
63
 
62
.PHONY: all clean depend disasm
64
.PHONY: all clean depend disasm
63
 
65
 
64
all: $(OUTPUT) $(OUTPUT).disasm
66
all: $(OUTPUT) $(OUTPUT).disasm
65
 
67
 
66
-include Makefile.depend
68
-include Makefile.depend
67
 
69
 
68
clean:
70
clean:
69
	-rm -f $(OUTPUT) $(OUTPUT).map $(OUTPUT).disasm Makefile.depend
71
	-rm -f $(OUTPUT) $(OUTPUT).map $(OUTPUT).disasm Makefile.depend $(OBJECTS)
70
 
72
 
71
depend:
73
depend:
72
	$(CC) $(DEFS) $(CFLAGS) -M $(SOURCES) > Makefile.depend
74
	$(CC) $(DEFS) $(CFLAGS) -M $(SOURCES) > Makefile.depend
73
 
75
 
74
$(OUTPUT): $(ARCH_OBJECTS) $(GENERIC_OBJECTS) $(LIBS)
76
$(OUTPUT): $(OBJECTS) $(LIBS)
75
	$(LD) -T $(LIBC_PREFIX)/arch/$(ARCH)/_link.ld $(GENERIC_OBJECTS) $(ARCH_OBJECTS) $(LIBS) $(LFLAGS) -o $@ -Map $(OUTPUT).map
77
	$(LD) -T $(LIBC_PREFIX)/arch/$(ARCH)/_link.ld $(OBJECTS) $(LIBS) $(LFLAGS) -o $@ -Map $(OUTPUT).map
76
 
78
 
77
disasm: $(OUTPUT).disasm
79
disasm: $(OUTPUT).disasm
78
 
80
 
79
$(OUTPUT).disasm: $(OUTPUT)
81
$(OUTPUT).disasm: $(OUTPUT)
80
	$(OBJDUMP) -d $< >$@
82
	$(OBJDUMP) -d $< >$@