Subversion Repositories HelenOS

Rev

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

Rev 3597 Rev 4377
Line 28... Line 28...
28
#
28
#
29
 
29
 
30
## Setup toolchain
30
## Setup toolchain
31
#
31
#
32
 
32
 
33
include ../../Makefile.config
-
 
34
 
-
 
35
LIBC_PREFIX = ../../lib/libc
33
LIBC_PREFIX = ../../lib/libc
36
SOFTINT_PREFIX = ../../lib/softint
34
SOFTINT_PREFIX = ../../lib/softint
-
 
35
 
37
include $(LIBC_PREFIX)/Makefile.toolchain
36
include $(LIBC_PREFIX)/Makefile.toolchain
38
 
37
 
39
LIBS = $(LIBC_PREFIX)/libc.a
38
LIBS = $(LIBC_PREFIX)/libc.a
40
 
39
 
41
## Sources
40
## Sources
Line 57... Line 56...
57
all: $(OUTPUT) $(OUTPUT).disasm
56
all: $(OUTPUT) $(OUTPUT).disasm
58
 
57
 
59
-include Makefile.depend
58
-include Makefile.depend
60
 
59
 
61
clean:
60
clean:
62
	-rm -f $(OUTPUT) $(OUTPUT).map $(OUTPUT).disasm Makefile.depend
61
	-rm -f $(OUTPUT) $(OUTPUT).map $(OUTPUT).disasm Makefile.depend $(OBJECTS)
63
 
62
 
64
depend:
63
depend:
65
	$(CC) $(DEFS) $(CFLAGS) -M $(SOURCES) > Makefile.depend
64
	$(CC) $(DEFS) $(CFLAGS) -M $(SOURCES) > Makefile.depend
66
 
65
 
67
$(OUTPUT): $(OBJECTS) $(LIBS)
66
$(OUTPUT): $(OBJECTS) $(LIBS)
68
	$(LD) -T $(LIBC_PREFIX)/arch/$(ARCH)/_link.ld $(OBJECTS) $(LIBS) $(LFLAGS) -o $@ -Map $(OUTPUT).map
67
	$(LD) -T $(LIBC_PREFIX)/arch/$(UARCH)/_link.ld $(OBJECTS) $(LIBS) $(LFLAGS) -o $@ -Map $(OUTPUT).map
69
 
68
 
70
disasm: $(OUTPUT).disasm
69
disasm: $(OUTPUT).disasm
71
 
70
 
72
$(OUTPUT).disasm: $(OUTPUT)
71
$(OUTPUT).disasm: $(OUTPUT)
73
	$(OBJDUMP) -d $< >$@
72
	$(OBJDUMP) -d $< >$@