source: mainline/uspace/Makefile@ 024fcc5

lfn serial ticket/834-toolchain-update topic/msim-upgrade topic/simplify-dev-export
Last change on this file since 024fcc5 was 432a269, checked in by Martin Sucha <sucha14@…>, 14 years ago

Merge mainline changes

  • Property mode set to 100644
File size: 4.6 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 \
[7a46bfe]50 app/mkmfs \
[b3d513f]51 app/redir \
[09ababb7]52 app/sbi \
[c0e53ff]53 app/sportdmp \
[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 \
[15f3c3f]71 srv/loc \
[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 \
[db9aa04e]83 srv/fs/exfat \
[c0cdcaf]84 srv/fs/fat \
[a26895d]85 srv/fs/cdfs \
[d5cdffe]86 srv/fs/tmpfs \
[7a46bfe]87 srv/fs/mfs \
[15f3c3f]88 srv/fs/locfs \
[796c276]89 srv/fs/ext2fs \
[c6f08726]90 srv/hid/console \
[527298a]91 srv/hid/s3c24xx_ts \
[b3d513f]92 srv/hid/fb \
[5f88293]93 srv/hid/input \
[849ed54]94 srv/hw/char/i8042 \
[a9b5b5f]95 srv/hw/char/s3c24xx_uart \
[f902d36]96 srv/hw/netif/ne2000 \
[14f1db0]97 srv/net/netif/lo \
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 \
103 srv/net/net \
[5203e256]104 drv/infrastructure/root \
105 drv/infrastructure/rootvirt \
106 drv/test/test1 \
107 drv/test/test2 \
108 drv/test/test3 \
109 drv/bus/usb/ehci \
110 drv/bus/usb/ohci \
111 drv/bus/usb/uhci \
112 drv/bus/usb/uhcirh \
113 drv/bus/usb/usbflbk \
114 drv/bus/usb/usbhid \
115 drv/bus/usb/usbhub \
116 drv/bus/usb/usbmast \
117 drv/bus/usb/usbmid \
118 drv/bus/usb/usbmouse \
119 drv/bus/usb/vhc
[14f1db0]120
[e76e833f]121ifeq ($(CONFIG_PCC),y)
122DIRS += \
123 app/cc \
124 app/ccom \
125 app/ccom/mkext \
126 app/cpp
127endif
128
[10a530cc]129ifeq ($(CONFIG_BINUTILS),y)
130DIRS += \
131 app/binutils
132endif
133
[14f1db0]134## Networking
135#
136
[59e9398b]137DIRS += \
138 srv/net/nil/eth \
139 srv/net/nil/nildummy
[1b1164e8]140
141## Platform-specific hardware support
142#
[c2ee1c5c]143
[fcd7053]144ifeq ($(UARCH),amd64)
[acc7ce4]145 DIRS += \
[5203e256]146 drv/infrastructure/rootpc \
147 drv/bus/pci/pciintel \
148 drv/bus/isa \
149 drv/char/ns8250 \
[acc7ce4]150 srv/hw/irc/apic \
151 srv/hw/irc/i8259
[5a4c754]152endif
[41f7564]153
[fcd7053]154ifeq ($(UARCH),ia32)
[acc7ce4]155 DIRS += \
[5203e256]156 drv/infrastructure/rootpc \
157 drv/bus/pci/pciintel \
158 drv/bus/isa \
159 drv/char/ns8250 \
[acc7ce4]160 srv/hw/irc/apic \
161 srv/hw/irc/i8259
[37458472]162endif
[5a4c754]163
[3a2f8aa]164ifeq ($(UARCH),ppc32)
[73d288c]165 DIRS += \
[5203e256]166 drv/infrastructure/rootmac \
[73d288c]167 srv/hw/bus/cuda_adb
[3a2f8aa]168endif
169
[3e5a814]170ifeq ($(UARCH),sparc64)
[42742c5a]171 DIRS += \
[acc7ce4]172 srv/hw/irc/obio
[3e5a814]173endif
174
[1b1164e8]175## System libraries
176#
177
[63f8966]178LIBC = lib/c
[e035612]179LIBS = \
[63f8966]180 lib/fs \
181 lib/block \
[36a75a2]182 lib/clui \
[22cf42d9]183 lib/fmtutil \
[0feaae4]184 lib/scsi \
[e035612]185 lib/softint \
[e5773c6]186 lib/softfloat \
[c47e1a8]187 lib/drv \
[f63a591d]188 lib/packet \
[7c014d1]189 lib/fb \
[3bd76491]190 lib/net \
[8d6c1f1]191 lib/ext2 \
192 lib/usb \
193 lib/usbhost \
194 lib/usbdev \
195 lib/usbhid \
[2af29ed]196 lib/usbvirt \
[2d2b8e6]197 lib/posix
[e035612]198
199LIBC_BUILD = $(addsuffix .build,$(LIBC))
200LIBS_BUILD = $(addsuffix .build,$(LIBS))
[14f1db0]201LIBN_BUILD = $(addsuffix .build,$(LIBN))
202BUILDS := $(addsuffix .build,$(DIRS))
[e035612]203
[14f1db0]204CLEANS := $(addsuffix .clean,$(DIRS)) $(addsuffix .clean,$(LIBN)) $(addsuffix .clean,$(LIBS)) $(addsuffix .clean,$(LIBC))
[1b1164e8]205
[14f1db0]206.PHONY: all $(LIBC_BUILD) $(LIBS_BUILD) $(LIBN_BUILD) $(BUILDS) $(CLEANS) clean
[c2ee1c5c]207
[cc1f8d4]208all: $(BUILDS)
[c2ee1c5c]209
[25b0e6a]210clean: $(CLEANS)
[c2ee1c5c]211
[25b0e6a]212$(CLEANS):
[24d6efc]213 -$(MAKE) -C $(basename $@) clean
[c2ee1c5c]214
[14f1db0]215$(BUILDS): $(LIBC_BUILD) $(LIBS_BUILD) $(LIBN_BUILD)
216 $(MAKE) -C $(basename $@) all PRECHECK=$(PRECHECK)
217
218$(LIBN_BUILD): $(LIBC_BUILD) $(LIBS_BUILD)
[8786aa5]219 $(MAKE) -C $(basename $@) all PRECHECK=$(PRECHECK)
[e035612]220
221$(LIBS_BUILD): $(LIBC_BUILD)
[8786aa5]222 $(MAKE) -C $(basename $@) all PRECHECK=$(PRECHECK)
[e035612]223
224$(LIBC_BUILD):
[8786aa5]225 $(MAKE) -C $(basename $@) all PRECHECK=$(PRECHECK)
Note: See TracBrowser for help on using the repository browser.