source: mainline/uspace/Makefile@ 6aae539d

lfn serial ticket/834-toolchain-update topic/msim-upgrade topic/simplify-dev-export
Last change on this file since 6aae539d was d3a8e47, checked in by Martin Decky <martin@…>, 14 years ago

rename clip to clipboard

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