Subversion Repositories HelenOS

Rev

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

Rev 3882 Rev 3923
Line 44... Line 44...
44
OUTPUT = kbd
44
OUTPUT = kbd
45
GENERIC_SOURCES = \
45
GENERIC_SOURCES = \
46
	generic/kbd.c \
46
	generic/kbd.c \
47
	generic/key_buffer.c
47
	generic/key_buffer.c
48
 
48
 
49
ARCH_SOURCES = \
49
ARCH_SOURCES =
50
	arch/$(UARCH)/src/kbd.c
50
GENARCH_SOURCES =
51
 
51
 
-
 
52
ifeq ($(KBD_LAYOUT), us_qwerty)
-
 
53
	GENARCH_SOURCES += layout/us_qwerty.c
-
 
54
endif
-
 
55
ifeq ($(KBD_LAYOUT), us_dvorak)
-
 
56
	GENARCH_SOURCES += layout/us_dvorak.c
-
 
57
endif
-
 
58
 
-
 
59
ifeq ($(UARCH), amd64)
-
 
60
	GENARCH_SOURCES += \
-
 
61
		port/i8042.c \
-
 
62
		ctl/pc.c
-
 
63
endif
-
 
64
ifeq ($(UARCH), arm32)
-
 
65
	GENARCH_SOURCES += \
-
 
66
		port/gxemul.c
-
 
67
	ifeq ($(CONFIG_FB), y)
-
 
68
		GENARCH_SOURCES += \
-
 
69
			ctl/gxe_fb.c
-
 
70
	else
-
 
71
		GENARCH_SOURCES += \
-
 
72
			ctl/stty.c
-
 
73
	endif
-
 
74
endif
52
ifeq ($(UARCH), ia32)
75
ifeq ($(UARCH), ia32)
53
	ARCH_SOURCES += \
76
	GENARCH_SOURCES += \
54
		arch/$(UARCH)/src/mouse.c \
-
 
55
		arch/$(UARCH)/src/scanc.c
-
 
56
	GENARCH_SOURCES = \
77
		port/i8042.c \
57
		genarch/src/kbd.c
78
		ctl/pc.c
58
	CFLAGS += -DMOUSE_ENABLED
-
 
59
endif
79
endif
60
ifeq ($(UARCH), ia64)
80
ifeq ($(UARCH), ia64)
61
	ARCH_SOURCES += \
81
	GENARCH_SOURCES += \
62
		arch/$(UARCH)/src/mouse.c \
-
 
63
		arch/$(UARCH)/src/scanc.c \
-
 
64
		arch/$(UARCH)/src/lkbd.c
-
 
65
	GENARCH_SOURCES = \
82
		port/dummy.c \
66
		genarch/src/kbd.c
83
		ctl/stty.c
67
	CFLAGS += -DMOUSE_ENABLED
-
 
68
endif
84
endif
69
ifeq ($(UARCH), amd64)
85
ifeq ($(MACHINE), msim)
70
	ARCH_SOURCES += \
86
	GENARCH_SOURCES += \
71
		arch/$(UARCH)/src/mouse.c \
87
		port/msim.c \
72
		arch/$(UARCH)/src/scanc.c
-
 
73
	GENARCH_SOURCES = \
-
 
74
		genarch/src/kbd.c
88
		ctl/stty.c
75
	CFLAGS += -DMOUSE_ENABLED
-
 
76
endif
89
endif
77
ifeq ($(UARCH), sparc64)
90
ifeq ($(MACHINE), lgxemul)
78
	ARCH_SOURCES += \
91
	GENARCH_SOURCES += \
79
		arch/$(UARCH)/src/scanc.c \
92
		port/gxemul.c
80
		arch/$(UARCH)/src/sgcn.c
93
	ifeq ($(CONFIG_FB), y)
81
	GENARCH_SOURCES = \
94
		GENARCH_SOURCES += \
82
		genarch/src/kbd.c \
95
			ctl/gxe_fb.c
-
 
96
	else
-
 
97
		GENARCH_SOURCES += \
83
		genarch/src/nofb.c
98
			ctl/stty.c
-
 
99
	endif
84
endif
100
endif
85
ifeq ($(UARCH), arm32)
101
ifeq ($(MACHINE), bgxemul)
86
	ARCH_SOURCES += \
102
	GENARCH_SOURCES += \
