Subversion Repositories HelenOS

Rev

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

Rev 3211 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 = tester
43
OUTPUT = tester
44
SOURCES = tester.c \
44
SOURCES = tester.c \
Line 68... Line 68...
68
 
68
 
69
depend:
69
depend:
70
	$(CC) $(DEFS) $(CFLAGS) -M $(SOURCES) > Makefile.depend
70
	$(CC) $(DEFS) $(CFLAGS) -M $(SOURCES) > Makefile.depend
71
 
71
 
72
$(OUTPUT): $(OBJECTS) $(LIBS)
72
$(OUTPUT): $(OBJECTS) $(LIBS)
73
	$(LD) -T $(LIBC_PREFIX)/arch/$(ARCH)/_link.ld $(OBJECTS) $(LIBS) $(LFLAGS) -o $@ -Map $(OUTPUT).map
73
	$(LD) -T $(LD_SCRIPT) $(OBJECTS) $(LIBS) $(LFLAGS) -o $@ -Map $(OUTPUT).map
74
 
74
 
75
disasm: $(OUTPUT).disasm
75
disasm: $(OUTPUT).disasm
76
 
76
 
77
$(OUTPUT).disasm: $(OUTPUT)
77
$(OUTPUT).disasm: $(OUTPUT)
78
	$(OBJDUMP) -d $< >$@
78
	$(OBJDUMP) -d $< >$@