source: mainline/uspace/Makefile@ 31872f7

lfn serial ticket/834-toolchain-update topic/msim-upgrade topic/simplify-dev-export
Last change on this file since 31872f7 was 1edd6d0, checked in by Jiri Svoboda <jiri@…>, 7 years ago

Add separate IPC test service. Keep ns_ping for now for the sake of comparison.

  • Property mode set to 100644
File size: 6.0 KB
RevLine 
[c2ee1c5c]1#
[df4ed85]2# Copyright (c) 2005 Martin Decky
[c2ee1c5c]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
[177e4ea]29-include ../Makefile.common
[9a0367f]30-include ../Makefile.config
[c2ee1c5c]31
[1b1164e8]32## Common binaries
33#
34
[ecfd7e5]35DIRS = \
[a047aaa]36 app/barber \
[b3d513f]37 app/bdsh \
[a54bd98]38 app/bithenge \
[32d3ebf]39 app/blkdump \
[423f64f]40 app/bnchmark \
[b79903b]41 app/contacts \
[92c1680]42 app/corecfg \
[edbad13a]43 app/cpptest \
[7beb220]44 app/devctl \
[5d1cb8a]45 app/dnscfg \
[31e9fe0]46 app/dnsres \
[d7b7f5e]47 app/download \
[b3d513f]48 app/edit \
[e96047c]49 app/fdisk \
[a9763c6]50 app/fontviewer \
[b3d513f]51 app/getterm \
[b93ea46a]52 app/gunzip \
[b3d513f]53 app/init \
[b4ec1ea]54 app/inet \
[1e9f8ab]55 app/kill \
[c4faa0c]56 app/killall \
[6fa9a99d]57 app/kio \
[32d96e1]58 app/loc \
[669f5cae]59 app/logset \
[a6bdccc]60 app/mixerctl \
[dccf721]61 app/mkfat \
[e872326]62 app/mkexfat \
[aab85d90]63 app/mkext4 \
[7a46bfe]64 app/mkmfs \
[7e69e0e]65 app/modplay \
[5147ff1]66 app/netecho \
[01a7aa1]67 app/nterm \
[af2d3e3]68 app/perf \
[b3d513f]69 app/redir \
[09ababb7]70 app/sbi \
[c0e53ff]71 app/sportdmp \
[3d482e0]72 app/stats \
[336db295]73 app/taskdump \
[b3d513f]74 app/tester \
[6b3e7f7f]75 app/testread \
[209cd41]76 app/testrunner \
[2966122]77 app/testwrit \
[b3d513f]78 app/tetris \
[81ee1009]79 app/tmon \
[b3d513f]80 app/trace \
[5c058d50]81 app/top \
[ff042c0]82 app/untar \
[07b9203e]83 app/usbinfo \
[db9c889]84 app/vol \
[57c7050]85 app/vuhid \
[6bcecc2]86 app/nic \
[a79d88d]87 app/ping \
[9621c7d]88 app/pkg \
[a3eeef45]89 app/sysinfo \
[3a34852]90 app/sysinst \
[4880210]91 app/mkbd \
[fd37139d]92 app/date \
[bdfdc51c]93 app/vcalc \
[6d5e378]94 app/vdemo \
[3e896e1]95 app/viewer \
[6d5e378]96 app/vlaunch \
97 app/vterm \
[66366470]98 app/df \
[a6bdccc]99 app/wavplay \
100 app/websrv \
[864762a]101 app/wifi_supplicant \
[a6bdccc]102 srv/audio/hound \
[d3a8e47]103 srv/clipboard \
[32d96e1]104 srv/locsrv \
[1f2dd20]105 srv/logger \
[0caa075e]106 srv/klog \
[e4c4247]107 srv/devman \
[b3d513f]108 srv/loader \
[695b6ff]109 srv/net/dhcp \
[31e9fe0]110 srv/net/dnsrsrv \
[69a93df7]111 srv/net/ethip \
[b4ec1ea]112 srv/net/inetsrv \
[606c369]113 srv/net/loopip \
[7af0cc5]114 srv/net/nconfsrv \
[2093fbe]115 srv/net/slip \
[69a93df7]116 srv/net/tcp \
117 srv/net/udp \
[b3d513f]118 srv/ns \
[a074b4f]119 srv/taskmon \
[b3d513f]120 srv/vfs \
[9904eb90]121 srv/bd/sata_bd \
[2a18193c]122 srv/bd/file_bd \
[e7645de]123 srv/bd/rd \
[1356f85a]124 srv/bd/vbd \
[db9aa04]125 srv/fs/exfat \
[48e3190]126 srv/fs/udf \
[c0cdcaf]127 srv/fs/fat \
[a26895d]128 srv/fs/cdfs \
[d5cdffe]129 srv/fs/tmpfs \
[7a46bfe]130 srv/fs/mfs \
[15f3c3f]131 srv/fs/locfs \
[d3a9ae74]132 srv/fs/ext4fs \
[bfcde8d]133 srv/volsrv \
[6d5e378]134 srv/hid/compositor \
[c6f08726]135 srv/hid/console \
[527298a]136 srv/hid/s3c24xx_ts \
[f66ca57f]137 srv/hid/isdv4_tablet \
[5f88293]138 srv/hid/input \
[6d5e378]139 srv/hid/output \
[21a9869]140 srv/hid/remcons \
[a9b5b5f]141 srv/hw/char/s3c24xx_uart \
[bd0e6a1]142 srv/hid/rfb \
[57914494]143 srv/test/chardev-test \
[1edd6d0]144 srv/test/ipc-test \
[b229062]145 drv/audio/hdaudio \
[2fc487f]146 drv/audio/sb16 \
[2a37b9f]147 drv/root/root \
148 drv/root/virt \
[9904eb90]149 drv/block/ahci \
[66cb7a2]150 drv/block/ata_bd \
[f2e78b0]151 drv/block/ddisk \
[53b9f2c]152 drv/block/usbmast \
[e27e36e]153 drv/bus/adb/cuda_adb \
[4c363fa2]154 drv/bus/isa \
155 drv/bus/pci/pciintel \
[5203e256]156 drv/bus/usb/ehci \
157 drv/bus/usb/ohci \
158 drv/bus/usb/uhci \
[b7e1458]159 drv/bus/usb/usbdiag \
[5203e256]160 drv/bus/usb/usbflbk \
161 drv/bus/usb/usbhub \
162 drv/bus/usb/usbmid \
[00d7e1b]163 drv/bus/usb/vhc \
[5119d34]164 drv/bus/usb/xhci \
[4c363fa2]165 drv/char/i8042 \
[f3365b6]166 drv/char/msim-con \
[4c363fa2]167 drv/char/ns8250 \
168 drv/char/pl050 \
[6d15572]169 drv/char/ski-con \
[7aa94304]170 drv/char/sun4v-con \
[4c363fa2]171 drv/fb/amdm37x_dispc \
172 drv/fb/kfb \
[a2afd8f]173 drv/hid/adb-kbd \
174 drv/hid/adb-mouse \
[d420b22]175 drv/hid/atkbd \
176 drv/hid/ps2mouse \
[53b9f2c]177 drv/hid/usbhid \
[d420b22]178 drv/hid/xtkbd \
[b446b02]179 drv/intctl/apic \
180 drv/intctl/i8259 \
[a416d070]181 drv/intctl/icp-ic \
[be1b1e68]182 drv/intctl/obio \
[9916841]183 drv/nic/ne2k \
[f0b74b2]184 drv/nic/e1k \
[fef725d]185 drv/nic/rtl8139 \
[312e5ff]186 drv/nic/rtl8169 \
[864762a]187 drv/nic/ar9271 \
[033ebc25]188 drv/nic/virtio-net \
[4c363fa2]189 drv/platform/amdm37x \
190 drv/platform/icp \
191 drv/platform/mac \
192 drv/platform/malta \
193 drv/platform/msim \
194 drv/platform/pc \
[6d15572]195 drv/platform/ski \
[7aa94304]196 drv/platform/sun4v \
[53b9f2c]197 drv/test/test1 \
198 drv/test/test2 \
199 drv/test/test3 \
[4c363fa2]200 drv/time/cmos-rtc
[3a2f8aa]201
[4c363fa2]202## sun4u driver won't compile on 32-bit targets
[3e5a814]203ifeq ($(UARCH),sparc64)
[42742c5a]204 DIRS += \
[4c363fa2]205 drv/platform/sun4u
[09a0a8f0]206endif
207
[7c4b26c]208## Dynamic linking tests
209#
210ifeq ($(CONFIG_BUILD_SHARED_LIBS),y)
211 DIRS += \
212 app/dltest \
213 app/dltests
214endif
215
[1b1164e8]216## System libraries
217#
218
[4f674d7]219BASE_LIBS = \
220 lib/c \
[a57a79c]221 lib/cpp \
[24fda5e]222 lib/untar
[4f674d7]223
[e035612]224LIBS = \
[63f8966]225 lib/fs \
226 lib/block \
[1dcc0b9]227 lib/crypto \
[36a75a2]228 lib/clui \
[9182e86f]229 lib/dltest \
[e96047c]230 lib/fdisk \
[22cf42d9]231 lib/fmtutil \
[0feaae4]232 lib/scsi \
[b79903b]233 lib/sif \
[a047aaa]234 lib/compress \
[c47e1a8]235 lib/drv \
[6d5e378]236 lib/graph \
237 lib/gui \
[a6bdccc]238 lib/hound \
[d7b7f5e]239 lib/http \
[6d5e378]240 lib/softrend \
241 lib/draw \
[1356f85a]242 lib/label \
[8620b2f]243 lib/math \
[cecba66e]244 lib/minix \
[2989c7e]245 lib/nettl \
[00d7e1b]246 lib/nic \
[eb91db7]247 lib/ext4 \
[7e69e0e]248 lib/trackmod \
[d7b7f5e]249 lib/uri \
[8d6c1f1]250 lib/usb \
251 lib/usbhost \
252 lib/usbdev \
253 lib/usbhid \
[2af29ed]254 lib/usbvirt \
[ea6c838]255 lib/pcm \
[865b981]256 lib/pcut \
[681a985]257 lib/bithenge \
[d3a92c87]258 lib/posix \
[00192cde]259 lib/ieee80211 \
260 lib/virtio
[e035612]261
[4f674d7]262BASE_BUILDS := $(addsuffix .build,$(BASE_LIBS))
263BUILDS := $(addsuffix .build,$(DIRS) $(LIBS))
264BUILDS_TESTS := $(addsuffix .build-test,$(DIRS) $(LIBS) $(BASE_LIBS))
265DEPS = $(addsuffix /deps.mk,$(DIRS) $(LIBS))
266CLEANS := $(addsuffix .clean,$(DIRS) $(LIBS) $(BASE_LIBS))
[1b1164e8]267
[2660ee3]268.PHONY: all $(BASE_BUILDS) $(BUILDS) $(BUILDS_TESTS) $(CLEANS) clean export
[c2ee1c5c]269
[01579ad]270all: $(BUILDS) $(BUILDS_TESTS)
271
[4f674d7]272$(BUILDS_TESTS): $(BASE_BUILDS) $(BUILDS)
[e540bc87]273 $(MAKE) -r -C $(basename $@) all-test PRECHECK=$(PRECHECK)
[c2ee1c5c]274
[2660ee3]275export: lib/posix.build lib/math.build lib/clui.build
276 $(MAKE) -r -C lib/posix export EXPORT_DIR=$(EXPORT_DIR)
277
[25b0e6a]278clean: $(CLEANS)
[68825c3]279 find lib app drv srv -name '*.o' -follow -exec rm \{\} \;
280 find lib app drv srv -name '*.lo' -follow -exec rm \{\} \;
281 find lib app drv srv -name '*.d' -follow -exec rm \{\} \;
[a5c468e]282 rm -fr export
[c2ee1c5c]283
[25b0e6a]284$(CLEANS):
[7654f3e]285 -$(MAKE) -r -C $(basename $@) fasterclean
[c2ee1c5c]286
[4f674d7]287$(BASE_BUILDS) $(BUILDS):
[e540bc87]288 $(MAKE) -r -C $(basename $@) all PRECHECK=$(PRECHECK)
[14f1db0]289
[4f674d7]290$(DEPS): %/deps.mk: %/Makefile
291 $(MAKE) -r -C $(@D) deps.mk SELF_TARGET="$(@D).build"
[e035612]292
[4f674d7]293$(BUILDS): $(BASE_BUILDS)
294
295-include $(DEPS)
Note: See TracBrowser for help on using the repository browser.