Subversion Repositories HelenOS

Rev

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

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