xref: /netbsd-src/share/examples/asm/Makefile.inc.inst (revision a5847cc334d9a7029f6352b847e9e8d71a0f9e0c)
1*a5847cc3Sjmmv# $NetBSD: Makefile.inc.inst,v 1.1 2011/11/12 01:18:41 jmmv Exp $
2*a5847cc3Sjmmv
3*a5847cc3Sjmmv# This common Makefile includes logic shared among all the assembly language
4*a5847cc3Sjmmv# sample programs.  The code in here is completely optional: i.e. each of the
5*a5847cc3Sjmmv# Makefiles inside a particular sample must not depend on this file at all.
6*a5847cc3Sjmmv# This is to allow the user to copy the sample directory anywhere else and
7*a5847cc3Sjmmv# build the code without having to care about other dependencies.
8*a5847cc3Sjmmv
9*a5847cc3Sjmmv# The check-implemented target is used by the tests in /usr/tests to determine
10*a5847cc3Sjmmv# whether a particular example should be built and tested on a platform.
11*a5847cc3Sjmmv.PHONY: check-implemented
12*a5847cc3Sjmmvcheck-implemented:
13*a5847cc3Sjmmv.if defined(PROG) && !empty(PROG)
14*a5847cc3Sjmmv	@echo yes
15*a5847cc3Sjmmv.else
16*a5847cc3Sjmmv	@echo no
17*a5847cc3Sjmmv.endif
18