[9f51afc] | 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 |
|
---|
[1b1164e8] | 30 | USPACE_PREFIX = ../../..
|
---|
| 31 | ROOT_PATH = $(USPACE_PREFIX)/..
|
---|
[9f51afc] | 32 |
|
---|
[1b1164e8] | 33 | COMMON_MAKEFILE = $(ROOT_PATH)/Makefile.common
|
---|
| 34 | CONFIG_MAKEFILE = $(ROOT_PATH)/Makefile.config
|
---|
[9f51afc] | 35 |
|
---|
[1b1164e8] | 36 | EXTRA_CFLAGS = -Iinclude
|
---|
| 37 | BINARY = kbd
|
---|
[9f51afc] | 38 |
|
---|
[1b1164e8] | 39 | -include $(COMMON_MAKEFILE)
|
---|
| 40 | -include $(CONFIG_MAKEFILE)
|
---|
| 41 |
|
---|
| 42 | ## Sources
|
---|
| 43 | #
|
---|
| 44 |
|
---|
| 45 | SOURCES = \
|
---|
| 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 |
|
---|
| 53 | ifeq ($(UARCH),amd64)
|
---|
| 54 | SOURCES += \
|
---|
| 55 | port/chardev.c \
|
---|
| 56 | ctl/pc.c
|
---|
| 57 | endif
|
---|
| 58 |
|
---|
| 59 | ifeq ($(UARCH),arm32)
|
---|
[7c866dc] | 60 | ifeq ($(MACHINE),gta02)
|
---|
| 61 | SOURCES += \
|
---|
| 62 | port/dummy.c \
|
---|
| 63 | ctl/pc.c
|
---|
| 64 | endif
|
---|
[1b1164e8] | 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
|
---|
| 82 | endif
|
---|
| 83 |
|
---|
| 84 | ifeq ($(UARCH),ia32)
|
---|
| 85 | SOURCES += \
|
---|
| 86 | port/chardev.c \
|
---|
| 87 | ctl/pc.c
|
---|
| 88 | endif
|
---|
| 89 |
|
---|
| 90 | ifeq ($(MACHINE),i460GX)
|
---|
| 91 | SOURCES += \
|
---|
| 92 | port/chardev.c \
|
---|
| 93 | ctl/pc.c
|
---|
| 94 | endif
|
---|
| 95 |
|
---|
| 96 | ifeq ($(MACHINE),ski)
|
---|
| 97 | SOURCES += \
|
---|
| 98 | port/ski.c \
|
---|
| 99 | ctl/stty.c
|
---|
| 100 | endif
|
---|
| 101 |
|
---|
| 102 | ifeq ($(MACHINE),msim)
|
---|
| 103 | SOURCES += \
|
---|
| 104 | port/msim.c \
|
---|
| 105 | ctl/stty.c
|
---|
| 106 | endif
|
---|
| 107 |
|
---|
| 108 | ifeq ($(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
|
---|
| 119 | endif
|
---|
| 120 |
|
---|
| 121 | ifeq ($(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
|
---|
| 132 | endif
|
---|
| 133 |
|
---|
| 134 | ifeq ($(UARCH),ppc32)
|
---|
| 135 | SOURCES += \
|
---|
| 136 | port/adb.c \
|
---|
| 137 | ctl/apple.c
|
---|
| 138 | endif
|
---|
| 139 |
|
---|
| 140 | ifeq ($(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
|
---|
| 159 | endif
|
---|
| 160 |
|
---|
| 161 | ifeq ($(UARCH),abs32le)
|
---|
| 162 | SOURCES += \
|
---|
| 163 | port/dummy.c \
|
---|
| 164 | ctl/pc.c
|
---|
| 165 | endif
|
---|
| 166 |
|
---|
| 167 | include $(USPACE_PREFIX)/Makefile.common
|
---|