source: mainline/uspace/srv/hid/kbd/Makefile@ 1b1164e8

lfn serial ticket/834-toolchain-update topic/msim-upgrade topic/simplify-dev-export
Last change on this file since 1b1164e8 was 1b1164e8, checked in by Martin Decky <martin@…>, 15 years ago

unify and simplify user space makefiles
rename NETWORKING configuration option to CONFIG_NETWORKING

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