Rev 4340 | Rev 4343 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 4340 | Rev 4342 | ||
---|---|---|---|
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 |
36 | RTLD_PREFIX = ../../lib/rtld |
34 | RTLD_PREFIX = ../../lib/rtld |
37 | 35 | ||
38 | include $(LIBC_PREFIX)/Makefile.toolchain |
36 | include $(LIBC_PREFIX)/Makefile.toolchain |
Line 47... | Line 45... | ||
47 | GENERIC_SOURCES = \ |
45 | GENERIC_SOURCES = \ |
48 | generic/kbd.c \ |
46 | generic/kbd.c \ |
49 | generic/key_buffer.c |
47 | generic/key_buffer.c |
50 | 48 | ||
51 | ARCH_SOURCES = \ |
49 | ARCH_SOURCES = \ |
52 | arch/$(ARCH)/src/kbd.c |
50 | arch/$(UARCH)/src/kbd.c |
53 | 51 | ||
54 | ifeq ($(ARCH), ia32) |
52 | ifeq ($(UARCH), ia32) |
55 | ARCH_SOURCES += \ |
53 | ARCH_SOURCES += \ |
56 | arch/$(ARCH)/src/mouse.c \ |
54 | arch/$(UARCH)/src/mouse.c \ |
57 | arch/$(ARCH)/src/scanc.c |
55 | arch/$(UARCH)/src/scanc.c |
58 | GENARCH_SOURCES = \ |
56 | GENARCH_SOURCES = \ |
59 | genarch/src/kbd.c |
57 | genarch/src/kbd.c |
60 | CFLAGS += -DMOUSE_ENABLED |
58 | CFLAGS += -DMOUSE_ENABLED |
61 | endif |
59 | endif |
62 | ifeq ($(ARCH), ia64) |
60 | ifeq ($(UARCH), ia64) |
63 | ARCH_SOURCES += \ |
61 | ARCH_SOURCES += \ |
64 | arch/$(ARCH)/src/mouse.c \ |
62 | arch/$(UARCH)/src/mouse.c \ |
65 | arch/$(ARCH)/src/scanc.c \ |
63 | arch/$(UARCH)/src/scanc.c \ |
66 | arch/$(ARCH)/src/lkbd.c |
64 | arch/$(UARCH)/src/lkbd.c |
67 | GENARCH_SOURCES = \ |
65 | GENARCH_SOURCES = \ |
68 | genarch/src/kbd.c |
66 | genarch/src/kbd.c |
69 | CFLAGS += -DMOUSE_ENABLED |
67 | CFLAGS += -DMOUSE_ENABLED |
70 | endif |
68 | endif |
71 | ifeq ($(ARCH), amd64) |
69 | ifeq ($(UARCH), amd64) |
72 | ARCH_SOURCES += \ |
70 | ARCH_SOURCES += \ |
73 | arch/$(ARCH)/src/mouse.c \ |
71 | arch/$(UARCH)/src/mouse.c \ |
74 | arch/$(ARCH)/src/scanc.c |
72 | arch/$(UARCH)/src/scanc.c |
75 | GENARCH_SOURCES = \ |
73 | GENARCH_SOURCES = \ |
76 | genarch/src/kbd.c |
74 | genarch/src/kbd.c |
77 | CFLAGS += -DMOUSE_ENABLED |
75 | CFLAGS += -DMOUSE_ENABLED |
78 | endif |
76 | endif |
79 | ifeq ($(ARCH), sparc64) |
77 | ifeq ($(UARCH), sparc64) |
80 | ARCH_SOURCES += \ |
78 | ARCH_SOURCES += \ |
81 | arch/$(ARCH)/src/scanc.c \ |
79 | arch/$(UARCH)/src/scanc.c \ |
82 | arch/$(ARCH)/src/sgcn.c |
80 | arch/$(UARCH)/src/sgcn.c |
83 | GENARCH_SOURCES = \ |
81 | GENARCH_SOURCES = \ |
84 | genarch/src/kbd.c \ |
82 | genarch/src/kbd.c \ |
85 | genarch/src/nofb.c |
83 | genarch/src/nofb.c |
86 | endif |
84 | endif |
87 | ifeq ($(ARCH), arm32) |
85 | ifeq ($(UARCH), arm32) |
88 | ARCH_SOURCES += \ |
86 | ARCH_SOURCES += \ |
89 | arch/$(ARCH)/src/kbd_gxemul.c |
87 | arch/$(UARCH)/src/kbd_gxemul.c |
90 | endif |
88 | endif |
91 | ifeq ($(ARCH), mips32) |
89 | ifeq ($(UARCH), mips32) |
92 | GENARCH_SOURCES += \ |
90 | GENARCH_SOURCES += \ |
93 | genarch/src/nofb.c |
91 | genarch/src/nofb.c |
94 | endif |
92 | endif |
95 | ifeq ($(ARCH), mips32eb) |
93 | ifeq ($(UARCH), mips32eb) |
96 | GENARCH_SOURCES += \ |
94 | GENARCH_SOURCES += \ |
97 | genarch/src/nofb.c |
95 | genarch/src/nofb.c |
98 | endif |
96 | endif |
99 | 97 | ||
100 | GENERIC_OBJECTS := $(addsuffix .o,$(basename $(GENERIC_SOURCES))) |
98 | GENERIC_OBJECTS := $(addsuffix .o,$(basename $(GENERIC_SOURCES))) |
Line 108... | Line 106... | ||
108 | all: links $(OUTPUT) $(OUTPUT).disasm |
106 | all: links $(OUTPUT) $(OUTPUT).disasm |
109 | 107 | ||
110 | -include Makefile.depend |
108 | -include Makefile.depend |
111 | 109 | ||
112 | links: |
110 | links: |
113 | ln -sfn ../arch/$(ARCH)/include include/arch |
111 | ln -sfn ../arch/$(UARCH)/include include/arch |
114 | ln -sfn ../genarch/include include/genarch |
112 | ln -sfn ../genarch/include include/genarch |
115 | 113 | ||
116 | clean: |
114 | clean: |
117 | -rm -f $(OUTPUT) $(OUTPUT).map $(OUTPUT).disasm Makefile.depend include/arch include/genarch $(OBJECTS) |
115 | -rm -f $(OUTPUT) $(OUTPUT).map $(OUTPUT).disasm Makefile.depend include/arch include/genarch $(OBJECTS) |
118 | 116 |