source: mainline/uspace/Makefile@ c53a705

lfn serial ticket/834-toolchain-update topic/msim-upgrade topic/simplify-dev-export
Last change on this file since c53a705 was db6e419, 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 \
[15f3c3f]67 srv/loc \
[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 \
[15f3c3f]81 srv/fs/locfs \
[796c276]82 srv/fs/ext2fs \
[c6f08726]83 srv/hid/console \
[527298a]84 srv/hid/s3c24xx_ts \
[b3d513f]85 srv/hid/fb \
[5f88293]86 srv/hid/input \
[849ed54]87 srv/hw/char/i8042 \
[a9b5b5f]88 srv/hw/char/s3c24xx_uart \
[f902d36]89 srv/hw/netif/ne2000 \
[14f1db0]90 srv/net/netif/lo \
91 srv/net/il/arp \
92 srv/net/il/ip \
93 srv/net/tl/icmp \
94 srv/net/tl/udp \
95 srv/net/tl/tcp \
96 srv/net/net \
[5203e256]97 drv/infrastructure/root \
98 drv/infrastructure/rootvirt \
99 drv/test/test1 \
100 drv/test/test2 \
101 drv/test/test3 \
102 drv/bus/usb/ehci \
103 drv/bus/usb/ohci \
104 drv/bus/usb/uhci \
105 drv/bus/usb/uhcirh \
106 drv/bus/usb/usbflbk \
107 drv/bus/usb/usbhid \
108 drv/bus/usb/usbhub \
109 drv/bus/usb/usbmast \
110 drv/bus/usb/usbmid \
111 drv/bus/usb/usbmouse \
112 drv/bus/usb/vhc
[14f1db0]113
114## Networking
115#
116
[59e9398b]117DIRS += \
118 srv/net/nil/eth \
119 srv/net/nil/nildummy
[1b1164e8]120
121## Platform-specific hardware support
122#
[c2ee1c5c]123
[fcd7053]124ifeq ($(UARCH),amd64)
[acc7ce4]125 DIRS += \
[5203e256]126 drv/infrastructure/rootpc \
127 drv/bus/pci/pciintel \
128 drv/bus/isa \
129 drv/char/ns8250 \
[acc7ce4]130 srv/hw/irc/apic \
131 srv/hw/irc/i8259
[5a4c754]132endif
[41f7564]133
[fcd7053]134ifeq ($(UARCH),ia32)
[acc7ce4]135 DIRS += \
[5203e256]136 drv/infrastructure/rootpc \
137 drv/bus/pci/pciintel \
138 drv/bus/isa \
139 drv/char/ns8250 \
[acc7ce4]140 srv/hw/irc/apic \
141 srv/hw/irc/i8259
[37458472]142endif
[5a4c754]143
[3a2f8aa]144ifeq ($(UARCH),ppc32)
[73d288c]145 DIRS += \
[5203e256]146 drv/infrastructure/rootmac \
[73d288c]147 srv/hw/bus/cuda_adb
[3a2f8aa]148endif
149
[3e5a814]150ifeq ($(UARCH),sparc64)
[42742c5a]151 DIRS += \
[acc7ce4]152 srv/hw/irc/obio
[3e5a814]153endif
154
[1b1164e8]155## System libraries
156#
157
[63f8966]158LIBC = lib/c
[e035612]159LIBS = \
[63f8966]160 lib/fs \
161 lib/block \
[36a75a2]162 lib/clui \
[0feaae4]163 lib/scsi \
[e035612]164 lib/softint \
[e5773c6]165 lib/softfloat \
[c47e1a8]166 lib/drv \
[f63a591d]167 lib/packet \
[67b05ff]168 lib/imgmap \
[2d2b8e6]169 lib/net \
[8d6c1f1]170 lib/ext2 \
171 lib/usb \
172 lib/usbhost \
173 lib/usbdev \
174 lib/usbhid \
[41811af]175 lib/usbvirt \
[2d2b8e6]176 lib/posix
[e035612]177
178LIBC_BUILD = $(addsuffix .build,$(LIBC))
179LIBS_BUILD = $(addsuffix .build,$(LIBS))
[14f1db0]180LIBN_BUILD = $(addsuffix .build,$(LIBN))
181BUILDS := $(addsuffix .build,$(DIRS))
[e035612]182
[14f1db0]183CLEANS := $(addsuffix .clean,$(DIRS)) $(addsuffix .clean,$(LIBN)) $(addsuffix .clean,$(LIBS)) $(addsuffix .clean,$(LIBC))
[1b1164e8]184
[14f1db0]185.PHONY: all $(LIBC_BUILD) $(LIBS_BUILD) $(LIBN_BUILD) $(BUILDS) $(CLEANS) clean
[c2ee1c5c]186
[cc1f8d4]187all: $(BUILDS)
[c2ee1c5c]188
[25b0e6a]189clean: $(CLEANS)
[c2ee1c5c]190
[25b0e6a]191$(CLEANS):
[24d6efc]192 -$(MAKE) -C $(basename $@) clean
[c2ee1c5c]193
[14f1db0]194$(BUILDS): $(LIBC_BUILD) $(LIBS_BUILD) $(LIBN_BUILD)
195 $(MAKE) -C $(basename $@) all PRECHECK=$(PRECHECK)
196
197$(LIBN_BUILD): $(LIBC_BUILD) $(LIBS_BUILD)
[8786aa5]198 $(MAKE) -C $(basename $@) all PRECHECK=$(PRECHECK)
[e035612]199
200$(LIBS_BUILD): $(LIBC_BUILD)
[8786aa5]201 $(MAKE) -C $(basename $@) all PRECHECK=$(PRECHECK)
[e035612]202
203$(LIBC_BUILD):
[8786aa5]204 $(MAKE) -C $(basename $@) all PRECHECK=$(PRECHECK)
Note: See TracBrowser for help on using the repository browser.