source: mainline/uspace/Makefile@ 452268a1

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

uptime

  • Property mode set to 100644
File size: 3.9 KB
RevLine 
[c2ee1c5c]1#
[df4ed85]2# Copyright (c) 2005 Martin Decky
[c2ee1c5c]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
[177e4ea]29-include ../Makefile.common
[9a0367f]30-include ../Makefile.config
[c2ee1c5c]31
[1b1164e8]32## Common binaries
33#
34
[ecfd7e5]35DIRS = \
[b3d513f]36 app/bdsh \
37 app/edit \
38 app/getterm \
39 app/init \
40 app/klog \
[dccf721]41 app/mkfat \
[b3d513f]42 app/redir \
[336db295]43 app/taskdump \
[b3d513f]44 app/tester \
45 app/tetris \
46 app/trace \
[18b5402c]47 app/ps \
[5c058d50]48 app/top \
[c0379fc]49 app/uptime \
[b3d513f]50 srv/clip \
51 srv/devmap \
52 srv/loader \
53 srv/ns \
[a074b4f]54 srv/taskmon \
[b3d513f]55 srv/vfs \
[f8ef660]56 srv/bd/ata_bd \
[2a18193c]57 srv/bd/file_bd \
[44a53fd]58 srv/bd/gxe_bd \
[e7645de]59 srv/bd/rd \
[975e7e9]60 srv/bd/part/guid_part \
[b3d513f]61 srv/bd/part/mbr_part \
[c0cdcaf]62 srv/fs/fat \
[d5cdffe]63 srv/fs/tmpfs \
[a095d20]64 srv/fs/devfs \
[b73c26d]65 srv/hid/adb_mouse \
66 srv/hid/char_mouse \
[b3d513f]67 srv/hid/fb \
68 srv/hid/kbd \
[1b1164e8]69 srv/hw/char/i8042
70
71## Platform-specific hardware support
72#
[c2ee1c5c]73
[684f767]74ifneq ($(UARCH),abs32le)
75 DIRS += srv/hid/console
76endif
77
[fcd7053]78ifeq ($(UARCH),amd64)
[b3d513f]79 DIRS += srv/hw/bus/pci
[5a4c754]80endif
[41f7564]81
[fcd7053]82ifeq ($(UARCH),ia32)
[b3d513f]83 DIRS += srv/hw/bus/pci
[37458472]84endif
[5a4c754]85
[3a2f8aa]86ifeq ($(UARCH),ppc32)
87 DIRS += srv/hw/bus/cuda_adb
88endif
89
[3e5a814]90ifeq ($(UARCH),sparc64)
[42742c5a]91 DIRS += \
[b3d513f]92 srv/hw/cir/fhc \
93 srv/hw/cir/obio
[3e5a814]94endif
95
[1b1164e8]96## Networking
97#
98
99ifeq ($(CONFIG_NETIF_DP8390),y)
100 DIRS += srv/net/netif/dp8390
101endif
102
[63f8966]103NETWORKING_COMMON = \
[1b1164e8]104 srv/net/netif/lo \
105 srv/net/nil/eth \
106 srv/net/nil/nildummy \
107 srv/net/net \
108 srv/net/net/start \
109 srv/net/socket \
110 srv/net/app/echo \
111 srv/net/app/ping \
112 srv/net/app/nettest1 \
113 srv/net/app/nettest2
114
115NETWORKING_MODULAR = \
116 srv/net/il/arp \
117 srv/net/il/ip \
118 srv/net/tl/icmp \
119 srv/net/tl/udp \
120 srv/net/tl/tcp
121
122## System libraries
123#
124
[63f8966]125LIBC = lib/c
[e035612]126LIBS = \
[63f8966]127 lib/fs \
128 lib/block \
[e035612]129 lib/softint \
[e5773c6]130 lib/softfloat \
[e035612]131
[15eeb93]132ifeq ($(UARCH),amd64)
[63f8966]133 LIBS += lib/pci
[15eeb93]134endif
135
136ifeq ($(UARCH),ia32)
[63f8966]137 LIBS += lib/pci
[15eeb93]138endif
139
140
[e035612]141LIBC_BUILD = $(addsuffix .build,$(LIBC))
142LIBS_BUILD = $(addsuffix .build,$(LIBS))
143
[1b1164e8]144ifeq ($(CONFIG_NETWORKING),modular)
145 BUILDS := $(addsuffix .build,$(DIRS)) $(addsuffix .build,$(NETWORKING_COMMON)) $(addsuffix .build,$(NETWORKING_MODULAR))
146endif
147
148ifeq ($(CONFIG_NETWORKING),module)
149 BUILDS := $(addsuffix .build,$(DIRS)) $(addsuffix .build,$(NETWORKING_COMMON))
150endif
151
152ifeq ($(CONFIG_NETWORKING),none)
153 BUILDS := $(addsuffix .build,$(DIRS))
154endif
155
156CLEANS := $(addsuffix .clean,$(DIRS)) $(addsuffix .clean,$(NETWORKING_COMMON)) $(addsuffix .clean,$(NETWORKING_MODULAR)) $(addsuffix .clean,$(LIBS)) $(addsuffix .clean,$(LIBC))
[c2ee1c5c]157
[e035612]158.PHONY: all $(LIBC_BUILD) $(LIBS_BUILD) $(BUILDS) $(CLEANS) clean
[c2ee1c5c]159
[cc1f8d4]160all: $(BUILDS)
[c2ee1c5c]161
[25b0e6a]162clean: $(CLEANS)
[c2ee1c5c]163
[25b0e6a]164$(CLEANS):
[24d6efc]165 -$(MAKE) -C $(basename $@) clean
[c2ee1c5c]166
[e035612]167$(BUILDS): $(LIBC_BUILD) $(LIBS_BUILD)
[8786aa5]168 $(MAKE) -C $(basename $@) all PRECHECK=$(PRECHECK)
[e035612]169
170$(LIBS_BUILD): $(LIBC_BUILD)
[8786aa5]171 $(MAKE) -C $(basename $@) all PRECHECK=$(PRECHECK)
[e035612]172
173$(LIBC_BUILD):
[8786aa5]174 $(MAKE) -C $(basename $@) all PRECHECK=$(PRECHECK)
Note: See TracBrowser for help on using the repository browser.