source: mainline/uspace/Makefile@ 7accfac

lfn serial ticket/834-toolchain-update topic/msim-upgrade topic/simplify-dev-export
Last change on this file since 7accfac was 1affcdf3, checked in by Maurizio Lombardi <m.lombardi85@…>, 14 years ago

Merge mainline changes

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