source: mainline/uspace/Makefile@ bef30d8

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

Build and launch hound by default.

  • 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 \
[66a4a640]40 app/dplay \
[0336354a]41 app/drec \
[b3d513f]42 app/edit \
[d5e2763]43 app/ext2info \
[b3d513f]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 \
[8594505]51 app/lsusb \
[b67968c]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 \
[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 \
[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 \
[2a18193c]91 srv/bd/file_bd \
[44a53fd]92 srv/bd/gxe_bd \
[e7645de]93 srv/bd/rd \
[975e7e9]94 srv/bd/part/guid_part \
[b3d513f]95 srv/bd/part/mbr_part \
[db9aa04e]96 srv/fs/exfat \
[c0cdcaf]97 srv/fs/fat \
[a26895d]98 srv/fs/cdfs \
[d5cdffe]99 srv/fs/tmpfs \
[7a46bfe]100 srv/fs/mfs \
[15f3c3f]101 srv/fs/locfs \
[796c276]102 srv/fs/ext2fs \
[c6f08726]103 srv/hid/console \
[527298a]104 srv/hid/s3c24xx_ts \
[b3d513f]105 srv/hid/fb \
[5f88293]106 srv/hid/input \
[21a9869]107 srv/hid/remcons \
[a9b5b5f]108 srv/hw/char/s3c24xx_uart \
[2fc487f]109 drv/audio/sb16 \
[5203e256]110 drv/infrastructure/root \
111 drv/infrastructure/rootvirt \
[4d8e203]112 drv/char/i8042 \
[38994e3]113 drv/char/ps2mouse \
[4d8e203]114 drv/char/xtkbd \
[5203e256]115 drv/test/test1 \
116 drv/test/test2 \
117 drv/test/test3 \
118 drv/bus/usb/ehci \
119 drv/bus/usb/ohci \
120 drv/bus/usb/uhci \
121 drv/bus/usb/uhcirh \
122 drv/bus/usb/usbflbk \
123 drv/bus/usb/usbhid \
124 drv/bus/usb/usbhub \
125 drv/bus/usb/usbmast \
126 drv/bus/usb/usbmid \
[00d7e1b]127 drv/bus/usb/vhc \
[9916841]128 drv/nic/ne2k \
[f0b74b2]129 drv/nic/e1k \
130 drv/nic/rtl8139
[14f1db0]131
[e76e833f]132ifeq ($(CONFIG_PCC),y)
133DIRS += \
134 app/cc \
135 app/ccom \
136 app/ccom/mkext \
137 app/cpp
138endif
139
[10a530cc]140ifeq ($(CONFIG_BINUTILS),y)
141DIRS += \
142 app/binutils
143endif
144
[3f0ea0e2]145ifeq ($(CONFIG_MSIM),y)
146DIRS += \
147 app/msim
148endif
149
[1b1164e8]150## Platform-specific hardware support
151#
[c2ee1c5c]152
[fcd7053]153ifeq ($(UARCH),amd64)
[acc7ce4]154 DIRS += \
[5203e256]155 drv/infrastructure/rootpc \
156 drv/bus/pci/pciintel \
157 drv/bus/isa \
158 drv/char/ns8250 \
[acc7ce4]159 srv/hw/irc/apic \
160 srv/hw/irc/i8259
[5a4c754]161endif
[41f7564]162
[fcd7053]163ifeq ($(UARCH),ia32)
[acc7ce4]164 DIRS += \
[5203e256]165 drv/infrastructure/rootpc \
166 drv/bus/pci/pciintel \
167 drv/bus/isa \
168 drv/char/ns8250 \
[acc7ce4]169 srv/hw/irc/apic \
170 srv/hw/irc/i8259
[37458472]171endif
[5a4c754]172
[3a2f8aa]173ifeq ($(UARCH),ppc32)
[73d288c]174 DIRS += \
[5203e256]175 drv/infrastructure/rootmac \
[73d288c]176 srv/hw/bus/cuda_adb
[3a2f8aa]177endif
178
[3e5a814]179ifeq ($(UARCH),sparc64)
[42742c5a]180 DIRS += \
[acc7ce4]181 srv/hw/irc/obio
[3e5a814]182endif
183
[1b1164e8]184## System libraries
185#
186
[63f8966]187LIBC = lib/c
[e035612]188LIBS = \
[63f8966]189 lib/fs \
190 lib/block \
[36a75a2]191 lib/clui \
[22cf42d9]192 lib/fmtutil \
[0feaae4]193 lib/scsi \
[e035612]194 lib/softint \
[e5773c6]195 lib/softfloat \
[c47e1a8]196 lib/drv \
[7c014d1]197 lib/fb \
[3bd76491]198 lib/net \
[00d7e1b]199 lib/nic \
[8d6c1f1]200 lib/ext2 \
201 lib/usb \
202 lib/usbhost \
203 lib/usbdev \
204 lib/usbhid \
[2af29ed]205 lib/usbvirt \
[2d2b8e6]206 lib/posix
[e035612]207
208LIBC_BUILD = $(addsuffix .build,$(LIBC))
209LIBS_BUILD = $(addsuffix .build,$(LIBS))
[14f1db0]210LIBN_BUILD = $(addsuffix .build,$(LIBN))
211BUILDS := $(addsuffix .build,$(DIRS))
[e035612]212
[14f1db0]213CLEANS := $(addsuffix .clean,$(DIRS)) $(addsuffix .clean,$(LIBN)) $(addsuffix .clean,$(LIBS)) $(addsuffix .clean,$(LIBC))
[1b1164e8]214
[14f1db0]215.PHONY: all $(LIBC_BUILD) $(LIBS_BUILD) $(LIBN_BUILD) $(BUILDS) $(CLEANS) clean
[c2ee1c5c]216
[cc1f8d4]217all: $(BUILDS)
[c2ee1c5c]218
[25b0e6a]219clean: $(CLEANS)
[c2ee1c5c]220
[25b0e6a]221$(CLEANS):
[24d6efc]222 -$(MAKE) -C $(basename $@) clean
[c2ee1c5c]223
[14f1db0]224$(BUILDS): $(LIBC_BUILD) $(LIBS_BUILD) $(LIBN_BUILD)
225 $(MAKE) -C $(basename $@) all PRECHECK=$(PRECHECK)
226
227$(LIBN_BUILD): $(LIBC_BUILD) $(LIBS_BUILD)
[8786aa5]228 $(MAKE) -C $(basename $@) all PRECHECK=$(PRECHECK)
[e035612]229
230$(LIBS_BUILD): $(LIBC_BUILD)
[8786aa5]231 $(MAKE) -C $(basename $@) all PRECHECK=$(PRECHECK)
[e035612]232
233$(LIBC_BUILD):
[8786aa5]234 $(MAKE) -C $(basename $@) all PRECHECK=$(PRECHECK)
Note: See TracBrowser for help on using the repository browser.