summaryrefslogtreecommitdiff
path: root/ldso/Makefile
blob: aa37d2ea4f2216e2a8c16d308f10ae5c6f47df31 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
TOPDIR=../
include $(TOPDIR)Rules.mak

SUBDIRS = libdl
ALL_SUBDIRS = util libdl d-link

all:
	@if [ -d $(TOPDIR)ldso/d-link/$(TARGET_ARCH) ] ; then \
		$(MAKE) -C d-link; \
	fi;

shared:
	@if [ -d $(TOPDIR)ldso/d-link/$(TARGET_ARCH) ] ; then \
		set -e ; for d in $(SUBDIRS) ; do $(MAKE) -C $$d ; done \
	fi;

clean:
	set -e ; for d in $(ALL_SUBDIRS) ; do $(MAKE) -C $$d $@ ; done
	-find . -name '*~' | xargs rm -f