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 27... Line 27...
27
#
27
#
28
 
28
 
29
## Setup toolchain
29
## Setup toolchain
30
#
30
#
31
 
31
 
32
include ../../Makefile.config
-
 
33
 
-
 
34
LIBC_PREFIX = ../../lib/libc
32
LIBC_PREFIX = ../../lib/libc
35
SOFTINT_PREFIX = ../../lib/softint
33
SOFTINT_PREFIX = ../../lib/softint
-
 
34
 
36
include $(LIBC_PREFIX)/Makefile.toolchain
35
include $(LIBC_PREFIX)/Makefile.toolchain
37
 
36
 
38
LIBS = $(LIBC_PREFIX)/libc.a
37
LIBS = $(LIBC_PREFIX)/libc.a
39
 
38
 
40
## Sources
39
## Sources
Line 51... Line 50...
51
all: $(OUTPUT) $(OUTPUT).disasm
50
all: $(OUTPUT) $(OUTPUT).disasm
52
 
51
 
53
-include Makefile.depend
52
-include Makefile.depend
54
 
53
 
55
clean:
54
clean:
56
	-rm -f $(OUTPUT) $(OUTPUT).map $(OUTPUT).disasm Makefile.depend
55
	-rm -f $(OUTPUT) $(OUTPUT).map $(OUTPUT).disasm Makefile.depend $(OBJECTS)
57
 
56
 
58
depend:
57
depend:
59
	$(CC) $(DEFS) $(CFLAGS) -M $(SOURCES) > Makefile.depend
58
	$(CC) $(DEFS) $(CFLAGS) -M $(SOURCES) > Makefile.depend
60
 
59
 
61
$(OUTPUT): $(OBJECTS) $(LIBS)
60
$(OUTPUT): $(OBJECTS) $(LIBS)
62
	$(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
63
 
62
 
64
disasm: $(OUTPUT).disasm
63
disasm: $(OUTPUT).disasm
65
 
64
 
66
$(OUTPUT).disasm: $(OUTPUT)
65
$(OUTPUT).disasm: $(OUTPUT)
67
	$(OBJDUMP) -d $< >$@
66
	$(OBJDUMP) -d $< >$@