source: mainline/uspace/Makefile@ d52ab7b

lfn serial ticket/834-toolchain-update topic/msim-upgrade topic/simplify-dev-export
Last change on this file since d52ab7b was 0caa075e, checked in by Martin Sucha <sucha14@…>, 12 years ago

Cherrypick klog server that synchronizes kernel log to uspace log

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