87
		arch/$(UARCH)/src/kbd_gxemul.c
103
		port/gxemul.c \
-
 
104
		ctl/stty.c
88
endif
105
endif
89
ifeq ($(UARCH), mips32)
106
ifeq ($(UARCH), ppc32)
90
	GENARCH_SOURCES += \
107
	GENARCH_SOURCES += \
-
 
108
		port/dummy.c \
91
	    genarch/src/nofb.c
109
		ctl/stty.c
92
endif
110
endif
93
ifeq ($(UARCH), mips32eb)
111
ifeq ($(UARCH), sparc64)
94
	GENARCH_SOURCES += \
112
	GENARCH_SOURCES += \
-
 
113
		port/dummy.c \
95
	    genarch/src/nofb.c
114
		ctl/stty.c
96
endif
115
endif
97
 
116
 
-
 
117
# ifeq ($(UARCH), ia32)
-
 
118
# 	ARCH_SOURCES += \
-
 
119
# 		arch/$(UARCH)/src/mouse.c \
-
 
120
# 		arch/$(UARCH)/src/scanc.c
-
 
121
# 	GENARCH_SOURCES = \
-
 
122
# 		genarch/src/kbd.c
-
 
123
# 	CFLAGS += -DMOUSE_ENABLED
-
 
124
# endif
-
 
125
# ifeq ($(UARCH), ia64)
-
 
126
# 	ARCH_SOURCES += \
-
 
127
# 		arch/$(UARCH)/src/mouse.c \
-
 
128
# 		arch/$(UARCH)/src/scanc.c \
-
 
129
# 		arch/$(UARCH)/src/lkbd.c
-
 
130
# 	GENARCH_SOURCES = \
-
 
131
# 		genarch/src/kbd.c
-
 
132
# 	CFLAGS += -DMOUSE_ENABLED
-
 
133
# endif
-
 
134
# ifeq ($(UARCH), amd64)
-
 
135
# 	ARCH_SOURCES += \
-
 
136
# 		arch/$(UARCH)/src/mouse.c \
-
 
137
# 		arch/$(UARCH)/src/scanc.c
-
 
138
# 	GENARCH_SOURCES = \
-
 
139
# 		genarch/src/kbd.c
-
 
140
# 	CFLAGS += -DMOUSE_ENABLED
-
 
141
# endif
-
 
142
# ifeq ($(UARCH), sparc64)
-
 
143
# 	ARCH_SOURCES += \
-
 
144
# 		arch/$(UARCH)/src/scanc.c \
-
 
145
# 		arch/$(UARCH)/src/sgcn.c
-
 
146
# 	GENARCH_SOURCES = \
-
 
147
# 		genarch/src/kbd.c \
-
 
148
# 		genarch/src/nofb.c
-
 
149
# endif
-
 
150
# ifeq ($(UARCH), arm32)
-
 
151
# 	ARCH_SOURCES += \
-
 
152
# 		arch/$(UARCH)/src/kbd_gxemul.c
-
 
153
# endif
-
 
154
# ifeq ($(UARCH), mips32)
-
 
155
# 	GENARCH_SOURCES += \
-
 
156
# 	    genarch/src/nofb.c
-
 
157
# endif
-
 
158
# ifeq ($(UARCH), mips32eb)
-
 
159
# 	GENARCH_SOURCES += \
-
 
160
# 	    genarch/src/nofb.c
-
 
161
# endif
-
 
162
 
98
GENERIC_OBJECTS := $(addsuffix .o,$(basename $(GENERIC_SOURCES)))
163
GENERIC_OBJECTS := $(addsuffix .o,$(basename $(GENERIC_SOURCES)))
99
ARCH_OBJECTS := $(addsuffix .o,$(basename $(ARCH_SOURCES)))
164
ARCH_OBJECTS := $(addsuffix .o,$(basename $(ARCH_SOURCES)))
100
GENARCH_OBJECTS := $(addsuffix .o,$(basename $(GENARCH_SOURCES)))
165
GENARCH_OBJECTS := $(addsuffix .o,$(basename $(GENARCH_SOURCES)))
101
 
166
 
102
OBJECTS := $(ARCH_OBJECTS) $(GENERIC_OBJECTS) $(GENARCH_OBJECTS)
167
OBJECTS := $(ARCH_OBJECTS) $(GENERIC_OBJECTS) $(GENARCH_OBJECTS)