summaryrefslogtreecommitdiff
path: root/tools/adk/Makefile
blob: 6d02b0d62d17a106906c24b2cd50fe52cce852fa (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
# 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

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

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

${TOPDIR}/bin/tools/pt: $(TOPDIR)/bin/tools
	$(HOSTCC) -o $(TOPDIR)/bin/tools/pt pt.c

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

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

include $(TOPDIR)/mk/tools.mk