source: mainline/uspace/Makefile@ e4f8c77

lfn serial ticket/834-toolchain-update topic/msim-upgrade topic/simplify-dev-export
Last change on this file since e4f8c77 was e4f8c77, checked in by Jiří Zárevúcky <zarevucky.jiri@…>, 14 years ago

Merge libposix.

  • Property mode set to 100644
File size: 4.5 KB
Line 
1#
2# Copyright (c) 2005 Martin Decky
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
29-include ../Makefile.common
30-include ../Makefile.config
31
32## Common binaries
33#
34
35DIRS = \
36 app/bdsh \
37 app/blkdump \
38 app/bnchmark \
39 app/cc \
40 app/ccom \
41 app/ccom/mkext \
42 app/cpp \
43 app/edit \
44 app/ext2info \
45 app/getterm \
46 app/init \
47 app/kill \
48 app/killall \
49 app/klog \
50 app/lsusb \
51 app/mkfat \
52 app/redir \
53 app/sbi \
54 app/stats \
55 app/taskdump \
56 app/tester \
57 app/testread \
58 app/tetris \
59 app/trace \
60 app/top \
61 app/usbinfo \
62 app/vuhid \
63 app/netecho \
64 app/nettest1 \
65 app/nettest2 \
66 app/ping \
67 app/websrv \
68 app/sysinfo \
69 app/mkbd \
70 srv/clip \
71 srv/devmap \
72 srv/devman \
73 srv/loader \
74 srv/ns \
75 srv/taskmon \
76 srv/vfs \
77 srv/bd/ata_bd \
78 srv/bd/file_bd \
79 srv/bd/gxe_bd \
80 srv/bd/rd \
81 srv/bd/part/guid_part \
82 srv/bd/part/mbr_part \
83 srv/fs/fat \
84 srv/fs/tmpfs \
85 srv/fs/devfs \
86 srv/fs/ext2fs \
87 srv/hid/s3c24xx_ts \
88 srv/hid/fb \
89 srv/hid/input \
90 srv/hw/char/i8042 \
91 srv/hw/char/s3c24xx_uart \
92 srv/hw/netif/ne2000 \
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 \
100 drv/infrastructure/root \
101 drv/infrastructure/rootvirt \
102 drv/test/test1 \
103 drv/test/test2 \
104 drv/test/test3 \
105 drv/bus/usb/ehci \
106 drv/bus/usb/ohci \
107 drv/bus/usb/uhci \
108 drv/bus/usb/uhcirh \
109 drv/bus/usb/usbflbk \
110 drv/bus/usb/usbhid \
111 drv/bus/usb/usbhub \
112 drv/bus/usb/usbmast \
113 drv/bus/usb/usbmid \
114 drv/bus/usb/usbmouse \
115 drv/bus/usb/vhc
116
117## Networking
118#
119
120DIRS += \
121 srv/net/nil/eth \
122 srv/net/nil/nildummy
123
124## Platform-specific hardware support
125#
126
127ifneq ($(UARCH),abs32le)
128 DIRS += srv/hid/console
129endif
130
131ifeq ($(UARCH),amd64)
132 DIRS += \
133 drv/infrastructure/rootpc \
134 drv/bus/pci/pciintel \
135 drv/bus/isa \
136 drv/char/ns8250 \
137 srv/hw/irc/apic \
138 srv/hw/irc/i8259
139endif
140
141ifeq ($(UARCH),ia32)
142 DIRS += \
143 drv/infrastructure/rootpc \
144 drv/bus/pci/pciintel \
145 drv/bus/isa \
146 drv/char/ns8250 \
147 srv/hw/irc/apic \
148 srv/hw/irc/i8259
149endif
150
151ifeq ($(UARCH),ppc32)
152 DIRS += \
153 drv/infrastructure/rootmac \
154 srv/hw/bus/cuda_adb
155endif
156
157ifeq ($(UARCH),sparc64)
158 DIRS += \
159 srv/hw/irc/obio
160endif
161
162## System libraries
163#
164
165LIBC = lib/c
166LIBS = \
167 lib/fs \
168 lib/block \
169 lib/clui \
170 lib/scsi \
171 lib/softint \
172 lib/softfloat \
173 lib/drv \
174 lib/packet \
175 lib/net \
176 lib/ext2 \
177 lib/usb \
178 lib/usbhost \
179 lib/usbdev \
180 lib/usbhid \
181 lib/usbvirt \
182 lib/posix
183
184LIBC_BUILD = $(addsuffix .build,$(LIBC))
185LIBS_BUILD = $(addsuffix .build,$(LIBS))
186LIBN_BUILD = $(addsuffix .build,$(LIBN))
187BUILDS := $(addsuffix .build,$(DIRS))
188
189CLEANS := $(addsuffix .clean,$(DIRS)) $(addsuffix .clean,$(LIBN)) $(addsuffix .clean,$(LIBS)) $(addsuffix .clean,$(LIBC))
190
191.PHONY: all $(LIBC_BUILD) $(LIBS_BUILD) $(LIBN_BUILD) $(BUILDS) $(CLEANS) clean
192
193all: $(BUILDS)
194
195clean: $(CLEANS)
196
197$(CLEANS):
198 -$(MAKE) -C $(basename $@) clean
199
200$(BUILDS): $(LIBC_BUILD) $(LIBS_BUILD) $(LIBN_BUILD)
201 $(MAKE) -C $(basename $@) all PRECHECK=$(PRECHECK)
202
203$(LIBN_BUILD): $(LIBC_BUILD) $(LIBS_BUILD)
204 $(MAKE) -C $(basename $@) all PRECHECK=$(PRECHECK)
205
206$(LIBS_BUILD): $(LIBC_BUILD)
207 $(MAKE) -C $(basename $@) all PRECHECK=$(PRECHECK)
208
209$(LIBC_BUILD):
210 $(MAKE) -C $(basename $@) all PRECHECK=$(PRECHECK)
Note: See TracBrowser for help on using the repository browser.