source: mainline/uspace/Makefile@ 2c49b81b

lfn serial ticket/834-toolchain-update topic/msim-upgrade topic/simplify-dev-export
Last change on this file since 2c49b81b was 42d47f8, checked in by Vojtech Horky <vojtechhorky@…>, 14 years ago

Removed virtusbkbd application

Superseeded by vuh.

  • 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/edit \
38 app/getterm \
39 app/init \
40 app/kill \
41 app/killall \
42 app/klog \
43 app/mkfat \
44 app/redir \
45 app/sbi \
46 app/stats \
47 app/taskdump \
48 app/tester \
49 app/tetris \
50 app/trace \
51 app/top \
52 app/usbinfo \
53 app/vuhid \
54 app/netecho \
55 app/nettest1 \
56 app/nettest2 \
57 app/ping \
58 app/websrv \
59 app/sysinfo \
60 srv/clip \
61 srv/devmap \
62 srv/devman \
63 srv/loader \
64 srv/ns \
65 srv/taskmon \
66 srv/vfs \
67 srv/bd/ata_bd \
68 srv/bd/file_bd \
69 srv/bd/gxe_bd \
70 srv/bd/rd \
71 srv/bd/part/guid_part \
72 srv/bd/part/mbr_part \
73 srv/fs/fat \
74 srv/fs/tmpfs \
75 srv/fs/devfs \
76 srv/hid/adb_mouse \
77 srv/hid/char_mouse \
78 srv/hid/s3c24xx_ts \
79 srv/hid/fb \
80 srv/hid/kbd \
81 srv/hw/char/i8042 \
82 srv/hw/char/s3c24xx_uart \
83 srv/hw/netif/ne2000 \
84 srv/net/netif/lo \
85 srv/net/il/arp \
86 srv/net/il/ip \
87 srv/net/tl/icmp \
88 srv/net/tl/udp \
89 srv/net/tl/tcp \
90 srv/net/net \
91 drv/root \
92 drv/rootvirt \
93 drv/test1 \
94 drv/test2
95
96## Networking
97#
98
99DIRS += \
100 srv/net/nil/eth \
101 srv/net/nil/nildummy
102
103## Platform-specific hardware support
104#
105
106ifneq ($(UARCH),abs32le)
107 DIRS += srv/hid/console
108endif
109
110ifeq ($(UARCH),amd64)
111 DIRS += \
112 drv/rootpc \
113 drv/pciintel \
114 drv/isa \
115 drv/ns8250 \
116 srv/hw/irc/apic \
117 srv/hw/irc/i8259 \
118 drv/ehci-hcd \
119 drv/ohci \
120 drv/uhci-hcd \
121 drv/uhci-rhd \
122 drv/usbflbk \
123 drv/usbkbd \
124 drv/usbhid \
125 drv/usbhub \
126 drv/usbmast \
127 drv/usbmid \
128 drv/usbmouse \
129 drv/vhc
130endif
131
132ifeq ($(UARCH),ia32)
133 DIRS += \
134 drv/rootpc \
135 drv/pciintel \
136 drv/isa \
137 drv/ns8250 \
138 srv/hw/irc/apic \
139 srv/hw/irc/i8259 \
140 drv/ehci-hcd \
141 drv/ohci \
142 drv/uhci-hcd \
143 drv/uhci-rhd \
144 drv/usbflbk \
145 drv/usbkbd \
146 drv/usbhid \
147 drv/usbhub \
148 drv/usbmast \
149 drv/usbmid \
150 drv/usbmouse \
151 drv/vhc
152endif
153
154ifeq ($(UARCH),ppc32)
155 DIRS += srv/hw/bus/cuda_adb
156endif
157
158ifeq ($(UARCH),sparc64)
159 DIRS += \
160 srv/hw/irc/fhc \
161 srv/hw/irc/obio
162endif
163
164## System libraries
165#
166
167LIBC = lib/c
168LIBS = \
169 lib/fs \
170 lib/block \
171 lib/clui \
172 lib/softint \
173 lib/softfloat \
174 lib/drv \
175 lib/packet \
176 lib/net
177
178ifeq ($(UARCH),amd64)
179 LIBS += lib/usb
180 LIBS += lib/usbvirt
181endif
182
183ifeq ($(UARCH),ia32)
184 LIBS += lib/usb
185 LIBS += lib/usbvirt
186endif
187
188LIBC_BUILD = $(addsuffix .build,$(LIBC))
189LIBS_BUILD = $(addsuffix .build,$(LIBS))
190LIBN_BUILD = $(addsuffix .build,$(LIBN))
191BUILDS := $(addsuffix .build,$(DIRS))
192
193CLEANS := $(addsuffix .clean,$(DIRS)) $(addsuffix .clean,$(LIBN)) $(addsuffix .clean,$(LIBS)) $(addsuffix .clean,$(LIBC))
194
195.PHONY: all $(LIBC_BUILD) $(LIBS_BUILD) $(LIBN_BUILD) $(BUILDS) $(CLEANS) clean
196
197all: $(BUILDS)
198
199clean: $(CLEANS)
200
201$(CLEANS):
202 -$(MAKE) -C $(basename $@) clean
203
204$(BUILDS): $(LIBC_BUILD) $(LIBS_BUILD) $(LIBN_BUILD)
205 $(MAKE) -C $(basename $@) all PRECHECK=$(PRECHECK)
206
207$(LIBN_BUILD): $(LIBC_BUILD) $(LIBS_BUILD)
208 $(MAKE) -C $(basename $@) all PRECHECK=$(PRECHECK)
209
210$(LIBS_BUILD): $(LIBC_BUILD)
211 $(MAKE) -C $(basename $@) all PRECHECK=$(PRECHECK)
212
213$(LIBC_BUILD):
214 $(MAKE) -C $(basename $@) all PRECHECK=$(PRECHECK)
Note: See TracBrowser for help on using the repository browser.