source: mainline/uspace/Makefile@ 490e21b

lfn serial ticket/834-toolchain-update topic/msim-upgrade topic/simplify-dev-export
Last change on this file since 490e21b was 18cc83c, checked in by Vojtech Horky <vojtechhorky@…>, 11 years ago

Merge PCUT unit tests for userspace

Merged from lp:~vojtech-horky/helenos/pcut-testing.

The changeset contains only several tests, mostly to demonstrate how
PCUT could be used.

  • Property mode set to 100644
File size: 5.5 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/bithenge \
38 app/blkdump \
39 app/bnchmark \
40 app/corecfg \
41 app/devctl \
42 app/dnscfg \
43 app/dnsres \
44 app/download \
45 app/edit \
46 app/fontviewer \
47 app/getterm \
48 app/hdisk \
49 app/init \
50 app/inet \
51 app/kill \
52 app/killall \
53 app/kio \
54 app/loc \
55 app/logset \
56 app/mixerctl \
57 app/mkfat \
58 app/mkexfat \
59 app/mkmfs \
60 app/modplay \
61 app/nterm \
62 app/redir \
63 app/sbi \
64 app/sportdmp \
65 app/stats \
66 app/taskdump \
67 app/tester \
68 app/testread \
69 app/testwrit \
70 app/tetris \
71 app/trace \
72 app/top \
73 app/untar \
74 app/usbinfo \
75 app/vuhid \
76 app/netecho \
77 app/netspeed \
78 app/nettest1 \
79 app/nettest2 \
80 app/nettest3 \
81 app/nic \
82 app/ping \
83 app/sysinfo \
84 app/mkbd \
85 app/date \
86 app/vdemo \
87 app/viewer \
88 app/vlaunch \
89 app/vterm \
90 app/df \
91 app/wavplay \
92 app/websrv \
93 srv/audio/hound \
94 srv/clipboard \
95 srv/locsrv \
96 srv/logger \
97 srv/klog \
98 srv/devman \
99 srv/loader \
100 srv/net/dhcp \
101 srv/net/dnsrsrv \
102 srv/net/ethip \
103 srv/net/inetsrv \
104 srv/net/loopip \
105 srv/net/nconfsrv \
106 srv/net/slip \
107 srv/net/tcp \
108 srv/net/udp \
109 srv/ns \
110 srv/taskmon \
111 srv/vfs \
112 srv/bd/sata_bd \
113 srv/bd/file_bd \
114 srv/bd/rd \
115 srv/bd/part/guid_part \
116 srv/bd/part/mbr_part \
117 srv/fs/exfat \
118 srv/fs/udf \
119 srv/fs/fat \
120 srv/fs/cdfs \
121 srv/fs/tmpfs \
122 srv/fs/mfs \
123 srv/fs/locfs \
124 srv/fs/ext4fs \
125 srv/hid/compositor \
126 srv/hid/console \
127 srv/hid/s3c24xx_ts \
128 srv/hid/isdv4_tablet \
129 srv/hid/input \
130 srv/hid/output \
131 srv/hid/remcons \
132 srv/hw/char/s3c24xx_uart \
133 srv/hid/rfb \
134 drv/audio/hdaudio \
135 drv/audio/sb16 \
136 drv/root/root \
137 drv/root/virt \
138 drv/block/ahci \
139 drv/block/ata_bd \
140 drv/char/i8042 \
141 drv/char/pl050 \
142 drv/char/ps2mouse \
143 drv/char/xtkbd \
144 drv/test/test1 \
145 drv/test/test2 \
146 drv/test/test3 \
147 drv/fb/kfb \
148 drv/bus/usb/ehci \
149 drv/bus/usb/ohci \
150 drv/bus/usb/uhci \
151 drv/bus/usb/uhcirh \
152 drv/bus/usb/usbflbk \
153 drv/bus/usb/usbhid \
154 drv/bus/usb/usbhub \
155 drv/bus/usb/usbmast \
156 drv/bus/usb/usbmid \
157 drv/bus/usb/vhc \
158 drv/nic/ne2k \
159 drv/nic/e1k \
160 drv/nic/rtl8139 \
161 drv/nic/rtl8169 \
162 drv/platform/icp
163
164## Platform-specific hardware support
165#
166
167ifeq ($(UARCH), $(filter $(UARCH),amd64 ia32 ia64))
168 DIRS += \
169 drv/platform/pc \
170 drv/bus/pci/pciintel \
171 drv/bus/isa \
172 drv/char/ns8250 \
173 drv/time/cmos-rtc \
174 srv/hw/irc/apic \
175 srv/hw/irc/i8259
176endif
177
178ifeq ($(UARCH), $(filter $(UARCH),mips32 mips32eb))
179 DIRS += \
180 drv/platform/malta \
181 drv/bus/pci/pciintel \
182 drv/bus/isa
183endif
184
185ifeq ($(UARCH),ppc32)
186 DIRS += \
187 drv/platform/mac \
188 drv/bus/pci/pciintel \
189 srv/hw/bus/cuda_adb
190endif
191
192ifeq ($(UARCH),sparc64)
193 DIRS += \
194 srv/hw/irc/obio
195endif
196
197ifeq ($(UARCH),arm32)
198 DIRS += \
199 drv/platform/amdm37x \
200 drv/fb/amdm37x_dispc \
201 srv/hw/irc/icp-ic
202endif
203
204## System libraries
205#
206
207LIBC = lib/c
208LIBS = \
209 lib/fs \
210 lib/block \
211 lib/clui \
212 lib/fmtutil \
213 lib/scsi \
214 lib/softint \
215 lib/softfloat \
216 lib/drv \
217 lib/graph \
218 lib/gui \
219 lib/hound \
220 lib/http \
221 lib/softrend \
222 lib/draw \
223 lib/math \
224 lib/net \
225 lib/nic \
226 lib/ext4 \
227 lib/trackmod \
228 lib/uri \
229 lib/usb \
230 lib/usbhost \
231 lib/usbdev \
232 lib/usbhid \
233 lib/usbvirt \
234 lib/pcm \
235 lib/pcut \
236 lib/bithenge \
237 lib/posix \
238 lib/mbr \
239 lib/gpt
240
241LIBC_BUILD = $(addsuffix .build,$(LIBC))
242LIBS_BUILD = $(addsuffix .build,$(LIBS))
243LIBN_BUILD = $(addsuffix .build,$(LIBN))
244BUILDS := $(addsuffix .build,$(DIRS))
245BUILDS_TESTS := $(addsuffix .build-test,$(DIRS) $(LIBS) lib/c)
246
247CLEANS := $(addsuffix .clean,$(DIRS)) $(addsuffix .clean,$(LIBN)) $(addsuffix .clean,$(LIBS)) $(addsuffix .clean,$(LIBC))
248
249.PHONY: all $(LIBC_BUILD) $(LIBS_BUILD) $(LIBN_BUILD) $(BUILDS) $(CLEANS) clean
250
251all: $(BUILDS) $(BUILDS_TESTS)
252
253$(BUILDS_TESTS): $(BUILDS)
254 $(MAKE) -C $(basename $@) all-test PRECHECK=$(PRECHECK)
255
256clean: $(CLEANS)
257
258$(CLEANS):
259 -$(MAKE) -C $(basename $@) clean
260
261$(BUILDS): $(LIBC_BUILD) $(LIBS_BUILD) $(LIBN_BUILD)
262 $(MAKE) -C $(basename $@) all PRECHECK=$(PRECHECK)
263
264$(LIBN_BUILD): $(LIBC_BUILD) $(LIBS_BUILD)
265 $(MAKE) -C $(basename $@) all PRECHECK=$(PRECHECK)
266
267$(LIBS_BUILD): $(LIBC_BUILD)
268 $(MAKE) -C $(basename $@) all PRECHECK=$(PRECHECK)
269
270$(LIBC_BUILD):
271 $(MAKE) -C $(basename $@) all PRECHECK=$(PRECHECK)
Note: See TracBrowser for help on using the repository browser.