source: mainline/uspace/Makefile@ 2896ff6

lfn serial ticket/834-toolchain-update topic/msim-upgrade topic/simplify-dev-export
Last change on this file since 2896ff6 was 95c675b, checked in by Ondřej Hlavatý <aearsis@…>, 8 years ago

Merge mainline

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