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
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 62... Line 61...
62
all: $(OUTPUT) $(OUTPUT).disasm
61
all: $(OUTPUT) $(OUTPUT).disasm
63
 
62
 
64
-include Makefile.depend
63
-include Makefile.depend
65
 
64
 
66
clean:
65
clean:
67
	-rm -f $(OUTPUT) $(OUTPUT).map $(OUTPUT).disasm Makefile.depend
66
	-rm -f $(OUTPUT) $(OUTPUT).map $(OUTPUT).disasm Makefile.depend $(OBJECTS)
68
 
67
 
69
depend:
68
depend:
70
	$(CC) $(DEFS) $(CFLAGS) -M $(SOURCES) > Makefile.depend
69
	$(CC) $(DEFS) $(CFLAGS) -M $(SOURCES) > Makefile.depend
71
 
70
 
72
$(OUTPUT): $(OBJECTS) $(LIBS)
71
$(OUTPUT): $(OBJECTS) $(LIBS)
73
	$(LD) -T $(LIBC_PREFIX)/arch/$(ARCH)/_link.ld $(OBJECTS) $(LIBS) $(LFLAGS) -o $@ -Map $(OUTPUT).map
72
	$(LD) -T $(LIBC_PREFIX)/arch/$(UARCH)/_link.ld $(OBJECTS) $(LIBS) $(LFLAGS) -o $@ -Map $(OUTPUT).map
74
 
73
 
75
disasm: $(OUTPUT).disasm
74
disasm: $(OUTPUT).disasm
76
 
75
 
77
$(OUTPUT).disasm: $(OUTPUT)
76
$(OUTPUT).disasm: $(OUTPUT)
78
	$(OBJDUMP) -d $< >$@
77
	$(OBJDUMP) -d $< >$@