summaryrefslogtreecommitdiff
path: root/tools/adk/Makefile
blob: 02171c99b90734edc575711db0814fd17905529f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
# 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/dkgetsz: ${TOPDIR}/bin/tools
	${HOSTCC} -O2 -Wall -o $@ dkgetsz.c

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

include $(TOPDIR)/mk/tools.mk