Subversion Repositories HelenOS

Rev

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

Rev 2547 Rev 3201
Line 48... Line 48...
48
 
48
 
49
OBJECTS := $(addsuffix .o,$(basename $(SOURCES)))
49
OBJECTS := $(addsuffix .o,$(basename $(SOURCES)))
50
 
50
 
51
.PHONY: all clean depend disasm
51
.PHONY: all clean depend disasm
52
 
52
 
53
all: $(OUTPUT) disasm
53
all: $(OUTPUT) $(OUTPUT).disasm
54
 
54
 
55
-include Makefile.depend
55
-include Makefile.depend
56
 
56
 
57
clean:
57
clean:
58
	-rm -f $(OUTPUT) $(OUTPUT).map $(OUTPUT).disasm Makefile.depend
58
	-rm -f $(OUTPUT) $(OUTPUT).map $(OUTPUT).disasm Makefile.depend
Line 61... Line 61...
61
	$(CC) $(DEFS) $(CFLAGS) -M $(SOURCES) > Makefile.depend
61
	$(CC) $(DEFS) $(CFLAGS) -M $(SOURCES) > Makefile.depend
62
 
62
 
63
$(OUTPUT): $(OBJECTS) $(LIBS)
63
$(OUTPUT): $(OBJECTS) $(LIBS)
64
	$(LD) -T $(LIBC_PREFIX)/arch/$(ARCH)/_link.ld $(OBJECTS) $(LIBS) $(LFLAGS) -o $@ -Map $(OUTPUT).map
64
	$(LD) -T $(LIBC_PREFIX)/arch/$(ARCH)/_link.ld $(OBJECTS) $(LIBS) $(LFLAGS) -o $@ -Map $(OUTPUT).map
65
 
65
 
66
disasm:
66
disasm: $(OUTPUT).disasm
-
 
67
 
-
 
68
$(OUTPUT).disasm: $(OUTPUT)
67
	$(OBJDUMP) -d $(OUTPUT) >$(OUTPUT).disasm
69
	$(OBJDUMP) -d $< >$@
68
 
70
 
69
%.o: %.S
71
%.o: %.S
70
	$(CC) $(DEFS) $(AFLAGS) $(CFLAGS) -D__ASM__ -c $< -o $@
72
	$(CC) $(DEFS) $(AFLAGS) $(CFLAGS) -D__ASM__ -c $< -o $@
71
 
73
 
72
%.o: %.s
74
%.o: %.s