source: mainline/uspace/Makefile@ 66b3e0b

lfn serial ticket/834-toolchain-update topic/msim-upgrade topic/simplify-dev-export
Last change on this file since 66b3e0b was 66b3e0b, checked in by Jan Kolarik <kolarik@…>, 11 years ago

In the middle of device hardware initialization

  • 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 \
[a9763c6]47 app/fontviewer \
[b3d513f]48 app/getterm \
[34b172d]49 app/hdisk \
[b3d513f]50 app/init \
[b4ec1ea]51 app/inet \
[1e9f8ab]52 app/kill \
[c4faa0c]53 app/killall \
[6fa9a99d]54 app/kio \
[32d96e1]55 app/loc \
[669f5cae]56 app/logset \
[a6bdccc]57 app/mixerctl \
[dccf721]58 app/mkfat \
[e872326]59 app/mkexfat \
[7a46bfe]60 app/mkmfs \
[7e69e0e]61 app/modplay \
[01a7aa1]62 app/nterm \
[b3d513f]63 app/redir \
[94b39ba]64 app/rcutest \
[a440a0f]65 app/rcubench \
[09ababb7]66 app/sbi \
[c0e53ff]67 app/sportdmp \
[3d482e0]68 app/stats \
[336db295]69 app/taskdump \
[b3d513f]70 app/tester \
[6b3e7f7f]71 app/testread \
[2966122]72 app/testwrit \
[b3d513f]73 app/tetris \
74 app/trace \
[5c058d50]75 app/top \
[ff042c0]76 app/untar \
[07b9203e]77 app/usbinfo \
[57c7050]78 app/vuhid \
[a79d88d]79 app/netecho \
[fada53f]80 app/netspeed \
[a79d88d]81 app/nettest1 \
82 app/nettest2 \
[92e717c]83 app/nettest3 \
[6bcecc2]84 app/nic \
[a79d88d]85 app/ping \
[a3eeef45]86 app/sysinfo \
[4880210]87 app/mkbd \
[fd37139d]88 app/date \
[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 \
96 srv/audio/hound \
[d3a8e47]97 srv/clipboard \
[32d96e1]98 srv/locsrv \
[1f2dd20]99 srv/logger \
[0caa075e]100 srv/klog \
[e4c4247]101 srv/devman \
[b3d513f]102 srv/loader \
[695b6ff]103 srv/net/dhcp \
[31e9fe0]104 srv/net/dnsrsrv \
[69a93df7]105 srv/net/ethip \
[b4ec1ea]106 srv/net/inetsrv \
[606c369]107 srv/net/loopip \
[7af0cc5]108 srv/net/nconfsrv \
[2093fbe]109 srv/net/slip \
[69a93df7]110 srv/net/tcp \
111 srv/net/udp \
[b3d513f]112 srv/ns \
[a074b4f]113 srv/taskmon \
[b3d513f]114 srv/vfs \
[9904eb90]115 srv/bd/sata_bd \
[2a18193c]116 srv/bd/file_bd \
[e7645de]117 srv/bd/rd \
[975e7e9]118 srv/bd/part/guid_part \
[b3d513f]119 srv/bd/part/mbr_part \
[db9aa04]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 \
[6d5e378]128 srv/hid/compositor \
[c6f08726]129 srv/hid/console \
[527298a]130 srv/hid/s3c24xx_ts \
[f66ca57f]131 srv/hid/isdv4_tablet \
[5f88293]132 srv/hid/input \
[6d5e378]133 srv/hid/output \
[21a9869]134 srv/hid/remcons \
[a9b5b5f]135 srv/hw/char/s3c24xx_uart \
[bd0e6a1]136 srv/hid/rfb \
[b229062]137 drv/audio/hdaudio \
[2fc487f]138 drv/audio/sb16 \
[2a37b9f]139 drv/root/root \
140 drv/root/virt \
[9904eb90]141 drv/block/ahci \
[66cb7a2]142 drv/block/ata_bd \
[4d8e203]143 drv/char/i8042 \
[312e5ff]144 drv/char/pl050 \
[38994e3]145 drv/char/ps2mouse \
[4d8e203]146 drv/char/xtkbd \
[5203e256]147 drv/test/test1 \
148 drv/test/test2 \
149 drv/test/test3 \
[6d5e378]150 drv/fb/kfb \
[5203e256]151 drv/bus/usb/ehci \
152 drv/bus/usb/ohci \
153 drv/bus/usb/uhci \
154 drv/bus/usb/uhcirh \
155 drv/bus/usb/usbflbk \
156 drv/bus/usb/usbhid \
157 drv/bus/usb/usbhub \
158 drv/bus/usb/usbmast \
159 drv/bus/usb/usbmid \
[00d7e1b]160 drv/bus/usb/vhc \
[66b3e0b]161 drv/bus/usb/ar9271 \
[9916841]162 drv/nic/ne2k \
[f0b74b2]163 drv/nic/e1k \
[fef725d]164 drv/nic/rtl8139 \
[312e5ff]165 drv/nic/rtl8169 \
166 drv/platform/icp
[14f1db0]167
[1b1164e8]168## Platform-specific hardware support
169#
[c2ee1c5c]170
[2e231aba]171ifeq ($(UARCH), $(filter $(UARCH),amd64 ia32 ia64))
[acc7ce4]172 DIRS += \
[2a37b9f]173 drv/platform/pc \
[5203e256]174 drv/bus/pci/pciintel \
175 drv/bus/isa \
176 drv/char/ns8250 \
[5ef13847]177 drv/time/cmos-rtc \
[acc7ce4]178 srv/hw/irc/apic \
179 srv/hw/irc/i8259
[37458472]180endif
[5a4c754]181
[c501bc4]182ifeq ($(UARCH), $(filter $(UARCH),mips32 mips32eb))
183 DIRS += \
[2a37b9f]184 drv/platform/malta \
[c501bc4]185 drv/bus/pci/pciintel \
186 drv/bus/isa
187endif
188
[3a2f8aa]189ifeq ($(UARCH),ppc32)
[73d288c]190 DIRS += \
[2a37b9f]191 drv/platform/mac \
[cb3dbb63]192 drv/bus/pci/pciintel \
[73d288c]193 srv/hw/bus/cuda_adb
[3a2f8aa]194endif
195
[3e5a814]196ifeq ($(UARCH),sparc64)
[42742c5a]197 DIRS += \
[acc7ce4]198 srv/hw/irc/obio
[3e5a814]199endif
200
[09a0a8f0]201ifeq ($(UARCH),arm32)
202 DIRS += \
[2a37b9f]203 drv/platform/amdm37x \
[75fe97b]204 drv/fb/amdm37x_dispc \
205 srv/hw/irc/icp-ic
[09a0a8f0]206endif
207
[1b1164e8]208## System libraries
209#
210
[63f8966]211LIBC = lib/c
[e035612]212LIBS = \
[63f8966]213 lib/fs \
214 lib/block \
[36a75a2]215 lib/clui \
[22cf42d9]216 lib/fmtutil \
[0feaae4]217 lib/scsi \
[a047aaa]218 lib/compress \
[e035612]219 lib/softint \
[e5773c6]220 lib/softfloat \
[c47e1a8]221 lib/drv \
[6d5e378]222 lib/graph \
223 lib/gui \
[a6bdccc]224 lib/hound \
[d7b7f5e]225 lib/http \
[6d5e378]226 lib/softrend \
227 lib/draw \
[8620b2f]228 lib/math \
[3bd76491]229 lib/net \
[00d7e1b]230 lib/nic \
[eb91db7]231 lib/ext4 \
[7e69e0e]232 lib/trackmod \
[d7b7f5e]233 lib/uri \
[a82d33d]234 lib/urcu \
[8d6c1f1]235 lib/usb \
236 lib/usbhost \
237 lib/usbdev \
238 lib/usbhid \
[2af29ed]239 lib/usbvirt \
[ea6c838]240 lib/pcm \
[865b981]241 lib/pcut \
[681a985]242 lib/bithenge \
[d3a92c87]243 lib/posix \
[34b172d]244 lib/mbr \
[cbd64057]245 lib/gpt
[e035612]246
247LIBC_BUILD = $(addsuffix .build,$(LIBC))
248LIBS_BUILD = $(addsuffix .build,$(LIBS))
[14f1db0]249LIBN_BUILD = $(addsuffix .build,$(LIBN))
250BUILDS := $(addsuffix .build,$(DIRS))
[01579ad]251BUILDS_TESTS := $(addsuffix .build-test,$(DIRS) $(LIBS) lib/c)
[e035612]252
[14f1db0]253CLEANS := $(addsuffix .clean,$(DIRS)) $(addsuffix .clean,$(LIBN)) $(addsuffix .clean,$(LIBS)) $(addsuffix .clean,$(LIBC))
[1b1164e8]254
[14f1db0]255.PHONY: all $(LIBC_BUILD) $(LIBS_BUILD) $(LIBN_BUILD) $(BUILDS) $(CLEANS) clean
[c2ee1c5c]256
[01579ad]257all: $(BUILDS) $(BUILDS_TESTS)
258
259$(BUILDS_TESTS): $(BUILDS)
260 $(MAKE) -C $(basename $@) all-test PRECHECK=$(PRECHECK)
[c2ee1c5c]261
[25b0e6a]262clean: $(CLEANS)
[c2ee1c5c]263
[25b0e6a]264$(CLEANS):
[24d6efc]265 -$(MAKE) -C $(basename $@) clean
[c2ee1c5c]266
[14f1db0]267$(BUILDS): $(LIBC_BUILD) $(LIBS_BUILD) $(LIBN_BUILD)
268 $(MAKE) -C $(basename $@) all PRECHECK=$(PRECHECK)
269
270$(LIBN_BUILD): $(LIBC_BUILD) $(LIBS_BUILD)
[8786aa5]271 $(MAKE) -C $(basename $@) all PRECHECK=$(PRECHECK)
[e035612]272
273$(LIBS_BUILD): $(LIBC_BUILD)
[8786aa5]274 $(MAKE) -C $(basename $@) all PRECHECK=$(PRECHECK)
[e035612]275
276$(LIBC_BUILD):
[8786aa5]277 $(MAKE) -C $(basename $@) all PRECHECK=$(PRECHECK)
Note: See TracBrowser for help on using the repository browser.