source: mainline/uspace/Makefile@ 0918382f

lfn serial ticket/834-toolchain-update topic/msim-upgrade topic/simplify-dev-export
Last change on this file since 0918382f was db71e2a, checked in by Jan Vesely <jano.vesely@…>, 12 years ago

merge mainline changes.

usb hc macro changes from mainline were reverted, too many conflicts

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