source: mainline/uspace/Makefile@ 1b054a6f

lfn serial ticket/834-toolchain-update topic/msim-upgrade topic/simplify-dev-export
Last change on this file since 1b054a6f was c196671, checked in by Vojtech Horky <vojtechhorky@…>, 13 years ago

Merge MSIM simulator port (#401)

Merged from lp:~vojtech-horky/helenos/msim.

Not all features work, but it is possible to boot HelenOS running in
MSIM that runs in HelenOS in Qemu
(i.e. host → Qemu → HelenOS → MSIM → HelenOS).

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