source: mainline/uspace/Makefile@ af2d3e3

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

Fix makefile.

  • Property mode set to 100644
File size: 5.9 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 \
[db9aa04e]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 \
[b229062]144 drv/audio/hdaudio \
[2fc487f]145 drv/audio/sb16 \
[2a37b9f]146 drv/root/root \
147 drv/root/virt \
[9904eb90]148 drv/block/ahci \
[66cb7a2]149 drv/block/ata_bd \
[f2e78b0]150 drv/block/ddisk \
[53b9f2c]151 drv/block/usbmast \
[e27e36e]152 drv/bus/adb/cuda_adb \
[4c363fa2]153 drv/bus/isa \
154 drv/bus/pci/pciintel \
[5203e256]155 drv/bus/usb/ehci \
156 drv/bus/usb/ohci \
157 drv/bus/usb/uhci \
[b7e1458]158 drv/bus/usb/usbdiag \
[5203e256]159 drv/bus/usb/usbflbk \
160 drv/bus/usb/usbhub \
161 drv/bus/usb/usbmid \
[00d7e1b]162 drv/bus/usb/vhc \
[5119d34]163 drv/bus/usb/xhci \
[4c363fa2]164 drv/char/i8042 \
[f3365b6]165 drv/char/msim-con \
[4c363fa2]166 drv/char/ns8250 \
167 drv/char/pl050 \
[6d15572]168 drv/char/ski-con \
[7aa94304]169 drv/char/sun4v-con \
[4c363fa2]170 drv/fb/amdm37x_dispc \
171 drv/fb/kfb \
[a2afd8f]172 drv/hid/adb-kbd \
173 drv/hid/adb-mouse \
[d420b22]174 drv/hid/atkbd \
175 drv/hid/ps2mouse \
[53b9f2c]176 drv/hid/usbhid \
[d420b22]177 drv/hid/xtkbd \
[b446b02]178 drv/intctl/apic \
179 drv/intctl/i8259 \
[a416d070]180 drv/intctl/icp-ic \
[be1b1e68]181 drv/intctl/obio \
[9916841]182 drv/nic/ne2k \
[f0b74b2]183 drv/nic/e1k \
[fef725d]184 drv/nic/rtl8139 \
[312e5ff]185 drv/nic/rtl8169 \
[864762a]186 drv/nic/ar9271 \
[033ebc25]187 drv/nic/virtio-net \
[4c363fa2]188 drv/platform/amdm37x \
189 drv/platform/icp \
190 drv/platform/mac \
191 drv/platform/malta \
192 drv/platform/msim \
193 drv/platform/pc \
[6d15572]194 drv/platform/ski \
[7aa94304]195 drv/platform/sun4v \
[53b9f2c]196 drv/test/test1 \
197 drv/test/test2 \
198 drv/test/test3 \
[4c363fa2]199 drv/time/cmos-rtc
[3a2f8aa]200
[4c363fa2]201## sun4u driver won't compile on 32-bit targets
[3e5a814]202ifeq ($(UARCH),sparc64)
[42742c5a]203 DIRS += \
[4c363fa2]204 drv/platform/sun4u
[09a0a8f0]205endif
206
[7c4b26c]207## Dynamic linking tests
208#
209ifeq ($(CONFIG_BUILD_SHARED_LIBS),y)
210 DIRS += \
211 app/dltest \
212 app/dltests
213endif
214
[1b1164e8]215## System libraries
216#
217
[4f674d7]218BASE_LIBS = \
219 lib/c \
[a57a79c]220 lib/cpp \
[24fda5e]221 lib/untar
[4f674d7]222
[e035612]223LIBS = \
[63f8966]224 lib/fs \
225 lib/block \
[1dcc0b9]226 lib/crypto \
[36a75a2]227 lib/clui \
[9182e86f]228 lib/dltest \
[e96047c]229 lib/fdisk \
[22cf42d9]230 lib/fmtutil \
[0feaae4]231 lib/scsi \
[b79903b]232 lib/sif \
[a047aaa]233 lib/compress \
[c47e1a8]234 lib/drv \
[6d5e378]235 lib/graph \
236 lib/gui \
[a6bdccc]237 lib/hound \
[d7b7f5e]238 lib/http \
[6d5e378]239 lib/softrend \
240 lib/draw \
[1356f85a]241 lib/label \
[8620b2f]242 lib/math \
[cecba66e]243 lib/minix \
[2989c7e]244 lib/nettl \
[00d7e1b]245 lib/nic \
[eb91db7]246 lib/ext4 \
[7e69e0e]247 lib/trackmod \
[d7b7f5e]248 lib/uri \
[8d6c1f1]249 lib/usb \
250 lib/usbhost \
251 lib/usbdev \
252 lib/usbhid \
[2af29ed]253 lib/usbvirt \
[ea6c838]254 lib/pcm \
[865b981]255 lib/pcut \
[681a985]256 lib/bithenge \
[d3a92c87]257 lib/posix \
[00192cde]258 lib/ieee80211 \
259 lib/virtio
[e035612]260
[4f674d7]261BASE_BUILDS := $(addsuffix .build,$(BASE_LIBS))
262BUILDS := $(addsuffix .build,$(DIRS) $(LIBS))
263BUILDS_TESTS := $(addsuffix .build-test,$(DIRS) $(LIBS) $(BASE_LIBS))
264DEPS = $(addsuffix /deps.mk,$(DIRS) $(LIBS))
265CLEANS := $(addsuffix .clean,$(DIRS) $(LIBS) $(BASE_LIBS))
[1b1164e8]266
[2660ee3]267.PHONY: all $(BASE_BUILDS) $(BUILDS) $(BUILDS_TESTS) $(CLEANS) clean export
[c2ee1c5c]268
[01579ad]269all: $(BUILDS) $(BUILDS_TESTS)
270
[4f674d7]271$(BUILDS_TESTS): $(BASE_BUILDS) $(BUILDS)
[e540bc87]272 $(MAKE) -r -C $(basename $@) all-test PRECHECK=$(PRECHECK)
[c2ee1c5c]273
[2660ee3]274export: lib/posix.build lib/math.build lib/clui.build
275 $(MAKE) -r -C lib/posix export EXPORT_DIR=$(EXPORT_DIR)
276
[25b0e6a]277clean: $(CLEANS)
[68825c3]278 find lib app drv srv -name '*.o' -follow -exec rm \{\} \;
279 find lib app drv srv -name '*.lo' -follow -exec rm \{\} \;
280 find lib app drv srv -name '*.d' -follow -exec rm \{\} \;
[a5c468e]281 rm -fr export
[c2ee1c5c]282
[25b0e6a]283$(CLEANS):
[7654f3e]284 -$(MAKE) -r -C $(basename $@) fasterclean
[c2ee1c5c]285
[4f674d7]286$(BASE_BUILDS) $(BUILDS):
[e540bc87]287 $(MAKE) -r -C $(basename $@) all PRECHECK=$(PRECHECK)
[14f1db0]288
[4f674d7]289$(DEPS): %/deps.mk: %/Makefile
290 $(MAKE) -r -C $(@D) deps.mk SELF_TARGET="$(@D).build"
[e035612]291
[4f674d7]292$(BUILDS): $(BASE_BUILDS)
293
294-include $(DEPS)
Note: See TracBrowser for help on using the repository browser.