source: mainline/uspace/srv/hid/kbd/Makefile@ b1bdc7a4

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

Control keyboard port modules through ops structures. Allows compiling in
all modules at the same time.

  • Property mode set to 100644
File size: 3.2 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 port/adb.c \
53 port/chardev.c \
54 port/dummy.c \
55 port/gxemul.c \
56 port/msim.c \
57 port/niagara.c \
58 port/ns16550.c \
59 port/pl050.c \
60 port/sgcn.c \
61 port/ski.c \
62 port/sun.c \
63 port/z8530.c
64
65
66ifeq ($(UARCH),amd64)
67 SOURCES += \
68 ctl/pc.c
69endif
70
71ifeq ($(UARCH),arm32)
72 ifeq ($(MACHINE),gta02)
73 SOURCES += \
74 ctl/stty.c
75 endif
76 ifeq ($(MACHINE),testarm)
77 ifeq ($(CONFIG_FB),y)
78 SOURCES += \
79 ctl/gxe_fb.c
80 else
81 SOURCES += \
82 ctl/stty.c
83 endif
84 endif
85 ifeq ($(MACHINE),integratorcp)
86 SOURCES += \
87 ctl/pc.c
88 endif
89endif
90
91ifeq ($(UARCH),ia32)
92 SOURCES += \
93 ctl/pc.c
94endif
95
96ifeq ($(MACHINE),i460GX)
97 SOURCES += \
98 ctl/pc.c
99endif
100
101ifeq ($(MACHINE),ski)
102 SOURCES += \
103 ctl/stty.c
104endif
105
106ifeq ($(MACHINE),msim)
107 SOURCES += \
108 ctl/stty.c
109endif
110
111ifeq ($(MACHINE),lgxemul)
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 ifeq ($(CONFIG_FB),y)
123 SOURCES += \
124 ctl/gxe_fb.c
125 else
126 SOURCES += \
127 ctl/stty.c
128 endif
129endif
130
131ifeq ($(UARCH),ppc32)
132 SOURCES += \
133 ctl/apple.c
134endif
135
136ifeq ($(UARCH),sparc64)
137 ifeq ($(PROCESSOR),sun4v)
138 SOURCES += \
139 ctl/stty.c
140 else
141 ifeq ($(MACHINE),serengeti)
142 SOURCES += \
143 ctl/stty.c
144 endif
145 ifeq ($(MACHINE),generic)
146 SOURCES += \
147 ctl/sun.c
148 endif
149 endif
150endif
151
152ifeq ($(UARCH),abs32le)
153 SOURCES += \
154 ctl/pc.c
155endif
156
157include $(USPACE_PREFIX)/Makefile.common
Note: See TracBrowser for help on using the repository browser.