Subversion Repositories HelenOS

Rev

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

Rev 3448 Rev 3560
Line 29... Line 29...
29
## Setup toolchain
29
## Setup toolchain
30
#
30
#
31
 
31
 
32
LIBC_PREFIX = ../../lib/libc
32
LIBC_PREFIX = ../../lib/libc
33
SOFTINT_PREFIX = ../../lib/softint
33
SOFTINT_PREFIX = ../../lib/softint
-
 
34
RTLD_PREFIX = ../../lib/rtld
34
include $(LIBC_PREFIX)/Makefile.toolchain
35
include $(LIBC_PREFIX)/Makefile.toolchain
-
 
36
include $(LIBC_PREFIX)/Makefile.app
35
 
37
 
36
CFLAGS += -I../../srv/kbd/include
38
CFLAGS += -I../../srv/kbd/include
37
 
39
 
38
LIBS = $(LIBC_PREFIX)/libc.a
-
 
39
 
-
 
40
## Sources
40
## Sources
41
#
41
#
42
 
42
 
43
OUTPUT = trace
43
OUTPUT = trace
44
SOURCES = trace.c \
44
SOURCES = trace.c \
Line 61... Line 61...
61
 
61
 
62
depend:
62
depend:
63
	$(CC) $(DEFS) $(CFLAGS) -M $(SOURCES) > Makefile.depend
63
	$(CC) $(DEFS) $(CFLAGS) -M $(SOURCES) > Makefile.depend
64
 
64
 
65
$(OUTPUT): $(OBJECTS) $(LIBS)
65
$(OUTPUT): $(OBJECTS) $(LIBS)
66
	$(LD) -T $(LIBC_PREFIX)/arch/$(ARCH)/_link.ld $(OBJECTS) $(LIBS) $(LFLAGS) -o $@ -Map $(OUTPUT).map
66
	$(LD) -T $(LD_SCRIPT) $(OBJECTS) $(LIBS) $(LFLAGS) -o $@ -Map $(OUTPUT).map
67
 
67
 
68
disasm:
68
disasm:
69
	$(OBJDUMP) -d $(OUTPUT) >$(OUTPUT).disasm
69
	$(OBJDUMP) -d $(OUTPUT) >$(OUTPUT).disasm
70
 
70
 
71
%.o: %.S
71
%.o: %.S