source: mainline/uspace/Makefile@ 8d6c1f1

lfn serial ticket/834-toolchain-update topic/msim-upgrade topic/simplify-dev-export
Last change on this file since 8d6c1f1 was 8d6c1f1, checked in by Jakub Jermar <jakub@…>, 15 years ago

Merge USB support.

Changes from bzr://helenos-usb.bzr.sourceforge.net/bzrroot/helenos-usb/mainline:

  • replaced '-' with '_' in new driver names
  • USB libs are built for each architecture
  • devman starts early
  • sys_thread_udelay() uses generic delay()
  • sys_as_create_area() now creates cacheable areas by default
  • Property mode set to 100644
File size: 4.4 KB
Line 
1#
2# Copyright (c) 2005 Martin Decky
3# All rights reserved.
4#
5# Redistribution and use in source and binary forms, with or without
6# modification, are permitted provided that the following conditions
7# are met:
8#
9# - Redistributions of source code must retain the above copyright
10# notice, this list of conditions and the following disclaimer.
11# - Redistributions in binary form must reproduce the above copyright
12# notice, this list of conditions and the following disclaimer in the
13# documentation and/or other materials provided with the distribution.
14# - The name of the author may not be used to endorse or promote products
15# derived from this software without specific prior written permission.
16#
17# THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
18# IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
19# OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
20# IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
21# INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
22# NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
23# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
24# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
25# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
26# THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
27#
28
29-include ../Makefile.common
30-include ../Makefile.config
31
32## Common binaries
33#
34
35DIRS = \
36 app/bdsh \
37 app/blkdump \
38 app/bnchmark \
39 app/edit \
40 app/ext2info \
41 app/getterm \
42 app/init \
43 app/kill \
44 app/killall \
45 app/klog \
46 app/lsusb \
47 app/mkfat \
48 app/redir \
49 app/sbi \
50 app/stats \
51 app/taskdump \
52 app/tester \
53 app/testread \
54 app/tetris \
55 app/trace \
56 app/top \
57 app/usbinfo \
58 app/vuhid \
59 app/netecho \
60 app/nettest1 \
61 app/nettest2 \
62 app/ping \
63 app/websrv \
64 app/sysinfo \
65 app/mkbd \
66 srv/clip \
67 srv/devmap \
68 srv/devman \
69 srv/loader \
70 srv/ns \
71 srv/taskmon \
72 srv/vfs \
73 srv/bd/ata_bd \
74 srv/bd/file_bd \
75 srv/bd/gxe_bd \
76 srv/bd/rd \
77 srv/bd/part/guid_part \
78 srv/bd/part/mbr_part \
79 srv/fs/fat \
80 srv/fs/tmpfs \
81 srv/fs/devfs \
82 srv/fs/ext2fs \
83 srv/hid/adb_mouse \
84 srv/hid/char_mouse \
85 srv/hid/s3c24xx_ts \
86 srv/hid/fb \
87 srv/hid/kbd \
88 srv/hw/char/i8042 \
89 srv/hw/char/s3c24xx_uart \
90 srv/hw/netif/ne2000 \
91 srv/net/netif/lo \
92 srv/net/il/arp \
93 srv/net/il/ip \
94 srv/net/tl/icmp \
95 srv/net/tl/udp \
96 srv/net/tl/tcp \
97 srv/net/net \
98 drv/root \
99 drv/rootvirt \
100 drv/test1 \
101 drv/test2 \
102 drv/test3
103
104## Networking
105#
106
107DIRS += \
108 srv/net/nil/eth \
109 srv/net/nil/nildummy
110
111## Platform-specific hardware support
112#
113
114ifneq ($(UARCH),abs32le)
115 DIRS += srv/hid/console
116endif
117
118ifeq ($(UARCH),amd64)
119 DIRS += \
120 drv/rootpc \
121 drv/pciintel \
122 drv/isa \
123 drv/ns8250 \
124 srv/hw/irc/apic \
125 srv/hw/irc/i8259 \
126 drv/ehci_hcd \
127 drv/ohci \
128 drv/uhci_hcd \
129 drv/uhci_rhd \
130 drv/usbflbk \
131 drv/usbhid \
132 drv/usbhub \
133 drv/usbmast \
134 drv/usbmid \
135 drv/usbmouse \
136 drv/vhc
137endif
138
139ifeq ($(UARCH),ia32)
140 DIRS += \
141 drv/rootpc \
142 drv/pciintel \
143 drv/isa \
144 drv/ns8250 \
145 srv/hw/irc/apic \
146 srv/hw/irc/i8259 \
147 drv/ehci_hcd \
148 drv/ohci \
149 drv/uhci_hcd \
150 drv/uhci_rhd \
151 drv/usbflbk \
152 drv/usbhid \
153 drv/usbhub \
154 drv/usbmast \
155 drv/usbmid \
156 drv/usbmouse \
157 drv/vhc
158endif
159
160ifeq ($(UARCH),ppc32)
161 DIRS += srv/hw/bus/cuda_adb
162endif
163
164ifeq ($(UARCH),sparc64)
165 DIRS += \
166 srv/hw/irc/fhc \
167 srv/hw/irc/obio
168endif
169
170## System libraries
171#
172
173LIBC = lib/c
174LIBS = \
175 lib/fs \
176 lib/block \
177 lib/clui \
178 lib/softint \
179 lib/softfloat \
180 lib/drv \
181 lib/packet \
182 lib/net \
183 lib/ext2 \
184 lib/usb \
185 lib/usbhost \
186 lib/usbdev \
187 lib/usbhid \
188 lib/usbvirt
189
190LIBC_BUILD = $(addsuffix .build,$(LIBC))
191LIBS_BUILD = $(addsuffix .build,$(LIBS))
192LIBN_BUILD = $(addsuffix .build,$(LIBN))
193BUILDS := $(addsuffix .build,$(DIRS))
194
195CLEANS := $(addsuffix .clean,$(DIRS)) $(addsuffix .clean,$(LIBN)) $(addsuffix .clean,$(LIBS)) $(addsuffix .clean,$(LIBC))
196
197.PHONY: all $(LIBC_BUILD) $(LIBS_BUILD) $(LIBN_BUILD) $(BUILDS) $(CLEANS) clean
198
199all: $(BUILDS)
200
201clean: $(CLEANS)
202
203$(CLEANS):
204 -$(MAKE) -C $(basename $@) clean
205
206$(BUILDS): $(LIBC_BUILD) $(LIBS_BUILD) $(LIBN_BUILD)
207 $(MAKE) -C $(basename $@) all PRECHECK=$(PRECHECK)
208
209$(LIBN_BUILD): $(LIBC_BUILD) $(LIBS_BUILD)
210 $(MAKE) -C $(basename $@) all PRECHECK=$(PRECHECK)
211
212$(LIBS_BUILD): $(LIBC_BUILD)
213 $(MAKE) -C $(basename $@) all PRECHECK=$(PRECHECK)
214
215$(LIBC_BUILD):
216 $(MAKE) -C $(basename $@) all PRECHECK=$(PRECHECK)
Note: See TracBrowser for help on using the repository browser.