source: mainline/uspace/Makefile@ 0fe0f32

lfn serial ticket/834-toolchain-update topic/msim-upgrade topic/simplify-dev-export
Last change on this file since 0fe0f32 was a57a79c, checked in by Dzejrou <dzejrou@…>, 7 years ago

cpp: fixed issues created by the addition of abi/_bits, changes to the build system and added <cwchar> that was made possible by the addition of <wchar.h> to libc

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