Subversion Repositories HelenOS

Rev

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

Rev 3018 Rev 3425
Line 58... Line 58...
58
 
58
 
59
OBJECTS := $(addsuffix .o,$(basename $(SOURCES)))
59
OBJECTS := $(addsuffix .o,$(basename $(SOURCES)))
60
 
60
 
61
.PHONY: all clean depend disasm
61
.PHONY: all clean depend disasm
62
 
62
 
63
all: $(OUTPUT) disasm
63
all: $(OUTPUT) $(OUTPUT).disasm
64
 
64
 
65
-include Makefile.depend
65
-include Makefile.depend
66
 
66
 
67
clean:
67
clean:
68
	-rm -f $(OUTPUT) $(OBJECTS) $(OUTPUT).map $(OUTPUT).disasm Makefile.depend
68
	-rm -f $(OUTPUT) $(OBJECTS) $(OUTPUT).map $(OUTPUT).disasm Makefile.depend
Line 71... Line 71...
71
	$(CC) $(DEFS) $(CFLAGS) -M $(SOURCES) > Makefile.depend
71
	$(CC) $(DEFS) $(CFLAGS) -M $(SOURCES) > Makefile.depend
72
 
72
 
73
$(OUTPUT): $(OBJECTS) $(LIBS)
73
$(OUTPUT): $(OBJECTS) $(LIBS)
74
	$(LD) -T $(LIBC_PREFIX)/arch/$(ARCH)/_link.ld $(OBJECTS) $(LIBS) $(LFLAGS) -o $@ -Map $(OUTPUT).map
74
	$(LD) -T $(LIBC_PREFIX)/arch/$(ARCH)/_link.ld $(OBJECTS) $(LIBS) $(LFLAGS) -o $@ -Map $(OUTPUT).map
75
 
75
 
76
disasm:
76
disasm: $(OUTPUT).disasm
-
 
77
 
-
 
78
$(OUTPUT).disasm: $(OUTPUT)
77
	$(OBJDUMP) -d -S $(OUTPUT) >$(OUTPUT).disasm
79
	$(OBJDUMP) -d $< >$@
78
 
80
 
79
%.o: %.S
81
%.o: %.S
80
	$(CC) $(DEFS) $(AFLAGS) $(CFLAGS) -D__ASM__ -c $< -o $@
82
	$(CC) $(DEFS) $(AFLAGS) $(CFLAGS) -D__ASM__ -c $< -o $@
81
 
83
 
82
%.o: %.s
84
%.o: %.s