source: mainline/uspace/Makefile@ 50985c34

lfn serial ticket/834-toolchain-update topic/msim-upgrade topic/simplify-dev-export
Last change on this file since 50985c34 was a54bd98, checked in by Sean Bartell <wingedtachikoma@…>, 13 years ago

Bithenge: binary blobs.

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