source: mainline/uspace/Makefile@ 7f8f9fd

lfn serial ticket/834-toolchain-update topic/msim-upgrade topic/simplify-dev-export
Last change on this file since 7f8f9fd was 48e3190, checked in by Martin Decky <martin@…>, 13 years ago

cherrypick UDF file system driver implementation (originally by Julia Medvedeva)
with coding style improvements and minor changes

  • Property mode set to 100644
File size: 4.9 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 \
[b4ec1ea]44 app/inet \
[1e9f8ab]45 app/kill \
[c4faa0c]46 app/killall \
[b3d513f]47 app/klog \
[32d96e1]48 app/loc \
[dccf721]49 app/mkfat \
[e872326]50 app/mkexfat \
[7a46bfe]51 app/mkmfs \
[01a7aa1]52 app/nterm \
[b3d513f]53 app/redir \
[09ababb7]54 app/sbi \
[c0e53ff]55 app/sportdmp \
[3d482e0]56 app/stats \
[336db295]57 app/taskdump \
[b3d513f]58 app/tester \
[6b3e7f7f]59 app/testread \
[2966122]60 app/testwrit \
[b3d513f]61 app/tetris \
62 app/trace \
[5c058d50]63 app/top \
[07b9203e]64 app/usbinfo \
[57c7050]65 app/vuhid \
[a79d88d]66 app/netecho \
67 app/nettest1 \
68 app/nettest2 \
[92e717c]69 app/nettest3 \
[a79d88d]70 app/ping \
[a3eeef45]71 app/sysinfo \
[4880210]72 app/mkbd \
[3e67ab1]73 app/websrv \
[6d5e378]74 app/vdemo \
75 app/vlaunch \
76 app/vterm \
[d3a8e47]77 srv/clipboard \
[32d96e1]78 srv/locsrv \
[e4c4247]79 srv/devman \
[b3d513f]80 srv/loader \
[69a93df7]81 srv/net/ethip \
[b4ec1ea]82 srv/net/inetsrv \
[606c369]83 srv/net/loopip \
[69a93df7]84 srv/net/tcp \
85 srv/net/udp \
[b3d513f]86 srv/ns \
[a074b4f]87 srv/taskmon \
[b3d513f]88 srv/vfs \
[f8ef660]89 srv/bd/ata_bd \
[9904eb90]90 srv/bd/sata_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 \
[db9aa04]96 srv/fs/exfat \
[48e3190]97 srv/fs/udf \
[c0cdcaf]98 srv/fs/fat \
[a26895d]99 srv/fs/cdfs \
[d5cdffe]100 srv/fs/tmpfs \
[7a46bfe]101 srv/fs/mfs \
[15f3c3f]102 srv/fs/locfs \
[796c276]103 srv/fs/ext2fs \
[d3a9ae74]104 srv/fs/ext4fs \
[6d5e378]105 srv/hid/compositor \
[c6f08726]106 srv/hid/console \
[527298a]107 srv/hid/s3c24xx_ts \
[f66ca57f]108 srv/hid/isdv4_tablet \
[5f88293]109 srv/hid/input \
[6d5e378]110 srv/hid/output \
[21a9869]111 srv/hid/remcons \
[a9b5b5f]112 srv/hw/char/s3c24xx_uart \
[5203e256]113 drv/infrastructure/root \
114 drv/infrastructure/rootvirt \
[9904eb90]115 drv/block/ahci \
[4d8e203]116 drv/char/i8042 \
[38994e3]117 drv/char/ps2mouse \
[4d8e203]118 drv/char/xtkbd \
[5203e256]119 drv/test/test1 \
120 drv/test/test2 \
121 drv/test/test3 \
[6d5e378]122 drv/fb/kfb \
[5203e256]123 drv/bus/usb/ehci \
124 drv/bus/usb/ohci \
125 drv/bus/usb/uhci \
126 drv/bus/usb/uhcirh \
127 drv/bus/usb/usbflbk \
128 drv/bus/usb/usbhid \
129 drv/bus/usb/usbhub \
130 drv/bus/usb/usbmast \
131 drv/bus/usb/usbmid \
[00d7e1b]132 drv/bus/usb/vhc \
[9916841]133 drv/nic/ne2k \
[f0b74b2]134 drv/nic/e1k \
135 drv/nic/rtl8139
[14f1db0]136
[e76e833f]137ifeq ($(CONFIG_PCC),y)
138DIRS += \
139 app/cc \
140 app/ccom \
141 app/ccom/mkext \
142 app/cpp
143endif
144
[10a530cc]145ifeq ($(CONFIG_BINUTILS),y)
146DIRS += \
147 app/binutils
148endif
149
[3f0ea0e2]150ifeq ($(CONFIG_MSIM),y)
151DIRS += \
152 app/msim
153endif
154
[1b1164e8]155## Platform-specific hardware support
156#
[c2ee1c5c]157
[fcd7053]158ifeq ($(UARCH),amd64)
[acc7ce4]159 DIRS += \
[5203e256]160 drv/infrastructure/rootpc \
161 drv/bus/pci/pciintel \
162 drv/bus/isa \
163 drv/char/ns8250 \
[acc7ce4]164 srv/hw/irc/apic \
165 srv/hw/irc/i8259
[5a4c754]166endif
[41f7564]167
[fcd7053]168ifeq ($(UARCH),ia32)
[acc7ce4]169 DIRS += \
[5203e256]170 drv/infrastructure/rootpc \
171 drv/bus/pci/pciintel \
172 drv/bus/isa \
173 drv/char/ns8250 \
[acc7ce4]174 srv/hw/irc/apic \
175 srv/hw/irc/i8259
[37458472]176endif
[5a4c754]177
[3a2f8aa]178ifeq ($(UARCH),ppc32)
[73d288c]179 DIRS += \
[5203e256]180 drv/infrastructure/rootmac \
[cb3dbb63]181 drv/bus/pci/pciintel \
[73d288c]182 srv/hw/bus/cuda_adb
[3a2f8aa]183endif
184
[3e5a814]185ifeq ($(UARCH),sparc64)
[42742c5a]186 DIRS += \
[acc7ce4]187 srv/hw/irc/obio
[3e5a814]188endif
189
[1b1164e8]190## System libraries
191#
192
[63f8966]193LIBC = lib/c
[e035612]194LIBS = \
[63f8966]195 lib/fs \
196 lib/block \
[36a75a2]197 lib/clui \
[22cf42d9]198 lib/fmtutil \
[0feaae4]199 lib/scsi \
[e035612]200 lib/softint \
[e5773c6]201 lib/softfloat \
[c47e1a8]202 lib/drv \
[6d5e378]203 lib/graph \
204 lib/gui \
205 lib/softrend \
206 lib/draw \
[3bd76491]207 lib/net \
[00d7e1b]208 lib/nic \
[8d6c1f1]209 lib/ext2 \
[eb91db7]210 lib/ext4 \
[8d6c1f1]211 lib/usb \
212 lib/usbhost \
213 lib/usbdev \
214 lib/usbhid \
[2af29ed]215 lib/usbvirt \
[2d2b8e6]216 lib/posix
[e035612]217
218LIBC_BUILD = $(addsuffix .build,$(LIBC))
219LIBS_BUILD = $(addsuffix .build,$(LIBS))
[14f1db0]220LIBN_BUILD = $(addsuffix .build,$(LIBN))
221BUILDS := $(addsuffix .build,$(DIRS))
[e035612]222
[14f1db0]223CLEANS := $(addsuffix .clean,$(DIRS)) $(addsuffix .clean,$(LIBN)) $(addsuffix .clean,$(LIBS)) $(addsuffix .clean,$(LIBC))
[1b1164e8]224
[14f1db0]225.PHONY: all $(LIBC_BUILD) $(LIBS_BUILD) $(LIBN_BUILD) $(BUILDS) $(CLEANS) clean
[c2ee1c5c]226
[cc1f8d4]227all: $(BUILDS)
[c2ee1c5c]228
[25b0e6a]229clean: $(CLEANS)
[c2ee1c5c]230
[25b0e6a]231$(CLEANS):
[24d6efc]232 -$(MAKE) -C $(basename $@) clean
[c2ee1c5c]233
[14f1db0]234$(BUILDS): $(LIBC_BUILD) $(LIBS_BUILD) $(LIBN_BUILD)
235 $(MAKE) -C $(basename $@) all PRECHECK=$(PRECHECK)
236
237$(LIBN_BUILD): $(LIBC_BUILD) $(LIBS_BUILD)
[8786aa5]238 $(MAKE) -C $(basename $@) all PRECHECK=$(PRECHECK)
[e035612]239
240$(LIBS_BUILD): $(LIBC_BUILD)
[8786aa5]241 $(MAKE) -C $(basename $@) all PRECHECK=$(PRECHECK)
[e035612]242
243$(LIBC_BUILD):
[8786aa5]244 $(MAKE) -C $(basename $@) all PRECHECK=$(PRECHECK)
Note: See TracBrowser for help on using the repository browser.