source: mainline/uspace/Makefile@ 179f6f2

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

Mainline changes with some extra USB fixes.

  • 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 \
[b3d513f]40 app/edit \
[d5e2763]41 app/ext2info \
[b3d513f]42 app/getterm \
43 app/init \
[1e9f8ab]44 app/kill \
[c4faa0c]45 app/killall \
[b3d513f]46 app/klog \
[763e0cd]47 app/locinfo \
[8594505]48 app/lsusb \
[dccf721]49 app/mkfat \
[e872326]50 app/mkexfat \
[7a46bfe]51 app/mkmfs \
[b3d513f]52 app/redir \
[09ababb7]53 app/sbi \
[c0e53ff]54 app/sportdmp \
[3d482e0]55 app/stats \
[336db295]56 app/taskdump \
[b3d513f]57 app/tester \
[6b3e7f7f]58 app/testread \
[b3d513f]59 app/tetris \
60 app/trace \
[5c058d50]61 app/top \
[07b9203e]62 app/usbinfo \
[57c7050]63 app/vuhid \
[a79d88d]64 app/netecho \
65 app/nettest1 \
66 app/nettest2 \
[92e717c]67 app/nettest3 \
[a79d88d]68 app/ping \
[f4a2d624]69 app/websrv \
[a3eeef45]70 app/sysinfo \
[4880210]71 app/mkbd \
[b3d513f]72 srv/clip \
[15f3c3f]73 srv/loc \
[e4c4247]74 srv/devman \
[b3d513f]75 srv/loader \
76 srv/ns \
[a074b4f]77 srv/taskmon \
[b3d513f]78 srv/vfs \
[f8ef660]79 srv/bd/ata_bd \
[2a18193c]80 srv/bd/file_bd \
[44a53fd]81 srv/bd/gxe_bd \
[e7645de]82 srv/bd/rd \
[975e7e9]83 srv/bd/part/guid_part \
[b3d513f]84 srv/bd/part/mbr_part \
[db9aa04]85 srv/fs/exfat \
[c0cdcaf]86 srv/fs/fat \
[a26895d]87 srv/fs/cdfs \
[d5cdffe]88 srv/fs/tmpfs \
[7a46bfe]89 srv/fs/mfs \
[15f3c3f]90 srv/fs/locfs \
[796c276]91 srv/fs/ext2fs \
[c6f08726]92 srv/hid/console \
[527298a]93 srv/hid/s3c24xx_ts \
[b3d513f]94 srv/hid/fb \
[5f88293]95 srv/hid/input \
[21a9869]96 srv/hid/remcons \
[a9b5b5f]97 srv/hw/char/s3c24xx_uart \
[14f1db0]98 srv/net/il/arp \
99 srv/net/il/ip \
100 srv/net/tl/icmp \
101 srv/net/tl/udp \
102 srv/net/tl/tcp \
[609243f4]103 srv/net/nil/eth \
104 srv/net/nil/nildummy \
[14f1db0]105 srv/net/net \
[5203e256]106 drv/infrastructure/root \
107 drv/infrastructure/rootvirt \
[4d8e203]108 drv/char/i8042 \
[38994e3]109 drv/char/ps2mouse \
[4d8e203]110 drv/char/xtkbd \
[5203e256]111 drv/test/test1 \
112 drv/test/test2 \
113 drv/test/test3 \
114 drv/bus/usb/ehci \
115 drv/bus/usb/ohci \
116 drv/bus/usb/uhci \
117 drv/bus/usb/uhcirh \
118 drv/bus/usb/usbflbk \
119 drv/bus/usb/usbhid \
120 drv/bus/usb/usbhub \
121 drv/bus/usb/usbmast \
122 drv/bus/usb/usbmid \
[00d7e1b]123 drv/bus/usb/vhc \
[80099c19]124 drv/nic/lo \
[9916841]125 drv/nic/ne2k \
[f0b74b2]126 drv/nic/e1k \
127 drv/nic/rtl8139
[14f1db0]128
[e76e833f]129ifeq ($(CONFIG_PCC),y)
130DIRS += \
131 app/cc \
132 app/ccom \
133 app/ccom/mkext \
134 app/cpp
135endif
136
[10a530cc]137ifeq ($(CONFIG_BINUTILS),y)
138DIRS += \
139 app/binutils
140endif
141
[1b1164e8]142## Platform-specific hardware support
143#
[c2ee1c5c]144
[fcd7053]145ifeq ($(UARCH),amd64)
[acc7ce4]146 DIRS += \
[5203e256]147 drv/infrastructure/rootpc \
148 drv/bus/pci/pciintel \
149 drv/bus/isa \
150 drv/char/ns8250 \
[acc7ce4]151 srv/hw/irc/apic \
152 srv/hw/irc/i8259
[5a4c754]153endif
[41f7564]154
[fcd7053]155ifeq ($(UARCH),ia32)
[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
[37458472]163endif
[5a4c754]164
[3a2f8aa]165ifeq ($(UARCH),ppc32)
[73d288c]166 DIRS += \
[5203e256]167 drv/infrastructure/rootmac \
[73d288c]168 srv/hw/bus/cuda_adb
[3a2f8aa]169endif
170
[3e5a814]171ifeq ($(UARCH),sparc64)
[42742c5a]172 DIRS += \
[acc7ce4]173 srv/hw/irc/obio
[3e5a814]174endif
175
[09a0a8f0]176ifeq ($(UARCH),arm32)
177 DIRS += \
178 drv/infrastructure/rootamdm37x
179endif
180
[1b1164e8]181## System libraries
182#
183
[63f8966]184LIBC = lib/c
[e035612]185LIBS = \
[63f8966]186 lib/fs \
187 lib/block \
[36a75a2]188 lib/clui \
[22cf42d9]189 lib/fmtutil \
[0feaae4]190 lib/scsi \
[e035612]191 lib/softint \
[e5773c6]192 lib/softfloat \
[c47e1a8]193 lib/drv \
[7c014d1]194 lib/fb \
[3bd76491]195 lib/net \
[00d7e1b]196 lib/nic \
[8d6c1f1]197 lib/ext2 \
198 lib/usb \
199 lib/usbhost \
200 lib/usbdev \
201 lib/usbhid \
[2af29ed]202 lib/usbvirt \
[2d2b8e6]203 lib/posix
[e035612]204
205LIBC_BUILD = $(addsuffix .build,$(LIBC))
206LIBS_BUILD = $(addsuffix .build,$(LIBS))
[14f1db0]207LIBN_BUILD = $(addsuffix .build,$(LIBN))
208BUILDS := $(addsuffix .build,$(DIRS))
[e035612]209
[14f1db0]210CLEANS := $(addsuffix .clean,$(DIRS)) $(addsuffix .clean,$(LIBN)) $(addsuffix .clean,$(LIBS)) $(addsuffix .clean,$(LIBC))
[1b1164e8]211
[14f1db0]212.PHONY: all $(LIBC_BUILD) $(LIBS_BUILD) $(LIBN_BUILD) $(BUILDS) $(CLEANS) clean
[c2ee1c5c]213
[cc1f8d4]214all: $(BUILDS)
[c2ee1c5c]215
[25b0e6a]216clean: $(CLEANS)
[c2ee1c5c]217
[25b0e6a]218$(CLEANS):
[24d6efc]219 -$(MAKE) -C $(basename $@) clean
[c2ee1c5c]220
[14f1db0]221$(BUILDS): $(LIBC_BUILD) $(LIBS_BUILD) $(LIBN_BUILD)
222 $(MAKE) -C $(basename $@) all PRECHECK=$(PRECHECK)
223
224$(LIBN_BUILD): $(LIBC_BUILD) $(LIBS_BUILD)
[8786aa5]225 $(MAKE) -C $(basename $@) all PRECHECK=$(PRECHECK)
[e035612]226
227$(LIBS_BUILD): $(LIBC_BUILD)
[8786aa5]228 $(MAKE) -C $(basename $@) all PRECHECK=$(PRECHECK)
[e035612]229
230$(LIBC_BUILD):
[8786aa5]231 $(MAKE) -C $(basename $@) all PRECHECK=$(PRECHECK)
Note: See TracBrowser for help on using the repository browser.