Subversion Repositories HelenOS

Rev

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

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