Subversion Repositories HelenOS

Rev

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

Rev 3386 Rev 4153
Line 29... Line 29...
29
## Setup toolchain
29
## Setup toolchain
30
#
30
#
31
 
31
 
32
LIBC_PREFIX = ../../lib/libc
32
LIBC_PREFIX = ../../lib/libc
33
SOFTINT_PREFIX = ../../lib/softint
33
SOFTINT_PREFIX = ../../lib/softint
-
 
34
 
34
include $(LIBC_PREFIX)/Makefile.toolchain
35
include $(LIBC_PREFIX)/Makefile.toolchain
35
 
36
 
36
LIBS = $(LIBC_PREFIX)/libc.a
37
LIBS = $(LIBC_PREFIX)/libc.a
37
 
38
 
38
## Sources
39
## Sources
Line 49... Line 50...
49
all: $(OUTPUT) $(OUTPUT).disasm
50
all: $(OUTPUT) $(OUTPUT).disasm
50
 
51
 
51
-include Makefile.depend
52
-include Makefile.depend
52
 
53
 
53
clean:
54
clean:
54
	-rm -f $(OUTPUT) $(OUTPUT).map $(OUTPUT).disasm Makefile.depend
55
	-rm -f $(OUTPUT) $(OUTPUT).map $(OUTPUT).disasm Makefile.depend $(OBJECTS)
55
 
56
 
56
depend:
57
depend:
57
	$(CC) $(DEFS) $(CFLAGS) -M $(SOURCES) > Makefile.depend
58
	$(CC) $(DEFS) $(CFLAGS) -M $(SOURCES) > Makefile.depend
58
 
59
 
59
$(OUTPUT): $(OBJECTS) $(LIBS)
60
$(OUTPUT): $(OBJECTS) $(LIBS)
60
	$(LD) -T $(LIBC_PREFIX)/arch/$(ARCH)/_link.ld $(OBJECTS) $(LIBS) $(LFLAGS) -o $@ -Map $(OUTPUT).map
61
	$(LD) -T $(LIBC_PREFIX)/arch/$(UARCH)/_link.ld $(OBJECTS) $(LIBS) $(LFLAGS) -o $@ -Map $(OUTPUT).map
61
 
62
 
62
disasm: $(OUTPUT).disasm
63
disasm: $(OUTPUT).disasm
63
 
64
 
64
$(OUTPUT).disasm: $(OUTPUT)
65
$(OUTPUT).disasm: $(OUTPUT)
65
	$(OBJDUMP) -d $< >$@
66
	$(OBJDUMP) -d $< >$@