Subversion Repositories HelenOS

Rev

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

Rev 3150 Rev 3211
Line 81... Line 81...
81
ARCH_OBJECTS := $(addsuffix .o,$(basename $(ARCH_SOURCES)))
81
ARCH_OBJECTS := $(addsuffix .o,$(basename $(ARCH_SOURCES)))
82
GENARCH_OBJECTS := $(addsuffix .o,$(basename $(GENARCH_SOURCES)))
82
GENARCH_OBJECTS := $(addsuffix .o,$(basename $(GENARCH_SOURCES)))
83
 
83
 
84
.PHONY: all clean depend disasm links
84
.PHONY: all clean depend disasm links
85
 
85
 
86
all: links $(OUTPUT) disasm
86
all: links $(OUTPUT) $(OUTPUT).disasm
87
 
87
 
88
-include Makefile.depend
88
-include Makefile.depend
89
 
89
 
90
links:
90
links:
91
	ln -sfn ../arch/$(ARCH)/include include/arch
91
	ln -sfn ../arch/$(ARCH)/include include/arch
Line 98... Line 98...
98
	$(CC) $(DEFS) $(CFLAGS) -M $(SOURCES) > Makefile.depend
98
	$(CC) $(DEFS) $(CFLAGS) -M $(SOURCES) > Makefile.depend
99
 
99
 
100
$(OUTPUT): $(ARCH_OBJECTS) $(GENERIC_OBJECTS) $(GENARCH_OBJECTS) $(LIBS)
100
$(OUTPUT): $(ARCH_OBJECTS) $(GENERIC_OBJECTS) $(GENARCH_OBJECTS) $(LIBS)
101
	$(LD) -T $(LIBC_PREFIX)/arch/$(ARCH)/_link.ld $(GENERIC_OBJECTS) $(ARCH_OBJECTS) $(GENARCH_OBJECTS) $(LIBS) $(LFLAGS) -o $@ -Map $(OUTPUT).map
101
	$(LD) -T $(LIBC_PREFIX)/arch/$(ARCH)/_link.ld $(GENERIC_OBJECTS) $(ARCH_OBJECTS) $(GENARCH_OBJECTS) $(LIBS) $(LFLAGS) -o $@ -Map $(OUTPUT).map
102
 
102
 
103
disasm:
103
disasm: $(OUTPUT).disasm
-
 
104
 
-
 
105
$(OUTPUT).disasm: $(OUTPUT)
104
	$(OBJDUMP) -d $(OUTPUT) >$(OUTPUT).disasm
106
	$(OBJDUMP) -d $< >$@
105
 
107
 
106
%.o: %.S
108
%.o: %.S
107
	$(CC) $(DEFS) $(AFLAGS) $(CFLAGS) -D__ASM__ -c $< -o $@
109
	$(CC) $(DEFS) $(AFLAGS) $(CFLAGS) -D__ASM__ -c $< -o $@
108
 
110
 
109
%.o: %.s
111
%.o: %.s