source: mainline/uspace/Makefile@ e478cebf

lfn serial ticket/834-toolchain-update topic/msim-upgrade topic/simplify-dev-export
Last change on this file since e478cebf was e478cebf, checked in by Petr Koupy <petr.koupy@…>, 14 years ago

Merge binutils changes.

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