blob: 6d066178954b9f6d069d40d380b38bb5c4f9a7e3 [file] [log] [blame]
plars865695b2001-08-27 22:15:12 +00001#
2# Copyright (c) International Business Machines Corp., 2001
3#
4# This program is free software; you can redistribute it and/or modify
5# it under the terms of the GNU General Public License as published by
6# the Free Software Foundation; either version 2 of the License, or
7# (at your option) any later version.
8#
9# This program is distributed in the hope that it will be useful,
10# but WITHOUT ANY WARRANTY; without even the implied warranty of
11# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See
12# the GNU General Public License for more details.
13#
14# You should have received a copy of the GNU General Public License
15# along with this program; if not, write to the Free Software
vapier5366cb02006-08-21 06:58:33 +000016# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
plars865695b2001-08-27 22:15:12 +000017#
18
plars865695b2001-08-27 22:15:12 +000019DEBUG_CFLAGS=-O
20DEBUG_LDFLAGS=-s
robbiew2c235682002-11-18 20:37:04 +000021CFLAGS+=-I../../include -g -Wall
vapier5366cb02006-08-21 06:58:33 +000022LDLIBS+=
mridge58a4e0e2004-03-05 21:40:51 +000023EXCLUDE_DIR=epoll
vapier5366cb02006-08-21 06:58:33 +000024
mridge58a4e0e2004-03-05 21:40:51 +000025#
26# Commented this out since there are directories here we don't want built by default
27#
subrata_modakc4ef4802008-10-23 10:38:34 +000028SUBDIR = `ls */Makefile | sed "s/Makefile//g"`
vapier5366cb02006-08-21 06:58:33 +000029UCLINUX_SUBDIR = `ls */Makefile | sed "s/Makefile//g" | grep -vE "^fork|epoll|capget|capset|chmod|chown|llseek|nftw|clone|profil|getcontext"`
plars865695b2001-08-27 22:15:12 +000030
vapier5366cb02006-08-21 06:58:33 +000031all:
subrata_modak9a0748e2008-05-20 10:15:07 +000032 @set -e; for i in $(SUBDIR); do \
robbiew54757762003-03-04 16:13:34 +000033 $(MAKE) -C $$i all; \
plars865695b2001-08-27 22:15:12 +000034 done
35
36install:
subrata_modak9a0748e2008-05-20 10:15:07 +000037 @set -e; for i in $(SUBDIR); do \
robbiew54757762003-03-04 16:13:34 +000038 $(MAKE) -C $$i install; \
plars865695b2001-08-27 22:15:12 +000039 done
40
robbiewd34d5812005-07-11 22:28:09 +000041uclinux:
subrata_modak9a0748e2008-05-20 10:15:07 +000042 @set -e; for i in $(UCLINUX_SUBDIR); do \
robbiewd34d5812005-07-11 22:28:09 +000043 $(MAKE) -C $$i UCLINUX=1 all; \
44 done
45
46uclinux_install:
subrata_modak9a0748e2008-05-20 10:15:07 +000047 @set -e; for i in $(UCLINUX_SUBDIR); do \
robbiewd34d5812005-07-11 22:28:09 +000048 $(MAKE) -C $$i UCLINUX=1 all; \
49 done
50
plars865695b2001-08-27 22:15:12 +000051clean:
subrata_modak9a0748e2008-05-20 10:15:07 +000052 @set -e; for i in $(SUBDIR); do \
robbiew54757762003-03-04 16:13:34 +000053 $(MAKE) -C $$i clean; \
plars865695b2001-08-27 22:15:12 +000054 done
55