source: mainline/uspace/Makefile@ 1bebadee

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

Merge mainline changes.

Conflict in uspace/lib/drv/generic/dev_iface.c:

Resolved by using c99 method for array initialization for ahci too.

AHCI drivers
kernel console tab completion

  • Property mode set to 100644
File size: 4.8 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 \
[32d3ebf]37 app/blkdump \
[423f64f]38 app/bnchmark \
[7beb220]39 app/devctl \
[0336354a]40 app/drec \
[b3d513f]41 app/edit \
[d5e2763]42 app/ext2info \
[b3d513f]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 \
[8594505]50 app/lsusb \
[b67968c]51 app/mixerctl \
[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 \
[b3d513f]63 app/tetris \
64 app/trace \
[5c058d50]65 app/top \
[07b9203e]66 app/usbinfo \
[57c7050]67 app/vuhid \
[a79d88d]68 app/netecho \
69 app/nettest1 \
70 app/nettest2 \
[92e717c]71 app/nettest3 \
[a79d88d]72 app/ping \
[a3eeef45]73 app/sysinfo \
[4880210]74 app/mkbd \
[e677b08]75 app/wavplay \
[3e67ab1]76 app/websrv \
[88a37b5]77 srv/audio/hound \
[d3a8e47]78 srv/clipboard \
[32d96e1]79 srv/locsrv \
[e4c4247]80 srv/devman \
[b3d513f]81 srv/loader \
[69a93df7]82 srv/net/ethip \
[b4ec1ea]83 srv/net/inetsrv \
[606c369]84 srv/net/loopip \
[69a93df7]85 srv/net/tcp \
86 srv/net/udp \
[b3d513f]87 srv/ns \
[a074b4f]88 srv/taskmon \
[b3d513f]89 srv/vfs \
[f8ef660]90 srv/bd/ata_bd \
[9904eb90]91 srv/bd/sata_bd \
[2a18193c]92 srv/bd/file_bd \
[44a53fd]93 srv/bd/gxe_bd \
[e7645de]94 srv/bd/rd \
[975e7e9]95 srv/bd/part/guid_part \
[b3d513f]96 srv/bd/part/mbr_part \
[db9aa04e]97 srv/fs/exfat \
[c0cdcaf]98 srv/fs/fat \
[a26895d]99 srv/fs/cdfs \
[d5cdffe]100 srv/fs/tmpfs \
[7a46bfe]101 srv/fs/mfs \
[15f3c3f]102 srv/fs/locfs \
[796c276]103 srv/fs/ext2fs \
[c6f08726]104 srv/hid/console \
[527298a]105 srv/hid/s3c24xx_ts \
[b3d513f]106 srv/hid/fb \
[5f88293]107 srv/hid/input \
[21a9869]108 srv/hid/remcons \
[a9b5b5f]109 srv/hw/char/s3c24xx_uart \
[2fc487f]110 drv/audio/sb16 \
[5203e256]111 drv/infrastructure/root \
112 drv/infrastructure/rootvirt \
[9904eb90]113 drv/block/ahci \
[4d8e203]114 drv/char/i8042 \
[38994e3]115 drv/char/ps2mouse \
[4d8e203]116 drv/char/xtkbd \
[5203e256]117 drv/test/test1 \
118 drv/test/test2 \
119 drv/test/test3 \
120 drv/bus/usb/ehci \
121 drv/bus/usb/ohci \
122 drv/bus/usb/uhci \
123 drv/bus/usb/uhcirh \
124 drv/bus/usb/usbflbk \
125 drv/bus/usb/usbhid \
126 drv/bus/usb/usbhub \
127 drv/bus/usb/usbmast \
128 drv/bus/usb/usbmid \
[00d7e1b]129 drv/bus/usb/vhc \
[9916841]130 drv/nic/ne2k \
[f0b74b2]131 drv/nic/e1k \
132 drv/nic/rtl8139
[14f1db0]133
[e76e833f]134ifeq ($(CONFIG_PCC),y)
135DIRS += \
136 app/cc \
137 app/ccom \
138 app/ccom/mkext \
139 app/cpp
140endif
141
[10a530cc]142ifeq ($(CONFIG_BINUTILS),y)
143DIRS += \
144 app/binutils
145endif
146
[3f0ea0e2]147ifeq ($(CONFIG_MSIM),y)
148DIRS += \
149 app/msim
150endif
151
[1b1164e8]152## Platform-specific hardware support
153#
[c2ee1c5c]154
[fcd7053]155ifeq ($(UARCH),amd64)
[acc7ce4]156 DIRS += \
[5203e256]157 drv/infrastructure/rootpc \
158 drv/bus/pci/pciintel \
159 drv/bus/isa \
160 drv/char/ns8250 \
[acc7ce4]161 srv/hw/irc/apic \
162 srv/hw/irc/i8259
[5a4c754]163endif
[41f7564]164
[fcd7053]165ifeq ($(UARCH),ia32)
[acc7ce4]166 DIRS += \
[5203e256]167 drv/infrastructure/rootpc \
168 drv/bus/pci/pciintel \
169 drv/bus/isa \
170 drv/char/ns8250 \
[acc7ce4]171 srv/hw/irc/apic \
172 srv/hw/irc/i8259
[37458472]173endif
[5a4c754]174
[3a2f8aa]175ifeq ($(UARCH),ppc32)
[73d288c]176 DIRS += \
[5203e256]177 drv/infrastructure/rootmac \
[73d288c]178 srv/hw/bus/cuda_adb
[3a2f8aa]179endif
180
[3e5a814]181ifeq ($(UARCH),sparc64)
[42742c5a]182 DIRS += \
[acc7ce4]183 srv/hw/irc/obio
[3e5a814]184endif
185
[1b1164e8]186## System libraries
187#
188
[63f8966]189LIBC = lib/c
[e035612]190LIBS = \
[63f8966]191 lib/fs \
192 lib/block \
[36a75a2]193 lib/clui \
[22cf42d9]194 lib/fmtutil \
[0feaae4]195 lib/scsi \
[e035612]196 lib/softint \
[e5773c6]197 lib/softfloat \
[c47e1a8]198 lib/drv \
[7c014d1]199 lib/fb \
[afa7c17]200 lib/hound \
[3bd76491]201 lib/net \
[00d7e1b]202 lib/nic \
[8d6c1f1]203 lib/ext2 \
204 lib/usb \
205 lib/usbhost \
206 lib/usbdev \
207 lib/usbhid \
[2af29ed]208 lib/usbvirt \
[ea6c838]209 lib/pcm \
[2d2b8e6]210 lib/posix
[e035612]211
212LIBC_BUILD = $(addsuffix .build,$(LIBC))
213LIBS_BUILD = $(addsuffix .build,$(LIBS))
[14f1db0]214LIBN_BUILD = $(addsuffix .build,$(LIBN))
215BUILDS := $(addsuffix .build,$(DIRS))
[e035612]216
[14f1db0]217CLEANS := $(addsuffix .clean,$(DIRS)) $(addsuffix .clean,$(LIBN)) $(addsuffix .clean,$(LIBS)) $(addsuffix .clean,$(LIBC))
[1b1164e8]218
[14f1db0]219.PHONY: all $(LIBC_BUILD) $(LIBS_BUILD) $(LIBN_BUILD) $(BUILDS) $(CLEANS) clean
[c2ee1c5c]220
[cc1f8d4]221all: $(BUILDS)
[c2ee1c5c]222
[25b0e6a]223clean: $(CLEANS)
[c2ee1c5c]224
[25b0e6a]225$(CLEANS):
[24d6efc]226 -$(MAKE) -C $(basename $@) clean
[c2ee1c5c]227
[14f1db0]228$(BUILDS): $(LIBC_BUILD) $(LIBS_BUILD) $(LIBN_BUILD)
229 $(MAKE) -C $(basename $@) all PRECHECK=$(PRECHECK)
230
231$(LIBN_BUILD): $(LIBC_BUILD) $(LIBS_BUILD)
[8786aa5]232 $(MAKE) -C $(basename $@) all PRECHECK=$(PRECHECK)
[e035612]233
234$(LIBS_BUILD): $(LIBC_BUILD)
[8786aa5]235 $(MAKE) -C $(basename $@) all PRECHECK=$(PRECHECK)
[e035612]236
237$(LIBC_BUILD):
[8786aa5]238 $(MAKE) -C $(basename $@) all PRECHECK=$(PRECHECK)
Note: See TracBrowser for help on using the repository browser.