source: mainline/uspace/Makefile@ c76e926

lfn serial ticket/834-toolchain-update topic/msim-upgrade topic/simplify-dev-export
Last change on this file since c76e926 was c76e926, checked in by Jiri Svoboda <jiri@…>, 14 years ago

Sketch inet client API, inet server. Use inet client API for TCP, make TCP
compile again.

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