source: mainline/uspace/Makefile@ ae49252

lfn serial ticket/834-toolchain-update topic/msim-upgrade topic/simplify-dev-export
Last change on this file since ae49252 was ae49252, checked in by Sean Bartell <wingedtachikoma@…>, 13 years ago

Merge mainline changes

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