Subversion Repositories HelenOS

Rev

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

Rev 3803 Rev 3882
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
LIBFS_PREFIX = ../../../lib/libfs
33
LIBFS_PREFIX = ../../../lib/libfs
36
LIBBLOCK_PREFIX = ../../../lib/libblock
34
LIBBLOCK_PREFIX = ../../../lib/libblock
37
SOFTINT_PREFIX = ../../../lib/softint
35
SOFTINT_PREFIX = ../../../lib/softint
-
 
36
 
38
include $(LIBC_PREFIX)/Makefile.toolchain
37
include $(LIBC_PREFIX)/Makefile.toolchain
39
 
38
 
40
CFLAGS += -I $(LIBFS_PREFIX) -I $(LIBBLOCK_PREFIX)
39
CFLAGS += -I $(LIBFS_PREFIX) -I $(LIBBLOCK_PREFIX)
41
 
40
 
42
LIBS = \
41
LIBS = \
Line 66... Line 65...
66
 
65
 
67
depend:
66
depend:
68
	$(CC) $(DEFS) $(CFLAGS) -M $(SOURCES) > Makefile.depend
67
	$(CC) $(DEFS) $(CFLAGS) -M $(SOURCES) > Makefile.depend
69
 
68
 
70
$(OUTPUT): $(OBJECTS) $(LIBS)
69
$(OUTPUT): $(OBJECTS) $(LIBS)
71
	$(LD) -T $(LIBC_PREFIX)/arch/$(ARCH)/_link.ld $(OBJECTS) $(LIBS) $(LFLAGS) -o $@ -Map $(OUTPUT).map
70
	$(LD) -T $(LIBC_PREFIX)/arch/$(UARCH)/_link.ld $(OBJECTS) $(LIBS) $(LFLAGS) -o $@ -Map $(OUTPUT).map
72
 
71
 
73
disasm: $(OUTPUT).disasm
72
disasm: $(OUTPUT).disasm
74
 
73
 
75
$(OUTPUT).disasm: $(OUTPUT)
74
$(OUTPUT).disasm: $(OUTPUT)
76
	$(OBJDUMP) -d $< >$@
75
	$(OBJDUMP) -d $< >$@