source: mainline/uspace/Makefile@ 95319bd

lfn serial ticket/834-toolchain-update topic/msim-upgrade topic/simplify-dev-export
Last change on this file since 95319bd was 95319bd, checked in by Stanislav Kozina <stanislav.kozina@…>, 16 years ago

Added dummy_load utility.
It just does some dummy load - either in uspace or in system.

  • Property mode set to 100644
File size: 3.9 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/edit \
38 app/getterm \
39 app/init \
40 app/klog \
41 app/mkfat \
42 app/redir \
43 app/taskdump \
44 app/tester \
45 app/tetris \
46 app/trace \
47 app/ps \
48 app/top \
49 app/uptime \
50 app/dummy_load \
51 srv/clip \
52 srv/devmap \
53 srv/loader \
54 srv/ns \
55 srv/taskmon \
56 srv/vfs \
57 srv/bd/ata_bd \
58 srv/bd/file_bd \
59 srv/bd/gxe_bd \
60 srv/bd/rd \
61 srv/bd/part/guid_part \
62 srv/bd/part/mbr_part \
63 srv/fs/fat \
64 srv/fs/tmpfs \
65 srv/fs/devfs \
66 srv/hid/adb_mouse \
67 srv/hid/char_mouse \
68 srv/hid/fb \
69 srv/hid/kbd \
70 srv/hw/char/i8042
71
72## Platform-specific hardware support
73#
74
75ifneq ($(UARCH),abs32le)
76 DIRS += srv/hid/console
77endif
78
79ifeq ($(UARCH),amd64)
80 DIRS += srv/hw/bus/pci
81endif
82
83ifeq ($(UARCH),ia32)
84 DIRS += srv/hw/bus/pci
85endif
86
87ifeq ($(UARCH),ppc32)
88 DIRS += srv/hw/bus/cuda_adb
89endif
90
91ifeq ($(UARCH),sparc64)
92 DIRS += \
93 srv/hw/cir/fhc \
94 srv/hw/cir/obio
95endif
96
97## Networking
98#
99
100ifeq ($(CONFIG_NETIF_DP8390),y)
101 DIRS += srv/net/netif/dp8390
102endif
103
104NETWORKING_COMMON = \
105 srv/net/netif/lo \
106 srv/net/nil/eth \
107 srv/net/nil/nildummy \
108 srv/net/net \
109 srv/net/net/start \
110 srv/net/socket \
111 srv/net/app/echo \
112 srv/net/app/ping \
113 srv/net/app/nettest1 \
114 srv/net/app/nettest2
115
116NETWORKING_MODULAR = \
117 srv/net/il/arp \
118 srv/net/il/ip \
119 srv/net/tl/icmp \
120 srv/net/tl/udp \
121 srv/net/tl/tcp
122
123## System libraries
124#
125
126LIBC = lib/c
127LIBS = \
128 lib/fs \
129 lib/block \
130 lib/softint \
131 lib/softfloat \
132
133ifeq ($(UARCH),amd64)
134 LIBS += lib/pci
135endif
136
137ifeq ($(UARCH),ia32)
138 LIBS += lib/pci
139endif
140
141
142LIBC_BUILD = $(addsuffix .build,$(LIBC))
143LIBS_BUILD = $(addsuffix .build,$(LIBS))
144
145ifeq ($(CONFIG_NETWORKING),modular)
146 BUILDS := $(addsuffix .build,$(DIRS)) $(addsuffix .build,$(NETWORKING_COMMON)) $(addsuffix .build,$(NETWORKING_MODULAR))
147endif
148
149ifeq ($(CONFIG_NETWORKING),module)
150 BUILDS := $(addsuffix .build,$(DIRS)) $(addsuffix .build,$(NETWORKING_COMMON))
151endif
152
153ifeq ($(CONFIG_NETWORKING),none)
154 BUILDS := $(addsuffix .build,$(DIRS))
155endif
156
157CLEANS := $(addsuffix .clean,$(DIRS)) $(addsuffix .clean,$(NETWORKING_COMMON)) $(addsuffix .clean,$(NETWORKING_MODULAR)) $(addsuffix .clean,$(LIBS)) $(addsuffix .clean,$(LIBC))
158
159.PHONY: all $(LIBC_BUILD) $(LIBS_BUILD) $(BUILDS) $(CLEANS) clean
160
161all: $(BUILDS)
162
163clean: $(CLEANS)
164
165$(CLEANS):
166 -$(MAKE) -C $(basename $@) clean
167
168$(BUILDS): $(LIBC_BUILD) $(LIBS_BUILD)
169 $(MAKE) -C $(basename $@) all PRECHECK=$(PRECHECK)
170
171$(LIBS_BUILD): $(LIBC_BUILD)
172 $(MAKE) -C $(basename $@) all PRECHECK=$(PRECHECK)
173
174$(LIBC_BUILD):
175 $(MAKE) -C $(basename $@) all PRECHECK=$(PRECHECK)
Note: See TracBrowser for help on using the repository browser.