source: mainline/uspace/Makefile@ 9350bfdd

lfn serial ticket/834-toolchain-update topic/msim-upgrade topic/simplify-dev-export
Last change on this file since 9350bfdd was f51f193, checked in by Petr Koupy <petr.koupy@…>, 14 years ago

Merge mainline changes.

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