source: mainline/uspace/Makefile@ 67fbd5e

lfn serial ticket/834-toolchain-update topic/msim-upgrade topic/simplify-dev-export
Last change on this file since 67fbd5e was 4285851b, checked in by Martin Sucha <sucha14@…>, 13 years ago

Merge netspeed

  • Property mode set to 100644
File size: 5.5 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 = \
[b3d513f]36 app/bdsh \
[a54bd98]37 app/bithenge \
[32d3ebf]38 app/blkdump \
[423f64f]39 app/bnchmark \
[92c1680]40 app/corecfg \
[7beb220]41 app/devctl \
[5d1cb8a]42 app/dnscfg \
[31e9fe0]43 app/dnsres \
[b3d513f]44 app/edit \
45 app/getterm \
46 app/init \
[b4ec1ea]47 app/inet \
[1e9f8ab]48 app/kill \
[c4faa0c]49 app/killall \
[b3d513f]50 app/klog \
[32d96e1]51 app/loc \
[669f5cae]52 app/logset \
[a6bdccc]53 app/mixerctl \
[dccf721]54 app/mkfat \
[e872326]55 app/mkexfat \
[7a46bfe]56 app/mkmfs \
[01a7aa1]57 app/nterm \
[b3d513f]58 app/redir \
[09ababb7]59 app/sbi \
[c0e53ff]60 app/sportdmp \
[3d482e0]61 app/stats \
[336db295]62 app/taskdump \
[b3d513f]63 app/tester \
[6b3e7f7f]64 app/testread \
[2966122]65 app/testwrit \
[b3d513f]66 app/tetris \
67 app/trace \
[5c058d50]68 app/top \
[07b9203e]69 app/usbinfo \
[57c7050]70 app/vuhid \
[a79d88d]71 app/netecho \
[fada53f]72 app/netspeed \
[a79d88d]73 app/nettest1 \
74 app/nettest2 \
[92e717c]75 app/nettest3 \
[a79d88d]76 app/ping \
[1d24ad3]77 app/ping6 \
[a3eeef45]78 app/sysinfo \
[4880210]79 app/mkbd \
[fd37139d]80 app/date \
[6d5e378]81 app/vdemo \
82 app/vlaunch \
83 app/vterm \
[66366470]84 app/df \
[a6bdccc]85 app/wavplay \
86 app/websrv \
87 srv/audio/hound \
[d3a8e47]88 srv/clipboard \
[32d96e1]89 srv/locsrv \
[1f2dd20]90 srv/logger \
[e4c4247]91 srv/devman \
[b3d513f]92 srv/loader \
[695b6ff]93 srv/net/dhcp \
[31e9fe0]94 srv/net/dnsrsrv \
[69a93df7]95 srv/net/ethip \
[b4ec1ea]96 srv/net/inetsrv \
[606c369]97 srv/net/loopip \
[2093fbe]98 srv/net/slip \
[69a93df7]99 srv/net/tcp \
100 srv/net/udp \
[b3d513f]101 srv/ns \
[a074b4f]102 srv/taskmon \
[b3d513f]103 srv/vfs \
[9904eb90]104 srv/bd/sata_bd \
[2a18193c]105 srv/bd/file_bd \
[e7645de]106 srv/bd/rd \
[975e7e9]107 srv/bd/part/guid_part \
[b3d513f]108 srv/bd/part/mbr_part \
[db9aa04]109 srv/fs/exfat \
[48e3190]110 srv/fs/udf \
[c0cdcaf]111 srv/fs/fat \
[a26895d]112 srv/fs/cdfs \
[d5cdffe]113 srv/fs/tmpfs \
[7a46bfe]114 srv/fs/mfs \
[15f3c3f]115 srv/fs/locfs \
[d3a9ae74]116 srv/fs/ext4fs \
[6d5e378]117 srv/hid/compositor \
[c6f08726]118 srv/hid/console \
[527298a]119 srv/hid/s3c24xx_ts \
[f66ca57f]120 srv/hid/isdv4_tablet \
[5f88293]121 srv/hid/input \
[6d5e378]122 srv/hid/output \
[21a9869]123 srv/hid/remcons \
[a9b5b5f]124 srv/hw/char/s3c24xx_uart \
[bd0e6a1]125 srv/hid/rfb \
[2fc487f]126 drv/audio/sb16 \
[5203e256]127 drv/infrastructure/root \
128 drv/infrastructure/rootvirt \
[9904eb90]129 drv/block/ahci \
[66cb7a2]130 drv/block/ata_bd \
[4d8e203]131 drv/char/i8042 \
[38994e3]132 drv/char/ps2mouse \
[4d8e203]133 drv/char/xtkbd \
[5203e256]134 drv/test/test1 \
135 drv/test/test2 \
136 drv/test/test3 \
[6d5e378]137 drv/fb/kfb \
[5203e256]138 drv/bus/usb/ehci \
139 drv/bus/usb/ohci \
140 drv/bus/usb/uhci \
141 drv/bus/usb/uhcirh \
142 drv/bus/usb/usbflbk \
143 drv/bus/usb/usbhid \
144 drv/bus/usb/usbhub \
145 drv/bus/usb/usbmast \
146 drv/bus/usb/usbmid \
[00d7e1b]147 drv/bus/usb/vhc \
[9916841]148 drv/nic/ne2k \
[f0b74b2]149 drv/nic/e1k \
[72759ffe]150 drv/nic/rtl8139
[14f1db0]151
[e76e833f]152ifeq ($(CONFIG_PCC),y)
153DIRS += \
154 app/cc \
155 app/ccom \
156 app/ccom/mkext \
157 app/cpp
158endif
159
[10a530cc]160ifeq ($(CONFIG_BINUTILS),y)
161DIRS += \
162 app/binutils
163endif
164
[3f0ea0e2]165ifeq ($(CONFIG_MSIM),y)
166DIRS += \
167 app/msim
168endif
169
[1b1164e8]170## Platform-specific hardware support
171#
[c2ee1c5c]172
[fcd7053]173ifeq ($(UARCH),amd64)
[acc7ce4]174 DIRS += \
[5203e256]175 drv/infrastructure/rootpc \
176 drv/bus/pci/pciintel \
177 drv/bus/isa \
178 drv/char/ns8250 \
[5ef13847]179 drv/time/cmos-rtc \
[acc7ce4]180 srv/hw/irc/apic \
181 srv/hw/irc/i8259
[5a4c754]182endif
[41f7564]183
[fcd7053]184ifeq ($(UARCH),ia32)
[acc7ce4]185 DIRS += \
[5203e256]186 drv/infrastructure/rootpc \
187 drv/bus/pci/pciintel \
188 drv/bus/isa \
189 drv/char/ns8250 \
[5ef13847]190 drv/time/cmos-rtc \
[acc7ce4]191 srv/hw/irc/apic \
192 srv/hw/irc/i8259
[37458472]193endif
[5a4c754]194
[c501bc4]195ifeq ($(UARCH), $(filter $(UARCH),mips32 mips32eb))
196 DIRS += \
197 drv/infrastructure/rootmalta \
198 drv/bus/pci/pciintel \
199 drv/bus/isa
200endif
201
[3a2f8aa]202ifeq ($(UARCH),ppc32)
[73d288c]203 DIRS += \
[5203e256]204 drv/infrastructure/rootmac \
[cb3dbb63]205 drv/bus/pci/pciintel \
[73d288c]206 srv/hw/bus/cuda_adb
[3a2f8aa]207endif
208
[3e5a814]209ifeq ($(UARCH),sparc64)
[42742c5a]210 DIRS += \
[acc7ce4]211 srv/hw/irc/obio
[3e5a814]212endif
213
[09a0a8f0]214ifeq ($(UARCH),arm32)
215 DIRS += \
[a14f346]216 drv/infrastructure/rootamdm37x \
217 drv/fb/amdm37x_dispc
[09a0a8f0]218endif
219
[1b1164e8]220## System libraries
221#
222
[63f8966]223LIBC = lib/c
[e035612]224LIBS = \
[63f8966]225 lib/fs \
226 lib/block \
[36a75a2]227 lib/clui \
[22cf42d9]228 lib/fmtutil \
[0feaae4]229 lib/scsi \
[e035612]230 lib/softint \
[e5773c6]231 lib/softfloat \
[c47e1a8]232 lib/drv \
[6d5e378]233 lib/graph \
234 lib/gui \
[a6bdccc]235 lib/hound \
[6d5e378]236 lib/softrend \
237 lib/draw \
[3bd76491]238 lib/net \
[00d7e1b]239 lib/nic \
[eb91db7]240 lib/ext4 \
[8d6c1f1]241 lib/usb \
242 lib/usbhost \
243 lib/usbdev \
244 lib/usbhid \
[2af29ed]245 lib/usbvirt \
[ea6c838]246 lib/pcm \
[681a985]247 lib/bithenge \
[2d2b8e6]248 lib/posix
[e035612]249
250LIBC_BUILD = $(addsuffix .build,$(LIBC))
251LIBS_BUILD = $(addsuffix .build,$(LIBS))
[14f1db0]252LIBN_BUILD = $(addsuffix .build,$(LIBN))
253BUILDS := $(addsuffix .build,$(DIRS))
[e035612]254
[14f1db0]255CLEANS := $(addsuffix .clean,$(DIRS)) $(addsuffix .clean,$(LIBN)) $(addsuffix .clean,$(LIBS)) $(addsuffix .clean,$(LIBC))
[1b1164e8]256
[14f1db0]257.PHONY: all $(LIBC_BUILD) $(LIBS_BUILD) $(LIBN_BUILD) $(BUILDS) $(CLEANS) clean
[c2ee1c5c]258
[cc1f8d4]259all: $(BUILDS)
[c2ee1c5c]260
[25b0e6a]261clean: $(CLEANS)
[c2ee1c5c]262
[25b0e6a]263$(CLEANS):
[24d6efc]264 -$(MAKE) -C $(basename $@) clean
[c2ee1c5c]265
[14f1db0]266$(BUILDS): $(LIBC_BUILD) $(LIBS_BUILD) $(LIBN_BUILD)
267 $(MAKE) -C $(basename $@) all PRECHECK=$(PRECHECK)
268
269$(LIBN_BUILD): $(LIBC_BUILD) $(LIBS_BUILD)
[8786aa5]270 $(MAKE) -C $(basename $@) all PRECHECK=$(PRECHECK)
[e035612]271
272$(LIBS_BUILD): $(LIBC_BUILD)
[8786aa5]273 $(MAKE) -C $(basename $@) all PRECHECK=$(PRECHECK)
[e035612]274
275$(LIBC_BUILD):
[8786aa5]276 $(MAKE) -C $(basename $@) all PRECHECK=$(PRECHECK)
Note: See TracBrowser for help on using the repository browser.