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

SUBDIRS = util d-link libdl # man
TARGETDIR=/usr/$(TARGET_ARCH)-linux-uclibc



all:
	set -e ; for d in $(SUBDIRS) ; do $(MAKE) -C $$d ; done

install: all
	mkdir -p $(TARGETDIR)/etc
	mkdir -p $(TARGETDIR)/lib
	cp -a ./d-link/$(DLINKER).$(LDSO_VMAJOR) \
		./libdl/$(LIBDL).$(LDSO_VMAJOR) $(TARGETDIR)/lib 
	./util/ldconfig

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