Subversion Repositories HelenOS

Rev

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

Rev 4332 Rev 4578
Line 45... Line 45...
45
OBJECTS := $(addsuffix .o,$(basename $(SOURCES)))
45
OBJECTS := $(addsuffix .o,$(basename $(SOURCES)))
46
DISASMS := $(addsuffix .disasm,$(basename $(OUTPUT)))
46
DISASMS := $(addsuffix .disasm,$(basename $(OUTPUT)))
47
 
47
 
48
.PHONY: all clean depend disasm
48
.PHONY: all clean depend disasm
49
 
49
 
50
all: $(OUTPUT) $(DISASMS)
50
all: $(OUTPUT) $(LIB) $(DISASMS)
51
 
51
 
52
check:
52
check:
53
	$(CC) $(DEFS) $(CFLAGS) $(CHECK_CFLAGS) *.c
53
	$(CC) $(DEFS) $(CFLAGS) $(CHECK_CFLAGS) *.c
54
 
54
 
55
-include Makefile.depend
55
-include 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/$(UARCH)/_link.ld $(OBJECTS) $(LIBS) $(LFLAGS) -o $@ -Map $@.map
64
	$(LD) -T $(LIBC_PREFIX)/arch/$(UARCH)/_link.ld $(OBJECTS) $(LIBS) $(LFLAGS) -o $@ -Map $@.map
65
 
65
 
-
 
66
$(LIB): $(OBJECTS)
-
 
67
	$(AR) rc $(LIB) $(OBJECTS)
-
 
68
 
66
disasm: $(DISASMS)
69
disasm: $(DISASMS)
67
 
70
 
68
%.disasm: %
71
%.disasm: %
69
	$(OBJDUMP) -d $< >$@
72
	$(OBJDUMP) -d $< >$@
70
 
73