source: mainline/uspace/srv/hid/kbd/Makefile@ 4f14e1f8

lfn serial ticket/834-toolchain-update topic/msim-upgrade topic/simplify-dev-export
Last change on this file since 4f14e1f8 was a9b5b5f, checked in by Jiri Svoboda <jiri@…>, 15 years ago

Userspace S3C24xx UART driver. Use for kbd input from gta02 serial console.

  • Property mode set to 100644
File size: 3.3 KB
Line 
1#
2# Copyright (c) 2005 Martin Decky
3# Copyright (c) 2007 Jakub Jermar
4# All rights reserved.
5#
6# Redistribution and use in source and binary forms, with or without
7# modification, are permitted provided that the following conditions
8# are met:
9#
10# - Redistributions of source code must retain the above copyright
11# notice, this list of conditions and the following disclaimer.
12# - Redistributions in binary form must reproduce the above copyright
13# notice, this list of conditions and the following disclaimer in the
14# documentation and/or other materials provided with the distribution.
15# - The name of the author may not be used to endorse or promote products
16# derived from this software without specific prior written permission.
17#
18# THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
19# IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
20# OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
21# IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
22# INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
23# NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
24# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
25# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
26# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
27# THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
28#
29
30USPACE_PREFIX = ../../..
31ROOT_PATH = $(USPACE_PREFIX)/..
32
33COMMON_MAKEFILE = $(ROOT_PATH)/Makefile.common
34CONFIG_MAKEFILE = $(ROOT_PATH)/Makefile.config
35
36EXTRA_CFLAGS = -Iinclude
37BINARY = kbd
38
39-include $(COMMON_MAKEFILE)
40-include $(CONFIG_MAKEFILE)
41
42## Sources
43#
44
45SOURCES = \
46 generic/kbd.c \
47 genarch/gsp.c \
48 genarch/stroke.c \
49 layout/cz.c \
50 layout/us_qwerty.c \
51 layout/us_dvorak.c
52
53ifeq ($(UARCH),amd64)
54 SOURCES += \
55 port/chardev.c \
56 ctl/pc.c
57endif
58
59ifeq ($(UARCH),arm32)
60 ifeq ($(MACHINE),gta02)
61 SOURCES += \
62 port/chardev.c \
63 ctl/stty.c
64 endif
65 ifeq ($(MACHINE),testarm)
66 SOURCES += \
67 port/gxemul.c
68
69 ifeq ($(CONFIG_FB),y)
70 SOURCES += \
71 ctl/gxe_fb.c
72 else
73 SOURCES += \
74 ctl/stty.c
75 endif
76 endif
77 ifeq ($(MACHINE),integratorcp)
78 SOURCES += \
79 port/pl050.c \
80 ctl/pl050.c
81 endif
82endif
83
84ifeq ($(UARCH),ia32)
85 SOURCES += \
86 port/chardev.c \
87 ctl/pc.c
88endif
89
90ifeq ($(MACHINE),i460GX)
91 SOURCES += \
92 port/chardev.c \
93 ctl/pc.c
94endif
95
96ifeq ($(MACHINE),ski)
97 SOURCES += \
98 port/ski.c \
99 ctl/stty.c
100endif
101
102ifeq ($(MACHINE),msim)
103 SOURCES += \
104 port/msim.c \
105 ctl/stty.c
106endif
107
108ifeq ($(MACHINE),lgxemul)
109 SOURCES += \
110 port/gxemul.c
111
112 ifeq ($(CONFIG_FB),y)
113 SOURCES += \
114 ctl/gxe_fb.c
115 else
116 SOURCES += \
117 ctl/stty.c
118 endif
119endif
120
121ifeq ($(MACHINE),bgxemul)
122 SOURCES += \
123 port/gxemul.c
124
125 ifeq ($(CONFIG_FB),y)
126 SOURCES += \
127 ctl/gxe_fb.c
128 else
129 SOURCES += \
130 ctl/stty.c
131 endif
132endif
133
134ifeq ($(UARCH),ppc32)
135 SOURCES += \
136 port/adb.c \
137 ctl/apple.c
138endif
139
140ifeq ($(UARCH),sparc64)
141 ifeq ($(PROCESSOR),sun4v)
142 SOURCES += \
143 port/niagara.c \
144 ctl/stty.c
145 else
146 ifeq ($(MACHINE),serengeti)
147 SOURCES += \
148 port/sgcn.c \
149 ctl/stty.c
150 endif
151 ifeq ($(MACHINE),generic)
152 SOURCES += \
153 port/sun.c \
154 port/z8530.c \
155 port/ns16550.c \
156 ctl/sun.c
157 endif
158 endif
159endif
160
161ifeq ($(UARCH),abs32le)
162 SOURCES += \
163 port/dummy.c \
164 ctl/pc.c
165endif
166
167include $(USPACE_PREFIX)/Makefile.common
Note: See TracBrowser for help on using the repository browser.