OpenCores
URL https://opencores.org/ocsvn/or1k_old/or1k_old/trunk

Subversion Repositories or1k_old

[/] [or1k_old/] [trunk/] [rc203soc/] [sw/] [uClinux/] [arch/] [armnommu/] [drivers/] [char/] [Makefile] - Blame information for rev 1782

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 1622 jcastillo
#
2
# Makefile for the kernel character device drivers.
3
#
4
# Note! Dependencies are done automagically by 'make dep', which also
5
# removes any old dependencies. DON'T put your own dependencies here
6
# unless it's something special (ie not a .c file).
7
#
8
# Note 2! The CFLAGS definitions are now inherited from the
9
# parent makes..
10
#
11
 
12
#
13
# This file contains the font map for the default font
14
#
15
 
16
FONTMAPFILE = cp437.uni
17
 
18
# Links to make
19
 
20
LK = conmakehash.c consolemap.c consolemap.h cp437.uni random.c tty_ioctl.c softdog.c
21
 
22
all: links first_rule
23
 
24
L_TARGET := char.a
25
M_OBJS   :=
26
L_OBJS   := tty_io.o n_tty.o tty_ioctl.o pty.o mem.o random.o
27
 
28
# architecture options
29
 
30
ifeq ($(CONFIG_SERIAL_TRIO),y)
31
  L_OBJS += trioserial.o
32
else
33
  ifeq ($(CONFIG_SERIAL_TRIO),m)
34
    M_OBJS += trioserial.o
35
  endif
36
endif
37
 
38
ifeq ($(MACHINE),arc)
39
  ifeq ($(CONFIG_SERIAL),y)
40
    L_OBJS += serial6850.o
41
  else
42
    ifeq ($(CONFIG_SERIAL),m)
43
      M_OBJS += serial6850.o
44
    endif
45
  endif
46
else
47
  ifeq ($(CONFIG_SERIAL),y)
48
    SL = y
49
  else
50
    ifeq ($(CONFIG_SERIAL),m)
51
      SM = m
52
    endif
53
  endif
54
endif
55
 
56
ifeq ($(MACHINE),arc)
57
  L_OBJS += console.o consoledriver.o keyboard.o keyb_arc.o vc_screen.o selection.o \
58
                defkeymap.o consolemap.o vt.o
59
  MOUSE_OBJS =
60
endif
61
 
62
ifeq ($(MACHINE),a5k)
63
  L_OBJS += console.o consoledriver.o keyboard.o keyb_arc.o vc_screen.o selection.o \
64
                defkeymap.o consolemap.o vt.o
65
  MOUSE_OBJS =
66
endif
67
 
68
ifeq ($(MACHINE),rpc)
69
  L_OBJS += console.o consoledriver.o keyboard.o keyb_ps2.o vc_screen.o selection.o \
70
                defkeymap.o consolemap.o vt.o
71
ifeq ($(CONFIG_RPCMOUSE),y)
72
  MOUSE_OBJS = mouse_rpc.o
73
endif
74
endif
75
 
76
ifeq ($(MACHINE),ebsa110)
77
  L_OBJS += console-dummy.o vt-dummy.o
78
endif
79
 
80
ifeq ($(MACHINE),trio)
81
  L_OBJS += console-trio.o vt-dummy.o kbd_trio.o
82
endif
83
 
84
 
85
# Common dependencies
86
 
87
ifeq ($(CONFIG_ATOMWIDE_SERIAL),y)
88
  L_OBJS += serial-atomwide.o
89
  SL=y
90
else
91
  ifeq ($(CONFIG_ATOMWIDE_SERIAL),m)
92
    M_OBJS += serial-atomwide.o
93
    SM=m
94
  endif
95
endif
96
 
97
ifeq ($(CONFIG_DUALSP_SERIAL),y)
98
  L_OBJS += serial-dualsp.o
99
  SL=y
100
else
101
  ifeq ($(CONFIG_DUALSP_SERIAL),m)
102
    M_OBJS += serial-dualsp.o
103
    SM=m
104
  endif
105
endif
106
 
107
ifdef SL
108
  LX_OBJS += serial.o
109
else
110
  ifdef SM
111
    MX_OBJS += serial.o
112
  endif
113
endif
114
 
115
ifeq ($(CONFIG_PRINTER),y)
116
  L_OBJS += lp.o
117
else
118
  ifeq ($(CONFIG_PRINTER),m)
119
    M_OBJS += lp.o
120
  endif
121
endif
122
 
123
ifeq ($(CONFIG_UMISC),y)
124
# To support third-party modules, misc.c must reside in the kernel
125
M = y
126
endif
127
 
128
ifeq ($(CONFIG_MOUSE),y)
129
  M = y
130
  L_OBJS += mouse.o $(MOUSE_OBJS)
131
else
132
  ifeq ($(CONFIG_MOUSE),m)
133
    MM = m
134
    M_OBJS += mouse.o $(MOUSE_OBJS)
135
  endif
136
endif
137
 
138
ifeq ($(CONFIG_SOFT_WATCHDOG),y)
139
M = y
140
L_OBJS += softdog.o
141
else
142
  ifeq ($(CONFIG_SOFT_WATCHDOG),m)
143
  M_OBJS += softdog.o
144
  MM = m
145
  endif
146
endif
147
 
148
ifdef M
149
  L_OBJS += misc.o
150
else
151
  ifdef MM
152
    M_OBJS += misc.o
153
  endif
154
endif
155
 
156
include $(TOPDIR)/Rules.make
157
 
158
fastdep: links uni_hash.tbl
159
 
160
conmakehash: conmakehash.c
161
        $(HOSTCC) -o conmakehash conmakehash.c
162
 
163
uni_hash.tbl: $(FONTMAPFILE) conmakehash
164
        ./conmakehash $(FONTMAPFILE) > uni_hash.tbl
165
 
166
.PHONY: links
167
links:
168
        -@for f in $(LK); do \
169
                if [ ! -e $$f ]; then \
170
                        echo "ln -s ../../../../drivers/char/$$f .";\
171
                        ln -s ../../../../drivers/char/$$f .; \
172
                fi; \
173
        done
174
 
175
mrproper:
176
        -@for f in $(LK); do \
177
                if [ -L $$f ]; then \
178
                        echo $(RM) $$f; \
179
                        $(RM) $$f; \
180
                elif [ -f $$f ]; then \
181
                        echo not removing $$f; \
182
                fi; \
183
        done
184
        $(RM) conmakehash

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.