summaryrefslogtreecommitdiff
path: root/tools/adk/Makefile
blob: a7dee6a2eaed2b581e0114f284a30801b3253e79 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
# This file is part of the OpenADK project. OpenADK is copyrighted
# material, please see the LICENCE file in the top-level directory.

include $(TOPDIR)/rules.mk

$(TOPDIR)/bin/tools:
	@mkdir -p $(TOPDIR)/bin/tools

CCANDLD.c=	${HOSTCC} ${HOSTCFLAGS} ${HOSTCPPFLAGS} ${HOSTLDFLAGS}

${TOPDIR}/bin/tools/depmaker: $(TOPDIR)/bin/tools
	${CCANDLD.c} -o $(TOPDIR)/bin/tools/depmaker depmaker.c

${TOPDIR}/bin/tools/pkgrebuild: $(TOPDIR)/bin/tools
	${CCANDLD.c} -o $(TOPDIR)/bin/tools/pkgrebuild pkgrebuild.c strmap.c

${TOPDIR}/bin/tools/dkgetsz: ${TOPDIR}/bin/tools
	${CCANDLD.c} -Wall -o $@ dkgetsz.c

install: ${TOPDIR}/bin/tools/depmaker ${TOPDIR}/bin/tools/pkgrebuild \
	${TOPDIR}/bin/tools/dkgetsz

include $(TOPDIR)/mk/tools.mk