source: mainline/uspace/Makefile@ 82721f5

lfn serial ticket/834-toolchain-update topic/msim-upgrade topic/simplify-dev-export
Last change on this file since 82721f5 was a6bdccc, checked in by Martin Decky <martin@…>, 12 years ago

fix sort order (at least a little)

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