source: mainline/uspace/Makefile@ 4b63316

lfn serial ticket/834-toolchain-update topic/msim-upgrade topic/simplify-dev-export
Last change on this file since 4b63316 was 3e896e1, checked in by Martin Decky <martin@…>, 12 years ago

trivial image viewer

  • Property mode set to 100644
File size: 5.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 \
[a54bd98]37 app/bithenge \
[32d3ebf]38 app/blkdump \
[423f64f]39 app/bnchmark \
[92c1680]40 app/corecfg \
[7beb220]41 app/devctl \
[5d1cb8a]42 app/dnscfg \
[31e9fe0]43 app/dnsres \
[d7b7f5e]44 app/download \
[b3d513f]45 app/edit \
46 app/getterm \
47 app/init \
[b4ec1ea]48 app/inet \
[1e9f8ab]49 app/kill \
[c4faa0c]50 app/killall \
[b3d513f]51 app/klog \
[32d96e1]52 app/loc \
[669f5cae]53 app/logset \
[a6bdccc]54 app/mixerctl \
[dccf721]55 app/mkfat \
[e872326]56 app/mkexfat \
[7a46bfe]57 app/mkmfs \
[01a7aa1]58 app/nterm \
[b3d513f]59 app/redir \
[09ababb7]60 app/sbi \
[c0e53ff]61 app/sportdmp \
[3d482e0]62 app/stats \
[336db295]63 app/taskdump \
[b3d513f]64 app/tester \
[6b3e7f7f]65 app/testread \
[2966122]66 app/testwrit \
[b3d513f]67 app/tetris \
68 app/trace \
[5c058d50]69 app/top \
[07b9203e]70 app/usbinfo \
[57c7050]71 app/vuhid \
[a79d88d]72 app/netecho \
[fada53f]73 app/netspeed \
[a79d88d]74 app/nettest1 \
75 app/nettest2 \
[92e717c]76 app/nettest3 \
[a79d88d]77 app/ping \
[a3eeef45]78 app/sysinfo \
[4880210]79 app/mkbd \
[fd37139d]80 app/date \
[6d5e378]81 app/vdemo \
[3e896e1]82 app/viewer \
[6d5e378]83 app/vlaunch \
84 app/vterm \
[66366470]85 app/df \
[a6bdccc]86 app/wavplay \
87 app/websrv \
88 srv/audio/hound \
[d3a8e47]89 srv/clipboard \
[32d96e1]90 srv/locsrv \
[1f2dd20]91 srv/logger \
[e4c4247]92 srv/devman \
[b3d513f]93 srv/loader \
[695b6ff]94 srv/net/dhcp \
[31e9fe0]95 srv/net/dnsrsrv \
[69a93df7]96 srv/net/ethip \
[b4ec1ea]97 srv/net/inetsrv \
[606c369]98 srv/net/loopip \
[7af0cc5]99 srv/net/nconfsrv \
[2093fbe]100 srv/net/slip \
[69a93df7]101 srv/net/tcp \
102 srv/net/udp \
[b3d513f]103 srv/ns \
[a074b4f]104 srv/taskmon \
[b3d513f]105 srv/vfs \
[9904eb90]106 srv/bd/sata_bd \
[2a18193c]107 srv/bd/file_bd \
[e7645de]108 srv/bd/rd \
[975e7e9]109 srv/bd/part/guid_part \
[b3d513f]110 srv/bd/part/mbr_part \
[db9aa04]111 srv/fs/exfat \
[48e3190]112 srv/fs/udf \
[c0cdcaf]113 srv/fs/fat \
[a26895d]114 srv/fs/cdfs \
[d5cdffe]115 srv/fs/tmpfs \
[7a46bfe]116 srv/fs/mfs \
[15f3c3f]117 srv/fs/locfs \
[d3a9ae74]118 srv/fs/ext4fs \
[6d5e378]119 srv/hid/compositor \
[c6f08726]120 srv/hid/console \
[527298a]121 srv/hid/s3c24xx_ts \
[f66ca57f]122 srv/hid/isdv4_tablet \
[5f88293]123 srv/hid/input \
[6d5e378]124 srv/hid/output \
[21a9869]125 srv/hid/remcons \
[a9b5b5f]126 srv/hw/char/s3c24xx_uart \
[bd0e6a1]127 srv/hid/rfb \
[2fc487f]128 drv/audio/sb16 \
[5203e256]129 drv/infrastructure/root \
130 drv/infrastructure/rootvirt \
[9904eb90]131 drv/block/ahci \
[66cb7a2]132 drv/block/ata_bd \
[4d8e203]133 drv/char/i8042 \
[38994e3]134 drv/char/ps2mouse \
[4d8e203]135 drv/char/xtkbd \
[5203e256]136 drv/test/test1 \
137 drv/test/test2 \
138 drv/test/test3 \
[6d5e378]139 drv/fb/kfb \
[5203e256]140 drv/bus/usb/ehci \
141 drv/bus/usb/ohci \
142 drv/bus/usb/uhci \
143 drv/bus/usb/uhcirh \
144 drv/bus/usb/usbflbk \
145 drv/bus/usb/usbhid \
146 drv/bus/usb/usbhub \
147 drv/bus/usb/usbmast \
148 drv/bus/usb/usbmid \
[00d7e1b]149 drv/bus/usb/vhc \
[9916841]150 drv/nic/ne2k \
[f0b74b2]151 drv/nic/e1k \
[72759ffe]152 drv/nic/rtl8139
[14f1db0]153
[e76e833f]154ifeq ($(CONFIG_PCC),y)
155DIRS += \
156 app/cc \
157 app/ccom \
158 app/ccom/mkext \
159 app/cpp
160endif
161
[10a530cc]162ifeq ($(CONFIG_BINUTILS),y)
163DIRS += \
164 app/binutils
165endif
166
[3f0ea0e2]167ifeq ($(CONFIG_MSIM),y)
168DIRS += \
169 app/msim
170endif
171
[1b1164e8]172## Platform-specific hardware support
173#
[c2ee1c5c]174
[fcd7053]175ifeq ($(UARCH),amd64)
[acc7ce4]176 DIRS += \
[5203e256]177 drv/infrastructure/rootpc \
178 drv/bus/pci/pciintel \
179 drv/bus/isa \
180 drv/char/ns8250 \
[5ef13847]181 drv/time/cmos-rtc \
[acc7ce4]182 srv/hw/irc/apic \
183 srv/hw/irc/i8259
[5a4c754]184endif
[41f7564]185
[fcd7053]186ifeq ($(UARCH),ia32)
[acc7ce4]187 DIRS += \
[5203e256]188 drv/infrastructure/rootpc \
189 drv/bus/pci/pciintel \
190 drv/bus/isa \
191 drv/char/ns8250 \
[5ef13847]192 drv/time/cmos-rtc \
[acc7ce4]193 srv/hw/irc/apic \
194 srv/hw/irc/i8259
[37458472]195endif
[5a4c754]196
[c501bc4]197ifeq ($(UARCH), $(filter $(UARCH),mips32 mips32eb))
198 DIRS += \
199 drv/infrastructure/rootmalta \
200 drv/bus/pci/pciintel \
201 drv/bus/isa
202endif
203
[3a2f8aa]204ifeq ($(UARCH),ppc32)
[73d288c]205 DIRS += \
[5203e256]206 drv/infrastructure/rootmac \
[cb3dbb63]207 drv/bus/pci/pciintel \
[73d288c]208 srv/hw/bus/cuda_adb
[3a2f8aa]209endif
210
[3e5a814]211ifeq ($(UARCH),sparc64)
[42742c5a]212 DIRS += \
[acc7ce4]213 srv/hw/irc/obio
[3e5a814]214endif
215
[09a0a8f0]216ifeq ($(UARCH),arm32)
217 DIRS += \
[a14f346]218 drv/infrastructure/rootamdm37x \
219 drv/fb/amdm37x_dispc
[09a0a8f0]220endif
221
[1b1164e8]222## System libraries
223#
224
[63f8966]225LIBC = lib/c
[e035612]226LIBS = \
[63f8966]227 lib/fs \
228 lib/block \
[36a75a2]229 lib/clui \
[22cf42d9]230 lib/fmtutil \
[0feaae4]231 lib/scsi \
[e035612]232 lib/softint \
[e5773c6]233 lib/softfloat \
[c47e1a8]234 lib/drv \
[6d5e378]235 lib/graph \
236 lib/gui \
[a6bdccc]237 lib/hound \
[d7b7f5e]238 lib/http \
[6d5e378]239 lib/softrend \
240 lib/draw \
[3bd76491]241 lib/net \
[00d7e1b]242 lib/nic \
[eb91db7]243 lib/ext4 \
[d7b7f5e]244 lib/uri \
[8d6c1f1]245 lib/usb \
246 lib/usbhost \
247 lib/usbdev \
248 lib/usbhid \
[2af29ed]249 lib/usbvirt \
[ea6c838]250 lib/pcm \
[681a985]251 lib/bithenge \
[2d2b8e6]252 lib/posix
[e035612]253
254LIBC_BUILD = $(addsuffix .build,$(LIBC))
255LIBS_BUILD = $(addsuffix .build,$(LIBS))
[14f1db0]256LIBN_BUILD = $(addsuffix .build,$(LIBN))
257BUILDS := $(addsuffix .build,$(DIRS))
[e035612]258
[14f1db0]259CLEANS := $(addsuffix .clean,$(DIRS)) $(addsuffix .clean,$(LIBN)) $(addsuffix .clean,$(LIBS)) $(addsuffix .clean,$(LIBC))
[1b1164e8]260
[14f1db0]261.PHONY: all $(LIBC_BUILD) $(LIBS_BUILD) $(LIBN_BUILD) $(BUILDS) $(CLEANS) clean
[c2ee1c5c]262
[cc1f8d4]263all: $(BUILDS)
[c2ee1c5c]264
[25b0e6a]265clean: $(CLEANS)
[c2ee1c5c]266
[25b0e6a]267$(CLEANS):
[24d6efc]268 -$(MAKE) -C $(basename $@) clean
[c2ee1c5c]269
[14f1db0]270$(BUILDS): $(LIBC_BUILD) $(LIBS_BUILD) $(LIBN_BUILD)
271 $(MAKE) -C $(basename $@) all PRECHECK=$(PRECHECK)
272
273$(LIBN_BUILD): $(LIBC_BUILD) $(LIBS_BUILD)
[8786aa5]274 $(MAKE) -C $(basename $@) all PRECHECK=$(PRECHECK)
[e035612]275
276$(LIBS_BUILD): $(LIBC_BUILD)
[8786aa5]277 $(MAKE) -C $(basename $@) all PRECHECK=$(PRECHECK)
[e035612]278
279$(LIBC_BUILD):
[8786aa5]280 $(MAKE) -C $(basename $@) all PRECHECK=$(PRECHECK)
Note: See TracBrowser for help on using the repository browser.