source: mainline/uspace/Makefile@ 2ba4d45

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

Merge mainline changes.

Conflict resulting from bool.h → stdbool.h move and ddf structs turning opaque.
Fails to boot to shell console.

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