Rev 4344 | Rev 4354 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 4344 | Rev 4346 | ||
---|---|---|---|
Line 42... | Line 42... | ||
42 | # |
42 | # |
43 | 43 | ||
44 | OUTPUT = kbd |
44 | OUTPUT = kbd |
45 | GENERIC_SOURCES = \ |
45 | GENERIC_SOURCES = \ |
46 | generic/kbd.c \ |
46 | generic/kbd.c \ |
- | 47 | genarch/gsp.c \ |
|
- | 48 | genarch/stroke.c \ |
|
47 | generic/key_buffer.c |
49 | generic/key_buffer.c |
48 | 50 | ||
49 | ARCH_SOURCES = |
51 | ARCH_SOURCES = |
50 | GENARCH_SOURCES = |
52 | GENARCH_SOURCES = |
51 | 53 | ||
Line 75... | Line 77... | ||
75 | ifeq ($(UARCH), ia32) |
77 | ifeq ($(UARCH), ia32) |
76 | GENARCH_SOURCES += \ |
78 | GENARCH_SOURCES += \ |
77 | port/i8042.c \ |
79 | port/i8042.c \ |
78 | ctl/pc.c |
80 | ctl/pc.c |
79 | endif |
81 | endif |
80 | ifeq ($(UARCH), ia64) |
82 | ifeq ($(MACHINE), i460GX) |
81 | GENARCH_SOURCES += \ |
83 | GENARCH_SOURCES += \ |
82 | port/i8042.c \ |
84 | port/i8042.c \ |
83 | ctl/pc.c |
85 | ctl/pc.c |
84 | endif |
86 | endif |
- | 87 | ifeq ($(MACHINE), ski) |
|
- | 88 | GENARCH_SOURCES += \ |
|
- | 89 | port/ski.c \ |
|
- | 90 | ctl/stty.c |
|
- | 91 | endif |
|
85 | ifeq ($(MACHINE), msim) |
92 | ifeq ($(MACHINE), msim) |
86 | GENARCH_SOURCES += \ |
93 | GENARCH_SOURCES += \ |
87 | port/msim.c \ |
94 | port/msim.c \ |
88 | ctl/stty.c |
95 | ctl/stty.c |
89 | endif |
96 | endif |
Line 107... | Line 114... | ||
107 | GENARCH_SOURCES += \ |
114 | GENARCH_SOURCES += \ |
108 | port/dummy.c \ |
115 | port/dummy.c \ |
109 | ctl/stty.c |
116 | ctl/stty.c |
110 | endif |
117 | endif |
111 | ifeq ($(UARCH), sparc64) |
118 | ifeq ($(UARCH), sparc64) |
- | 119 | ifeq ($(MACHINE),serengeti) |
|
- | 120 | GENARCH_SOURCES += \ |
|
- | 121 | port/sgcn.c \ |
|
- | 122 | ctl/stty.c |
|
- | 123 | else |
|
112 | GENARCH_SOURCES += \ |
124 | GENARCH_SOURCES += \ |
113 | port/z8530.c \ |
125 | port/z8530.c \ |
114 | ctl/sun.c |
126 | ctl/sun.c |
- | 127 | endif |
|
115 | endif |
128 | endif |
116 | 129 | ||
117 | GENERIC_OBJECTS := $(addsuffix .o,$(basename $(GENERIC_SOURCES))) |
130 | GENERIC_OBJECTS := $(addsuffix .o,$(basename $(GENERIC_SOURCES))) |
118 | ARCH_OBJECTS := $(addsuffix .o,$(basename $(ARCH_SOURCES))) |
131 | ARCH_OBJECTS := $(addsuffix .o,$(basename $(ARCH_SOURCES))) |
119 | GENARCH_OBJECTS := $(addsuffix .o,$(basename $(GENARCH_SOURCES))) |
132 | GENARCH_OBJECTS := $(addsuffix .o,$(basename $(GENARCH_SOURCES))) |
120 | 133 | ||
121 | OBJECTS := $(ARCH_OBJECTS) $(GENERIC_OBJECTS) $(GENARCH_OBJECTS) |
134 | OBJECTS := $(ARCH_OBJECTS) $(GENERIC_OBJECTS) $(GENARCH_OBJECTS) |
122 | 135 | ||
123 | .PHONY: all clean depend disasm links |
136 | .PHONY: all clean depend disasm links |
124 | 137 | ||
125 | all: links $(OUTPUT) $(OUTPUT).disasm |
138 | all: $(OUTPUT) $(OUTPUT).disasm |
126 | 139 | ||
127 | -include Makefile.depend |
140 | -include Makefile.depend |
128 | 141 | ||
129 | links: |
- | |
130 | ln -sfn ../arch/$(UARCH)/include include/arch |
- | |
131 | ln -sfn ../genarch/include include/genarch |
- | |
132 | - | ||
133 | clean: |
142 | clean: |
134 | -rm -f $(OUTPUT) $(OUTPUT).map $(OUTPUT).disasm Makefile.depend include/arch include/genarch $(OBJECTS) |
143 | -rm -f $(OUTPUT) $(OUTPUT).map $(OUTPUT).disasm Makefile.depend $(OBJECTS) |
135 | 144 | ||
136 | depend: |
145 | depend: |
137 | $(CC) $(DEFS) $(CFLAGS) -M $(SOURCES) > Makefile.depend |
146 | $(CC) $(DEFS) $(CFLAGS) -M $(SOURCES) > Makefile.depend |
138 | 147 | ||
139 | $(OUTPUT): $(OBJECTS) $(LIBS) |
148 | $(OUTPUT): $(OBJECTS) $(LIBS) |