Subversion Repositories HelenOS

Rev

Rev 3803 | Rev 4421 | 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
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
CFLAGS += -I. -I../kbd/include -I../fb
37
CFLAGS += -I. -I../kbd/include -I../fb
39
 
38
 
40
LIBS = $(LIBC_PREFIX)/libc.a
39
LIBS = $(LIBC_PREFIX)/libc.a
41
 
40
 
Line 72... Line 71...
72
 
71
 
73
depend:
72
depend:
74
	$(CC) $(DEFS) $(CFLAGS) -M $(SOURCES) > Makefile.depend
73
	$(CC) $(DEFS) $(CFLAGS) -M $(SOURCES) > Makefile.depend
75
 
74
 
76
$(OUTPUT): $(OBJECTS) $(LIBS)
75
$(OUTPUT): $(OBJECTS) $(LIBS)
77
	$(LD) -T $(LIBC_PREFIX)/arch/$(ARCH)/_link.ld $(OBJECTS) $(LIBS) $(LFLAGS) -o $@ -Map $(OUTPUT).map
76
	$(LD) -T $(LIBC_PREFIX)/arch/$(UARCH)/_link.ld $(OBJECTS) $(LIBS) $(LFLAGS) -o $@ -Map $(OUTPUT).map
78
 
77
 
79
disasm: $(OUTPUT).disasm
78
disasm: $(OUTPUT).disasm
80
 
79
 
81
$(OUTPUT).disasm: $(OUTPUT)
80
$(OUTPUT).disasm: $(OUTPUT)
82
	$(OBJDUMP) -d $< >$@
81
	$(OBJDUMP) -d $< >$@