source: mainline/uspace/Makefile@ 516e780

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

Basic Ext4 filesystem creation (can only create Ext2-old, 1K blocks).

  • 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 \
[b3d513f]68 app/redir \
[94b39ba]69 app/rcutest \
[09ababb7]70 app/sbi \
[c0e53ff]71 app/sportdmp \
[3d482e0]72 app/stats \
[336db295]73 app/taskdump \
[b3d513f]74 app/tester \
[6b3e7f7f]75 app/testread \
[2966122]76 app/testwrit \
[b3d513f]77 app/tetris \
[81ee1009]78 app/tmon \
[b3d513f]79 app/trace \
[5c058d50]80 app/top \
[ff042c0]81 app/untar \
[07b9203e]82 app/usbinfo \
[db9c889]83 app/vol \
[57c7050]84 app/vuhid \
[6bcecc2]85 app/nic \
[a79d88d]86 app/ping \
[9621c7d]87 app/pkg \
[a3eeef45]88 app/sysinfo \
[3a34852]89 app/sysinst \
[4880210]90 app/mkbd \
[fd37139d]91 app/date \
[bdfdc51c]92 app/vcalc \
[6d5e378]93 app/vdemo \
[3e896e1]94 app/viewer \
[6d5e378]95 app/vlaunch \
96 app/vterm \
[66366470]97 app/df \
[a6bdccc]98 app/wavplay \
99 app/websrv \
[864762a]100 app/wifi_supplicant \
[a6bdccc]101 srv/audio/hound \
[d3a8e47]102 srv/clipboard \
[32d96e1]103 srv/locsrv \
[1f2dd20]104 srv/logger \
[0caa075e]105 srv/klog \
[e4c4247]106 srv/devman \
[b3d513f]107 srv/loader \
[695b6ff]108 srv/net/dhcp \
[31e9fe0]109 srv/net/dnsrsrv \
[69a93df7]110 srv/net/ethip \
[b4ec1ea]111 srv/net/inetsrv \
[606c369]112 srv/net/loopip \
[7af0cc5]113 srv/net/nconfsrv \
[2093fbe]114 srv/net/slip \
[69a93df7]115 srv/net/tcp \
116 srv/net/udp \
[b3d513f]117 srv/ns \
[a074b4f]118 srv/taskmon \
[b3d513f]119 srv/vfs \
[9904eb90]120 srv/bd/sata_bd \
[2a18193c]121 srv/bd/file_bd \
[e7645de]122 srv/bd/rd \
[1356f85a]123 srv/bd/vbd \
[db9aa04e]124 srv/fs/exfat \
[48e3190]125 srv/fs/udf \
[c0cdcaf]126 srv/fs/fat \
[a26895d]127 srv/fs/cdfs \
[d5cdffe]128 srv/fs/tmpfs \
[7a46bfe]129 srv/fs/mfs \
[15f3c3f]130 srv/fs/locfs \
[d3a9ae74]131 srv/fs/ext4fs \
[bfcde8d]132 srv/volsrv \
[6d5e378]133 srv/hid/compositor \
[c6f08726]134 srv/hid/console \
[527298a]135 srv/hid/s3c24xx_ts \
[f66ca57f]136 srv/hid/isdv4_tablet \
[5f88293]137 srv/hid/input \
[6d5e378]138 srv/hid/output \
[21a9869]139 srv/hid/remcons \
[a9b5b5f]140 srv/hw/char/s3c24xx_uart \
[bd0e6a1]141 srv/hid/rfb \
[57914494]142 srv/test/chardev-test \
[b229062]143 drv/audio/hdaudio \
[2fc487f]144 drv/audio/sb16 \
[2a37b9f]145 drv/root/root \
146 drv/root/virt \
[9904eb90]147 drv/block/ahci \
[66cb7a2]148 drv/block/ata_bd \
[f2e78b0]149 drv/block/ddisk \
[53b9f2c]150 drv/block/usbmast \
[e27e36e]151 drv/bus/adb/cuda_adb \
[4c363fa2]152 drv/bus/isa \
153 drv/bus/pci/pciintel \
[5203e256]154 drv/bus/usb/ehci \
155 drv/bus/usb/ohci \
156 drv/bus/usb/uhci \
[b7e1458]157 drv/bus/usb/usbdiag \
[5203e256]158 drv/bus/usb/usbflbk \
159 drv/bus/usb/usbhub \
160 drv/bus/usb/usbmid \
[00d7e1b]161 drv/bus/usb/vhc \
[5119d34]162 drv/bus/usb/xhci \
[4c363fa2]163 drv/char/i8042 \
[f3365b6]164 drv/char/msim-con \
[4c363fa2]165 drv/char/ns8250 \
166 drv/char/pl050 \
[6d15572]167 drv/char/ski-con \
[7aa94304]168 drv/char/sun4v-con \
[4c363fa2]169 drv/fb/amdm37x_dispc \
170 drv/fb/kfb \
[a2afd8f]171 drv/hid/adb-kbd \
172 drv/hid/adb-mouse \
[d420b22]173 drv/hid/atkbd \
174 drv/hid/ps2mouse \
[53b9f2c]175 drv/hid/usbhid \
[d420b22]176 drv/hid/xtkbd \
[b446b02]177 drv/intctl/apic \
178 drv/intctl/i8259 \
[a416d070]179 drv/intctl/icp-ic \
[be1b1e68]180 drv/intctl/obio \
[9916841]181 drv/nic/ne2k \
[f0b74b2]182 drv/nic/e1k \
[fef725d]183 drv/nic/rtl8139 \
[312e5ff]184 drv/nic/rtl8169 \
[864762a]185 drv/nic/ar9271 \
[033ebc25]186 drv/nic/virtio-net \
[4c363fa2]187 drv/platform/amdm37x \
188 drv/platform/icp \
189 drv/platform/mac \
190 drv/platform/malta \
191 drv/platform/msim \
192 drv/platform/pc \
[6d15572]193 drv/platform/ski \
[7aa94304]194 drv/platform/sun4v \
[53b9f2c]195 drv/test/test1 \
196 drv/test/test2 \
197 drv/test/test3 \
[4c363fa2]198 drv/time/cmos-rtc
[3a2f8aa]199
[4c363fa2]200## sun4u driver won't compile on 32-bit targets
[3e5a814]201ifeq ($(UARCH),sparc64)
[42742c5a]202 DIRS += \
[4c363fa2]203 drv/platform/sun4u
[09a0a8f0]204endif
205
[7c4b26c]206## Dynamic linking tests
207#
208ifeq ($(CONFIG_BUILD_SHARED_LIBS),y)
209 DIRS += \
210 app/dltest \
211 app/dltests
212endif
213
[1b1164e8]214## System libraries
215#
216
[4f674d7]217BASE_LIBS = \
218 lib/c \
[a57a79c]219 lib/cpp \
[4f674d7]220 lib/softint \
[24fda5e]221 lib/softfloat \
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 \{\} \;
[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# Special case for base libraries.
293lib/c.build: lib/softfloat.build lib/softint.build
294
295$(BUILDS): $(BASE_BUILDS)
296
297-include $(DEPS)
Note: See TracBrowser for help on using the repository browser.