xref: /netbsd-src/sys/external/bsd/acpica/dist/generate/unix/Makefile (revision ca453df649ce9db45b64d73678ba06cbccf9aa11)
1#
2# Common make for acpica tools and utilities
3#
4
5#
6# Note: This makefile is intended to be used from within the native
7# ACPICA directory structure, from under generate/unix. It specifically
8# places all object files in a generate/unix subdirectory, not within
9# the various ACPICA source directories. This prevents collisions
10# between different compilations of the same source file with different
11# compile options, and prevents pollution of the source code.
12#
13include Makefile.config
14
15
16all:	${PROGS}
17${PROGS}: FORCE
18	@cd $@; make; ls -al $@
19
20clean:	FORCE
21	@for d in ${PROGS}; do \
22		(cd $$d; \
23		if [ $$? -ne 0 ]; then \
24			echo "Bad element of PROGS: <$$d>"; \
25		else \
26			pwd; make clean; \
27		fi); \
28	done
29
30install:	FORCE
31	@for d in ${PROGS}; do \
32		(cd $$d; \
33		if [ $$? -ne 0 ]; then \
34			echo "Bad element of PROGS: <$$d>"; \
35		else \
36			pwd; make install; \
37		fi); \
38	done
39
40FORCE:
41