Subversion Repositories HelenOS

Rev

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

Rev 3612 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
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../../srv/kbd/include -ggdb
37
CFLAGS += -I../../srv/kbd/include -ggdb
39
 
38
 
40
LIBS = $(LIBC_PREFIX)/libc.a
39
LIBS = $(LIBC_PREFIX)/libc.a
Line 44... Line 43...
44
 
43
 
45
OUTPUT = tester
44
OUTPUT = tester
46
SOURCES = tester.c \
45
SOURCES = tester.c \
47
	thread/thread1.c \
46
	thread/thread1.c \
48
	print/print1.c \
47
	print/print1.c \
-
 
48
	print/print4.c \
49
	fault/fault1.c \
49
	fault/fault1.c \
50
	fault/fault2.c \
50
	fault/fault2.c \
51
	ipc/register.c \
51
	ipc/register.c \
52
	ipc/connect.c \
52
	ipc/connect.c \
53
	ipc/send_async.c \
53
	ipc/send_async.c \
54
	ipc/send_sync.c \
54
	ipc/send_sync.c \
55
	ipc/answer.c \
55
	ipc/answer.c \
56
	ipc/hangup.c \
56
	ipc/hangup.c \
57
	loop/loop1.c \
57
	loop/loop1.c \
58
	devmap/devmap1.c \
58
	devmap/devmap1.c \
-
 
59
	console/console1.c \
-
 
60
	stdio/stdio1.c \
-
 
61
	stdio/stdio2.c \
59
	vfs/vfs1.c \
62
	vfs/vfs1.c \
60
	debug/debug1.c
63
	debug/debug1.c
61
 
64
 
62
OBJECTS := $(addsuffix .o,$(basename $(SOURCES)))
65
OBJECTS := $(addsuffix .o,$(basename $(SOURCES)))
63
 
66
 
Line 66... Line 69...
66
all: $(OUTPUT) $(OUTPUT).disasm
69
all: $(OUTPUT) $(OUTPUT).disasm
67
 
70
 
68
-include Makefile.depend
71
-include Makefile.depend
69
 
72
 
70
clean:
73
clean:
71
	-rm -f $(OUTPUT) $(OBJECTS) $(OUTPUT).map $(OUTPUT).disasm Makefile.depend
74
	-rm -f $(OUTPUT) $(OUTPUT).map $(OUTPUT).disasm Makefile.depend $(OBJECTS)
72
 
75
 
73
depend:
76
depend:
74
	$(CC) $(DEFS) $(CFLAGS) -M $(SOURCES) > Makefile.depend
77
	$(CC) $(DEFS) $(CFLAGS) -M $(SOURCES) > Makefile.depend
75
 
78
 
76
$(OUTPUT): $(OBJECTS) $(LIBS)
79
$(OUTPUT): $(OBJECTS) $(LIBS)
77
	$(LD) -T $(LIBC_PREFIX)/arch/$(ARCH)/_link.ld $(OBJECTS) $(LIBS) $(LFLAGS) -o $@ -Map $(OUTPUT).map
80
	$(LD) -T $(LIBC_PREFIX)/arch/$(UARCH)/_link.ld $(OBJECTS) $(LIBS) $(LFLAGS) -o $@ -Map $(OUTPUT).map
78
 
81
 
79
disasm: $(OUTPUT).disasm
82
disasm: $(OUTPUT).disasm
80
 
83
 
81
$(OUTPUT).disasm: $(OUTPUT)
84
$(OUTPUT).disasm: $(OUTPUT)
82
	$(OBJDUMP) -d $< >$@
85
	$(OBJDUMP) -d $< >$@