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 68... Line 68...
68
 
68
 
69
OBJECTS := $(addsuffix .o,$(basename $(SOURCES)))
69
OBJECTS := $(addsuffix .o,$(basename $(SOURCES)))
70
 
70
 
71
.PHONY: all clean depend disasm
71
.PHONY: all clean depend disasm
72
 
72
 
73
all: $(OUTPUT) disasm
73
all: $(OUTPUT) $(OUTPUT).disasm
74
 
74
 
75
-include Makefile.depend
75
-include Makefile.depend
76
 
76
 
77
clean:
77
clean:
78
	-rm -f $(OUTPUT) $(OUTPUT).map $(OUTPUT).disasm Makefile.depend
78
	-rm -f $(OUTPUT) $(OUTPUT).map $(OUTPUT).disasm Makefile.depend
Line 81... Line 81...
81
	$(CC) $(DEFS) $(CFLAGS) -M $(SOURCES) > Makefile.depend
81
	$(CC) $(DEFS) $(CFLAGS) -M $(SOURCES) > Makefile.depend
82
 
82
 
83
$(OUTPUT): $(OBJECTS) $(LIBS)
83
$(OUTPUT): $(OBJECTS) $(LIBS)
84
	$(LD) -T $(LIBC_PREFIX)/arch/$(ARCH)/_link.ld $(OBJECTS) $(LIBS) $(LFLAGS) -o $@ -Map $(OUTPUT).map
84
	$(LD) -T $(LIBC_PREFIX)/arch/$(ARCH)/_link.ld $(OBJECTS) $(LIBS) $(LFLAGS) -o $@ -Map $(OUTPUT).map
85
 
85
 
86
disasm:
86
disasm: $(OUTPUT).disasm
-
 
87
 
-
 
88
$(OUTPUT).disasm: $(OUTPUT)
87
	$(OBJDUMP) -d $(OUTPUT) >$(OUTPUT).disasm
89
	$(OBJDUMP) -d $< >$@
88
 
90
 
89
%.o: %.S
91
%.o: %.S
90
	$(CC) $(DEFS) $(AFLAGS) $(CFLAGS) -D__ASM__ -c $< -o $@
92
	$(CC) $(DEFS) $(AFLAGS) $(CFLAGS) -D__ASM__ -c $< -o $@
91
 
93
 
92
%.o: %.s
94
%.o: %.s