source: mainline/uspace/Makefile@ e1c0260

lfn serial ticket/834-toolchain-update topic/msim-upgrade topic/simplify-dev-export
Last change on this file since e1c0260 was 9e279c4, checked in by Jan Vesely <jano.vesely@…>, 13 years ago

Merge lsusb to usbinfo.

Use -l or —list to get the list.

  • Property mode set to 100644
File size: 4.7 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/devctl \
40 app/edit \
41 app/ext2info \
42 app/getterm \
43 app/init \
44 app/inet \
45 app/kill \
46 app/killall \
47 app/klog \
48 app/loc \
49 app/mkfat \
50 app/mkexfat \
51 app/mkmfs \
52 app/nterm \
53 app/redir \
54 app/sbi \
55 app/sportdmp \
56 app/stats \
57 app/taskdump \
58 app/tester \
59 app/testread \
60 app/tetris \
61 app/trace \
62 app/top \
63 app/usbinfo \
64 app/vuhid \
65 app/netecho \
66 app/nettest1 \
67 app/nettest2 \
68 app/nettest3 \
69 app/ping \
70 app/sysinfo \
71 app/mkbd \
72 app/websrv \
73 srv/clipboard \
74 srv/locsrv \
75 srv/devman \
76 srv/loader \
77 srv/net/ethip \
78 srv/net/inetsrv \
79 srv/net/loopip \
80 srv/net/tcp \
81 srv/net/udp \
82 srv/ns \
83 srv/taskmon \
84 srv/vfs \
85 srv/bd/ata_bd \
86 srv/bd/sata_bd \
87 srv/bd/file_bd \
88 srv/bd/gxe_bd \
89 srv/bd/rd \
90 srv/bd/part/guid_part \
91 srv/bd/part/mbr_part \
92 srv/fs/exfat \
93 srv/fs/fat \
94 srv/fs/cdfs \
95 srv/fs/tmpfs \
96 srv/fs/mfs \
97 srv/fs/locfs \
98 srv/fs/ext2fs \
99 srv/hid/console \
100 srv/hid/s3c24xx_ts \
101 srv/hid/fb \
102 srv/hid/input \
103 srv/hid/remcons \
104 srv/hw/char/s3c24xx_uart \
105 drv/infrastructure/root \
106 drv/infrastructure/rootvirt \
107 drv/block/ahci \
108 drv/char/i8042 \
109 drv/char/ps2mouse \
110 drv/char/xtkbd \
111 drv/test/test1 \
112 drv/test/test2 \
113 drv/test/test3 \
114 drv/bus/usb/ehci \
115 drv/bus/usb/ohci \
116 drv/bus/usb/uhci \
117 drv/bus/usb/uhcirh \
118 drv/bus/usb/usbflbk \
119 drv/bus/usb/usbhid \
120 drv/bus/usb/usbhub \
121 drv/bus/usb/usbmast \
122 drv/bus/usb/usbmid \
123 drv/bus/usb/vhc \
124 drv/nic/ne2k \
125 drv/nic/e1k \
126 drv/nic/rtl8139
127
128ifeq ($(CONFIG_PCC),y)
129DIRS += \
130 app/cc \
131 app/ccom \
132 app/ccom/mkext \
133 app/cpp
134endif
135
136ifeq ($(CONFIG_BINUTILS),y)
137DIRS += \
138 app/binutils
139endif
140
141ifeq ($(CONFIG_MSIM),y)
142DIRS += \
143 app/msim
144endif
145
146## Platform-specific hardware support
147#
148
149ifeq ($(UARCH),amd64)
150 DIRS += \
151 drv/infrastructure/rootpc \
152 drv/bus/pci/pciintel \
153 drv/bus/isa \
154 drv/char/ns8250 \
155 srv/hw/irc/apic \
156 srv/hw/irc/i8259
157endif
158
159ifeq ($(UARCH),ia32)
160 DIRS += \
161 drv/infrastructure/rootpc \
162 drv/bus/pci/pciintel \
163 drv/bus/isa \
164 drv/char/ns8250 \
165 srv/hw/irc/apic \
166 srv/hw/irc/i8259
167endif
168
169ifeq ($(UARCH),ppc32)
170 DIRS += \
171 drv/infrastructure/rootmac \
172 drv/bus/pci/pciintel \
173 srv/hw/bus/cuda_adb
174endif
175
176ifeq ($(UARCH),sparc64)
177 DIRS += \
178 srv/hw/irc/obio
179endif
180
181## System libraries
182#
183
184LIBC = lib/c
185LIBS = \
186 lib/fs \
187 lib/block \
188 lib/clui \
189 lib/fmtutil \
190 lib/scsi \
191 lib/softint \
192 lib/softfloat \
193 lib/drv \
194 lib/fb \
195 lib/net \
196 lib/nic \
197 lib/ext2 \
198 lib/usb \
199 lib/usbhost \
200 lib/usbdev \
201 lib/usbhid \
202 lib/usbvirt \
203 lib/posix
204
205LIBC_BUILD = $(addsuffix .build,$(LIBC))
206LIBS_BUILD = $(addsuffix .build,$(LIBS))
207LIBN_BUILD = $(addsuffix .build,$(LIBN))
208BUILDS := $(addsuffix .build,$(DIRS))
209
210CLEANS := $(addsuffix .clean,$(DIRS)) $(addsuffix .clean,$(LIBN)) $(addsuffix .clean,$(LIBS)) $(addsuffix .clean,$(LIBC))
211
212.PHONY: all $(LIBC_BUILD) $(LIBS_BUILD) $(LIBN_BUILD) $(BUILDS) $(CLEANS) clean
213
214all: $(BUILDS)
215
216clean: $(CLEANS)
217
218$(CLEANS):
219 -$(MAKE) -C $(basename $@) clean
220
221$(BUILDS): $(LIBC_BUILD) $(LIBS_BUILD) $(LIBN_BUILD)
222 $(MAKE) -C $(basename $@) all PRECHECK=$(PRECHECK)
223
224$(LIBN_BUILD): $(LIBC_BUILD) $(LIBS_BUILD)
225 $(MAKE) -C $(basename $@) all PRECHECK=$(PRECHECK)
226
227$(LIBS_BUILD): $(LIBC_BUILD)
228 $(MAKE) -C $(basename $@) all PRECHECK=$(PRECHECK)
229
230$(LIBC_BUILD):
231 $(MAKE) -C $(basename $@) all PRECHECK=$(PRECHECK)
Note: See TracBrowser for help on using the repository browser.