Rev 4377 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 4377 | Rev 4692 | ||
---|---|---|---|
Line 32... | Line 32... | ||
32 | LIBC_PREFIX = ../../lib/libc |
32 | LIBC_PREFIX = ../../lib/libc |
33 | SOFTINT_PREFIX = ../../lib/softint |
33 | SOFTINT_PREFIX = ../../lib/softint |
34 | 34 | ||
35 | include $(LIBC_PREFIX)/Makefile.toolchain |
35 | include $(LIBC_PREFIX)/Makefile.toolchain |
36 | 36 | ||
37 | CFLAGS += -I../../srv/kbd/include -ggdb |
37 | CFLAGS += -I../../srv/kbd/include |
38 | 38 | ||
39 | LIBS = $(LIBC_PREFIX)/libc.a |
39 | LIBS = $(LIBC_PREFIX)/libc.a |
40 | 40 | ||
41 | ## Sources |
41 | ## Sources |
42 | # |
42 | # |
43 | 43 | ||
44 | OUTPUT = tester |
44 | OUTPUT = tester |
45 | SOURCES = tester.c \ |
45 | SOURCES = tester.c \ |
46 | thread/thread1.c \ |
46 | thread/thread1.c \ |
47 | print/print1.c \ |
47 | print/print1.c \ |
- | 48 | print/print2.c \ |
|
- | 49 | print/print3.c \ |
|
48 | print/print4.c \ |
50 | print/print4.c \ |
- | 51 | console/console1.c \ |
|
- | 52 | stdio/stdio1.c \ |
|
- | 53 | stdio/stdio2.c \ |
|
49 | fault/fault1.c \ |
54 | fault/fault1.c \ |
50 | fault/fault2.c \ |
55 | fault/fault2.c \ |
- | 56 | vfs/vfs1.c \ |
|
- | 57 | ipc/ping_pong.c \ |
|
51 | ipc/register.c \ |
58 | ipc/register.c \ |
52 | ipc/connect.c \ |
59 | ipc/connect.c \ |
53 | ipc/send_async.c \ |
- | |
54 | ipc/send_sync.c \ |
- | |
55 | ipc/answer.c \ |
- | |
56 | ipc/hangup.c \ |
- | |
57 | loop/loop1.c \ |
60 | loop/loop1.c \ |
58 | devmap/devmap1.c \ |
- | |
59 | console/console1.c \ |
- | |
60 | stdio/stdio1.c \ |
61 | mm/malloc1.c \ |
61 | stdio/stdio2.c \ |
- | |
62 | vfs/vfs1.c \ |
- | |
63 | debug/debug1.c |
62 | debug/debug1.c |
64 | 63 | ||
- | 64 | ||
65 | OBJECTS := $(addsuffix .o,$(basename $(SOURCES))) |
65 | OBJECTS := $(addsuffix .o,$(basename $(SOURCES))) |
66 | 66 | ||
67 | .PHONY: all clean depend disasm |
67 | .PHONY: all clean depend disasm |
68 | 68 | ||
69 | all: $(OUTPUT) $(OUTPUT).disasm |
69 | all: $(OUTPUT) $(OUTPUT).disasm |
Line 80... | Line 80... | ||
80 | $(LD) -T $(LIBC_PREFIX)/arch/$(UARCH)/_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 |
81 | 81 | ||
82 | disasm: $(OUTPUT).disasm |
82 | disasm: $(OUTPUT).disasm |
83 | 83 | ||
84 | $(OUTPUT).disasm: $(OUTPUT) |
84 | $(OUTPUT).disasm: $(OUTPUT) |
85 | $(OBJDUMP) -d $< >$@ |
85 | $(OBJDUMP) -d $< > $@ |
86 | 86 | ||
87 | %.o: %.S |
87 | %.o: %.S |
88 | $(CC) $(DEFS) $(AFLAGS) $(CFLAGS) -D__ASM__ -c $< -o $@ |
88 | $(CC) $(DEFS) $(AFLAGS) $(CFLAGS) -D__ASM__ -c $< -o $@ |
89 | 89 | ||
90 | %.o: %.s |
90 | %.o: %.s |