source: mainline/uspace/Makefile@ 8708be3b

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

make the e1k driver compile (non-fuctional)

  • Property mode set to 100644
File size: 4.6 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/devctl \
40 app/edit \
41 app/ext2info \
42 app/getterm \
43 app/init \
44 app/kill \
45 app/killall \
46 app/klog \
47 app/locinfo \
48 app/lsusb \
49 app/mkfat \
50 app/mkmfs \
51 app/redir \
52 app/sbi \
53 app/sportdmp \
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/nettest3 \
67 app/ping \
68 app/websrv \
69 app/sysinfo \
70 app/mkbd \
71 srv/clip \
72 srv/loc \
73 srv/devman \
74 srv/loader \
75 srv/ns \
76 srv/taskmon \
77 srv/vfs \
78 srv/bd/ata_bd \
79 srv/bd/file_bd \
80 srv/bd/gxe_bd \
81 srv/bd/rd \
82 srv/bd/part/guid_part \
83 srv/bd/part/mbr_part \
84 srv/fs/exfat \
85 srv/fs/fat \
86 srv/fs/cdfs \
87 srv/fs/tmpfs \
88 srv/fs/mfs \
89 srv/fs/locfs \
90 srv/fs/ext2fs \
91 srv/hid/console \
92 srv/hid/s3c24xx_ts \
93 srv/hid/fb \
94 srv/hid/input \
95 srv/hw/char/i8042 \
96 srv/hw/char/s3c24xx_uart \
97 srv/net/il/arp \
98 srv/net/il/ip \
99 srv/net/tl/icmp \
100 srv/net/tl/udp \
101 srv/net/tl/tcp \
102 srv/net/nil/eth \
103 srv/net/nil/nildummy \
104 srv/net/net \
105 drv/infrastructure/root \
106 drv/infrastructure/rootvirt \
107 drv/test/test1 \
108 drv/test/test2 \
109 drv/test/test3 \
110 drv/bus/usb/ehci \
111 drv/bus/usb/ohci \
112 drv/bus/usb/uhci \
113 drv/bus/usb/uhcirh \
114 drv/bus/usb/usbflbk \
115 drv/bus/usb/usbhid \
116 drv/bus/usb/usbhub \
117 drv/bus/usb/usbmast \
118 drv/bus/usb/usbmid \
119 drv/bus/usb/vhc \
120 drv/nic/lo \
121 drv/nic/ne2k \
122 drv/nic/e1k
123
124ifeq ($(CONFIG_PCC),y)
125DIRS += \
126 app/cc \
127 app/ccom \
128 app/ccom/mkext \
129 app/cpp
130endif
131
132ifeq ($(CONFIG_BINUTILS),y)
133DIRS += \
134 app/binutils
135endif
136
137## Platform-specific hardware support
138#
139
140ifeq ($(UARCH),amd64)
141 DIRS += \
142 drv/infrastructure/rootpc \
143 drv/bus/pci/pciintel \
144 drv/bus/isa \
145 drv/char/ns8250 \
146 srv/hw/irc/apic \
147 srv/hw/irc/i8259
148endif
149
150ifeq ($(UARCH),ia32)
151 DIRS += \
152 drv/infrastructure/rootpc \
153 drv/bus/pci/pciintel \
154 drv/bus/isa \
155 drv/char/ns8250 \
156 srv/hw/irc/apic \
157 srv/hw/irc/i8259
158endif
159
160ifeq ($(UARCH),ppc32)
161 DIRS += \
162 drv/infrastructure/rootmac \
163 srv/hw/bus/cuda_adb
164endif
165
166ifeq ($(UARCH),sparc64)
167 DIRS += \
168 srv/hw/irc/obio
169endif
170
171## System libraries
172#
173
174LIBC = lib/c
175LIBS = \
176 lib/fs \
177 lib/block \
178 lib/clui \
179 lib/fmtutil \
180 lib/scsi \
181 lib/softint \
182 lib/softfloat \
183 lib/drv \
184 lib/fb \
185 lib/net \
186 lib/nic \
187 lib/ext2 \
188 lib/usb \
189 lib/usbhost \
190 lib/usbdev \
191 lib/usbhid \
192 lib/usbvirt \
193 lib/posix
194
195LIBC_BUILD = $(addsuffix .build,$(LIBC))
196LIBS_BUILD = $(addsuffix .build,$(LIBS))
197LIBN_BUILD = $(addsuffix .build,$(LIBN))
198BUILDS := $(addsuffix .build,$(DIRS))
199
200CLEANS := $(addsuffix .clean,$(DIRS)) $(addsuffix .clean,$(LIBN)) $(addsuffix .clean,$(LIBS)) $(addsuffix .clean,$(LIBC))
201
202.PHONY: all $(LIBC_BUILD) $(LIBS_BUILD) $(LIBN_BUILD) $(BUILDS) $(CLEANS) clean
203
204all: $(BUILDS)
205
206clean: $(CLEANS)
207
208$(CLEANS):
209 -$(MAKE) -C $(basename $@) clean
210
211$(BUILDS): $(LIBC_BUILD) $(LIBS_BUILD) $(LIBN_BUILD)
212 $(MAKE) -C $(basename $@) all PRECHECK=$(PRECHECK)
213
214$(LIBN_BUILD): $(LIBC_BUILD) $(LIBS_BUILD)
215 $(MAKE) -C $(basename $@) all PRECHECK=$(PRECHECK)
216
217$(LIBS_BUILD): $(LIBC_BUILD)
218 $(MAKE) -C $(basename $@) all PRECHECK=$(PRECHECK)
219
220$(LIBC_BUILD):
221 $(MAKE) -C $(basename $@) all PRECHECK=$(PRECHECK)
Note: See TracBrowser for help on using the repository browser.