Rev 3386 | Rev 4263 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 3386 | Rev 4153 | ||
---|---|---|---|
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 | ||
34 | include $(LIBC_PREFIX)/Makefile.toolchain |
35 | include $(LIBC_PREFIX)/Makefile.toolchain |
35 | 36 | ||
36 | CFLAGS += -I../../srv/kbd/include |
37 | CFLAGS += -I../../srv/kbd/include |
37 | 38 | ||
38 | LIBS = $(LIBC_PREFIX)/libc.a |
39 | LIBS = $(LIBC_PREFIX)/libc.a |
Line 50... | Line 51... | ||
50 | ipc/connect.c \ |
51 | ipc/connect.c \ |
51 | ipc/send_async.c \ |
52 | ipc/send_async.c \ |
52 | ipc/send_sync.c \ |
53 | ipc/send_sync.c \ |
53 | ipc/answer.c \ |
54 | ipc/answer.c \ |
54 | ipc/hangup.c \ |
55 | ipc/hangup.c \ |
- | 56 | loop/loop1.c \ |
|
55 | devmap/devmap1.c \ |
57 | devmap/devmap1.c \ |
- | 58 | console/console1.c \ |
|
- | 59 | stdio/stdio1.c \ |
|
- | 60 | stdio/stdio2.c \ |
|
56 | vfs/vfs1.c |
61 | vfs/vfs1.c |
57 | 62 | ||
58 | OBJECTS := $(addsuffix .o,$(basename $(SOURCES))) |
63 | OBJECTS := $(addsuffix .o,$(basename $(SOURCES))) |
59 | 64 | ||
60 | .PHONY: all clean depend disasm |
65 | .PHONY: all clean depend disasm |
Line 62... | Line 67... | ||
62 | all: $(OUTPUT) $(OUTPUT).disasm |
67 | all: $(OUTPUT) $(OUTPUT).disasm |
63 | 68 | ||
64 | -include Makefile.depend |
69 | -include Makefile.depend |
65 | 70 | ||
66 | clean: |
71 | clean: |
67 | -rm -f $(OUTPUT) $(OUTPUT).map $(OUTPUT).disasm Makefile.depend |
72 | -rm -f $(OUTPUT) $(OUTPUT).map $(OUTPUT).disasm Makefile.depend $(OBJECTS) |
68 | 73 | ||
69 | depend: |
74 | depend: |
70 | $(CC) $(DEFS) $(CFLAGS) -M $(SOURCES) > Makefile.depend |
75 | $(CC) $(DEFS) $(CFLAGS) -M $(SOURCES) > Makefile.depend |
71 | 76 | ||
72 | $(OUTPUT): $(OBJECTS) $(LIBS) |
77 | $(OUTPUT): $(OBJECTS) $(LIBS) |
73 | $(LD) -T $(LIBC_PREFIX)/arch/$(ARCH)/_link.ld $(OBJECTS) $(LIBS) $(LFLAGS) -o $@ -Map $(OUTPUT).map |
78 | $(LD) -T $(LIBC_PREFIX)/arch/$(UARCH)/_link.ld $(OBJECTS) $(LIBS) $(LFLAGS) -o $@ -Map $(OUTPUT).map |
74 | 79 | ||
75 | disasm: $(OUTPUT).disasm |
80 | disasm: $(OUTPUT).disasm |
76 | 81 | ||
77 | $(OUTPUT).disasm: $(OUTPUT) |
82 | $(OUTPUT).disasm: $(OUTPUT) |
78 | $(OBJDUMP) -d $< >$@ |
83 | $(OBJDUMP) -d $< >$@ |