xref: /freebsd/include/Makefile (revision 123af6ec70016f5556da5972d4d63c7d175c06d3)
1#	@(#)Makefile	8.2 (Berkeley) 1/4/94
2# $FreeBSD$
3#
4# Doing a "make install" builds /usr/include.
5
6.include <src.opts.mk>
7
8PACKAGE=runtime
9TAGS+=	development
10CLEANFILES= osreldate.h version
11SUBDIR= arpa protocols rpcsvc rpc xlocale
12SUBDIR_PARALLEL=
13INCS=	a.out.h ar.h assert.h bitstring.h complex.h cpio.h _ctype.h ctype.h \
14	db.h \
15	dirent.h dlfcn.h elf.h elf-hints.h err.h fmtmsg.h fnmatch.h fstab.h \
16	fts.h ftw.h getopt.h glob.h grp.h \
17	ieeefp.h ifaddrs.h \
18	inttypes.h iso646.h kenv.h langinfo.h libgen.h limits.h link.h \
19	locale.h malloc.h malloc_np.h memory.h monetary.h mpool.h mqueue.h \
20	ndbm.h netconfig.h \
21	netdb.h nl_types.h nlist.h nss.h nsswitch.h paths.h \
22	printf.h proc_service.h pthread.h \
23	pthread_np.h pwd.h ranlib.h readpassphrase.h regex.h \
24	res_update.h resolv.h runetype.h search.h semaphore.h setjmp.h \
25	signal.h spawn.h stab.h stdalign.h stdbool.h stddef.h \
26	stdnoreturn.h stdio.h stdlib.h string.h stringlist.h \
27	strings.h sysexits.h tar.h termios.h tgmath.h \
28	time.h timeconv.h timers.h ttyent.h \
29	uchar.h ulimit.h unistd.h utime.h utmpx.h uuid.h varargs.h \
30	wchar.h wctype.h wordexp.h xlocale.h
31
32.PATH: ${SRCTOP}/contrib/libc-vis
33INCS+=	vis.h
34
35MHDRS=	float.h floatingpoint.h stdarg.h
36
37PHDRS=	sched.h _semaphore.h
38
39LHDRS=	aio.h errno.h fcntl.h linker_set.h poll.h stdatomic.h stdint.h \
40	syslog.h ucontext.h
41
42LDIRS=	bsm cam geom net net80211 netgraph netinet netinet6 \
43	netipsec netsmb nfs nfsclient nfsserver sys vm
44
45LSUBDIRS=	cam/ata cam/mmc cam/nvme cam/scsi \
46	dev/acpica dev/agp dev/an dev/bktr dev/ciss dev/filemon dev/firewire \
47	dev/hwpmc dev/hyperv \
48	dev/ic dev/iicbus dev/io dev/mfi dev/mmc dev/nvme \
49	dev/ofw dev/pbio dev/pci ${_dev_powermac_nvram} dev/ppbus dev/smbus \
50	dev/speaker dev/tcp_log dev/veriexec dev/vkbd dev/wi \
51	fs/devfs fs/fdescfs fs/msdosfs fs/nandfs fs/nfs fs/nullfs \
52	fs/procfs fs/smbfs fs/udf fs/unionfs \
53	geom/cache geom/concat geom/eli geom/gate geom/journal geom/label \
54	geom/mirror geom/mountver geom/multipath geom/nop \
55	geom/raid geom/raid3 geom/shsec geom/stripe geom/virstor \
56	net/altq \
57	netgraph/atm netgraph/netflow \
58	netinet/cc \
59	netinet/netdump \
60	security/audit \
61	security/mac_biba security/mac_bsdextended security/mac_lomac \
62	security/mac_mls security/mac_partition \
63	security/mac_veriexec \
64	sys/disk \
65	ufs/ffs ufs/ufs
66
67LSUBSUBDIRS=	dev/mpt/mpilib
68
69.if ${MK_BLUETOOTH} != "no"
70LSUBSUBDIRS+=	netgraph/bluetooth/include
71.endif
72
73.if ${MK_CUSE} != "no"
74LSUBDIRS+=	fs/cuse
75.endif
76
77.if ${MK_GSSAPI} != "no"
78SUBDIR+=	gssapi
79INCS+=		gssapi.h
80.endif
81
82.if ${MK_HESIOD} != "no"
83INCS+=	hesiod.h
84.endif
85
86# Handle the #define aliases for libiconv
87.if ${MK_ICONV} == "yes"
88INCS+=		iconv.h
89.endif
90
91.if ${MK_USB} != "no"
92LSUBDIRS+=	dev/usb
93.endif
94
95.if ${MACHINE_ARCH} == "powerpc" || ${MACHINE_ARCH} == "powerpc64"
96_dev_powermac_nvram=	dev/powermac_nvram
97.endif
98
99# Define SHARED to indicate whether you want symbolic links to the system
100# source (``symlinks''), or a separate copy (``copies'').  ``symlinks'' is
101# probably only useful for developers and should be avoided if you do not
102# wish to tie your /usr/include and /usr/src together.
103#SHARED=	symlinks
104SHARED?=	copies
105
106INCS+=	osreldate.h
107
108SYSDIR=			${SRCTOP}/sys
109NEWVERS_SH=		${SYSDIR}/conf/newvers.sh
110PARAM_H=		${SYSDIR}/sys/param.h
111MK_OSRELDATE_SH=	${.CURDIR}/mk-osreldate.sh
112
113SYMLINKS+= ${LIBDIR:C,[^/]+,..,g:C,^/,,}${INCLUDEDIR} ${LIBDIR}/include
114
115osreldate.h: ${NEWVERS_SH} ${PARAM_H} ${MK_OSRELDATE_SH}
116	env NEWVERS_SH=${NEWVERS_SH} PARAMFILE=${PARAM_H} SYSDIR=${SYSDIR} \
117	    sh ${MK_OSRELDATE_SH}
118
119.for i in ${LHDRS}
120INCSLINKS+=	sys/$i ${INCLUDEDIR}/$i
121.endfor
122.for i in ${MHDRS}
123INCSLINKS+=	machine/$i ${INCLUDEDIR}/$i
124.endfor
125.for i in ${PHDRS}
126INCSLINKS+=	sys/$i ${INCLUDEDIR}/$i
127.endfor
128
129.if ${MACHINE} != ${MACHINE_CPUARCH}
130_MARCHS=	${MACHINE_CPUARCH}
131.endif
132.if ${MACHINE_CPUARCH} == "i386" || ${MACHINE_CPUARCH} == "amd64"
133_MARCHS+=	x86
134.endif
135
136META_TARGETS+=	compat
137stage_includes: ${SHARED}
138SDESTDIR=	${SYSROOT:U${DESTDIR}}
139
140# Take care of stale directory-level symlinks.
141compat:
142.for i in ${LDIRS} ${LSUBDIRS} machine ${_MARCHS} crypto
143	if [ -L ${SDESTDIR}${INCLUDEDIR}/$i ]; then \
144		rm -f ${SDESTDIR}${INCLUDEDIR}/$i; \
145	fi
146.endfor
147	mtree -deU ${NO_ROOT:D-W} ${MTREE_FOLLOWS_SYMLINKS} \
148	    -f ${SRCTOP}/etc/mtree/BSD.include.dist \
149	    -p ${SDESTDIR}${INCLUDEDIR} > /dev/null
150
151copies: .PHONY .META
152.for i in ${LDIRS} ${LSUBDIRS} ${LSUBSUBDIRS} crypto machine machine/pc \
153	${_MARCHS}
154	if [ -d ${SDESTDIR}${INCLUDEDIR}/$i ]; then \
155		cd ${SDESTDIR}${INCLUDEDIR}/$i; \
156		for h in *.h; do \
157			if [ -L $$h ]; then rm -f $$h; fi; \
158		done; \
159	fi
160.endfor
161.for i in ${LDIRS} ${LSUBDIRS:Ndev/agp:Ndev/acpica:Ndev/bktr:Ndev/evdev:Ndev/hyperv:Ndev/nand:Ndev/pci:Ndev/veriexec} ${LSUBSUBDIRS}
162	cd ${SRCTOP}/sys; \
163	${INSTALL} -C ${TAG_ARGS} -o ${BINOWN} -g ${BINGRP} -m 444 $i/*.h \
164	    ${SDESTDIR}${INCLUDEDIR}/$i
165.endfor
166	cd ${SRCTOP}/sys/dev/acpica; \
167	${INSTALL} -C ${TAG_ARGS} -o ${BINOWN} -g ${BINGRP} -m 444 acpiio.h \
168	    ${SDESTDIR}${INCLUDEDIR}/dev/acpica; \
169	${INSTALL} -C ${TAG_ARGS} -o ${BINOWN} -g ${BINGRP} -m 444 acpi_hpet.h \
170	    ${SDESTDIR}${INCLUDEDIR}/dev/acpica
171	cd ${SRCTOP}/sys/dev/agp; \
172	${INSTALL} -C ${TAG_ARGS} -o ${BINOWN} -g ${BINGRP} -m 444 agpreg.h \
173	    ${SDESTDIR}${INCLUDEDIR}/dev/agp
174	cd ${SRCTOP}/sys/dev/bktr; \
175	${INSTALL} -C ${TAG_ARGS} -o ${BINOWN} -g ${BINGRP} -m 444 ioctl_*.h \
176	    ${SDESTDIR}${INCLUDEDIR}/dev/bktr
177.if ${MK_NAND} != "no"
178	cd ${SRCTOP}/sys/dev/nand; \
179	${INSTALL} -C ${TAG_ARGS} -o ${BINOWN} -g ${BINGRP} -m 444 nandsim.h \
180	    ${SDESTDIR}${INCLUDEDIR}/dev/nand; \
181	${INSTALL} -C ${TAG_ARGS} -o ${BINOWN} -g ${BINGRP} -m 444 nand_dev.h \
182	    ${SDESTDIR}${INCLUDEDIR}/dev/nand
183.endif
184	cd ${SRCTOP}/sys/dev/evdev; \
185	${INSTALL} -C -o ${BINOWN} -g ${BINGRP} -m 444 input.h \
186	    ${SDESTDIR}${INCLUDEDIR}/dev/evdev; \
187	${INSTALL} -C -o ${BINOWN} -g ${BINGRP} -m 444 input-event-codes.h \
188	    ${SDESTDIR}${INCLUDEDIR}/dev/evdev; \
189	${INSTALL} -C -o ${BINOWN} -g ${BINGRP} -m 444 uinput.h \
190	    ${SDESTDIR}${INCLUDEDIR}/dev/evdev
191	cd ${SRCTOP}/sys/dev/hyperv/include; \
192	${INSTALL} -C ${TAG_ARGS} -o ${BINOWN} -g ${BINGRP} -m 444 hyperv.h \
193	    ${SDESTDIR}${INCLUDEDIR}/dev/hyperv
194	cd ${SRCTOP}/sys/dev/hyperv/utilities; \
195	${INSTALL} -C ${TAG_ARGS} -o ${BINOWN} -g ${BINGRP} -m 444 hv_snapshot.h \
196	    ${SDESTDIR}${INCLUDEDIR}/dev/hyperv
197	cd ${SRCTOP}/sys/dev/pci; \
198	${INSTALL} -C ${TAG_ARGS} -o ${BINOWN} -g ${BINGRP} -m 444 pcireg.h \
199	    ${SDESTDIR}${INCLUDEDIR}/dev/pci
200	cd ${SRCTOP}/sys/dev/veriexec; \
201	${INSTALL} -C -o ${BINOWN} -g ${BINGRP} -m 444 veriexec_ioctl.h \
202	    ${SDESTDIR}${INCLUDEDIR}/dev/veriexec
203	cd ${SRCTOP}/sys/fs/cd9660/; \
204	${INSTALL} -C ${TAG_ARGS} -o ${BINOWN} -g ${BINGRP} -m 444 *.h \
205	    ${SDESTDIR}${INCLUDEDIR}/isofs/cd9660
206.if ${MK_IPFILTER} != "no"
207	cd ${SRCTOP}/sys/contrib/ipfilter/netinet; \
208	${INSTALL} -C ${TAG_ARGS} -o ${BINOWN} -g ${BINGRP} -m 444 *.h \
209	    ${SDESTDIR}${INCLUDEDIR}/netinet
210.endif
211.if ${MK_PF} != "no"
212	cd ${SRCTOP}/sys/netpfil/pf; \
213	${INSTALL} -C ${TAG_ARGS} -o ${BINOWN} -g ${BINGRP} -m 444 *.h \
214	    ${SDESTDIR}${INCLUDEDIR}/netpfil/pf
215.endif
216	cd ${SRCTOP}/sys/crypto; \
217	${INSTALL} -C ${TAG_ARGS} -o ${BINOWN} -g ${BINGRP} -m 444 rijndael/rijndael.h \
218	    ${SDESTDIR}${INCLUDEDIR}/crypto
219	cd ${SRCTOP}/sys/opencrypto; \
220	${INSTALL} -C ${TAG_ARGS} -o ${BINOWN} -g ${BINGRP} -m 444 *.h \
221	    ${SDESTDIR}${INCLUDEDIR}/crypto
222	cd ${SRCTOP}/sys/${MACHINE}/include; \
223	${INSTALL} -C ${TAG_ARGS} -o ${BINOWN} -g ${BINGRP} -m 444 *.h \
224	    ${SDESTDIR}${INCLUDEDIR}/machine
225.if exists(${SRCTOP}/sys/${MACHINE}/include/pc)
226	cd ${SRCTOP}/sys/${MACHINE}/include/pc; \
227	${INSTALL} -C ${TAG_ARGS} -o ${BINOWN} -g ${BINGRP} -m 444 *.h \
228	    ${SDESTDIR}${INCLUDEDIR}/machine/pc
229.endif
230.for _MARCH in ${_MARCHS}
231.if exists(${SRCTOP}/sys/${_MARCH}/include)
232	${INSTALL} -d ${TAG_ARGS} -o ${BINOWN} -g ${BINGRP} -m 755 \
233	    ${SDESTDIR}${INCLUDEDIR}/${_MARCH}; \
234	cd ${SRCTOP}/sys/${_MARCH}/include; \
235	${INSTALL} -C ${TAG_ARGS} -o ${BINOWN} -g ${BINGRP} -m 444 *.h \
236	    ${SDESTDIR}${INCLUDEDIR}/${_MARCH}
237.if exists(${SRCTOP}/sys/${_MARCH}/include/pc)
238	${INSTALL} -d ${TAG_ARGS} -o ${BINOWN} -g ${BINGRP} -m 755 \
239	    ${SDESTDIR}${INCLUDEDIR}/${_MARCH}/pc; \
240	cd ${SRCTOP}/sys/${_MARCH}/include/pc; \
241	${INSTALL} -C ${TAG_ARGS} -o ${BINOWN} -g ${BINGRP} -m 444 *.h \
242	    ${SDESTDIR}${INCLUDEDIR}/${_MARCH}/pc
243.endif
244.endif
245.endfor
246	cd ${SRCTOP}/sys/rpc; \
247	${INSTALL} -C ${TAG_ARGS} -o ${BINOWN} -g ${BINGRP} -m 444 types.h \
248	    ${SDESTDIR}${INCLUDEDIR}/rpc
249	cd ${SRCTOP}/sys/teken; \
250	${INSTALL} -C ${TAG_ARGS} -o ${BINOWN} -g ${BINGRP} -m 444 teken.h \
251	    ${SDESTDIR}${INCLUDEDIR}/teken
252.if ${MK_CDDL} != "no"
253	cd ${SRCTOP}/sys/cddl/contrib/opensolaris/uts/common/sys; \
254	${INSTALL} -C ${TAG_ARGS} -o ${BINOWN} -g ${BINGRP} -m 444 nvpair.h \
255	    ${SDESTDIR}${INCLUDEDIR}/sys
256.endif
257.if ${MK_MLX5TOOL} != "no"
258	cd ${SRCTOP}/sys/dev/mlx5; \
259	${INSTALL} -C ${TAG_ARGS} -o ${BINOWN} -g ${BINGRP} -m 444 mlx5io.h \
260	    ${SDESTDIR}${INCLUDEDIR}/dev/mlx5
261.endif
262
263symlinks: .PHONY .META
264	@${ECHO} "Setting up symlinks to kernel source tree..."
265.for i in ${LDIRS}
266	cd ${SRCTOP}/sys/$i; \
267	for h in *.h; do \
268		${INSTALL_SYMLINK} ${TAG_ARGS} ../../../sys/$i/$$h ${SDESTDIR}${INCLUDEDIR}/$i; \
269	done
270.endfor
271.for i in ${LSUBDIRS:Ndev/agp:Ndev/acpica:Ndev/bktr:Ndev/evdev:Ndev/hyperv:Ndev/nand:Ndev/pci:Ndev/veriexec}
272	cd ${SRCTOP}/sys/$i; \
273	for h in *.h; do \
274		${INSTALL_SYMLINK} ${TAG_ARGS} ../../../../sys/$i/$$h ${SDESTDIR}${INCLUDEDIR}/$i; \
275	done
276.endfor
277	cd ${SRCTOP}/sys/dev/acpica; \
278	for h in acpiio.h acpi_hpet.h; do \
279		${INSTALL_SYMLINK} ${TAG_ARGS} ../../../../sys/dev/acpica/$$h \
280		    ${SDESTDIR}${INCLUDEDIR}/dev/acpica; \
281	done
282	cd ${SRCTOP}/sys/dev/agp; \
283	for h in agpreg.h; do \
284		${INSTALL_SYMLINK} ${TAG_ARGS} ../../../../sys/dev/agp/$$h \
285		    ${SDESTDIR}${INCLUDEDIR}/dev/agp; \
286	done
287	cd ${SRCTOP}/sys/dev/bktr; \
288	for h in ioctl_*.h; do \
289		${INSTALL_SYMLINK} ${TAG_ARGS} ../../../../sys/dev/bktr/$$h \
290		    ${SDESTDIR}${INCLUDEDIR}/dev/bktr; \
291	done
292.if ${MK_NAND} != "no"
293	cd ${SRCTOP}/sys/dev/nand; \
294	for h in nandsim.h nand_dev.h; do \
295		${INSTALL_SYMLINK} ${TAG_ARGS} ../../../../sys/dev/nand/$$h \
296		    ${SDESTDIR}${INCLUDEDIR}/dev/nand; \
297	done
298.endif
299	cd ${SRCTOP}/sys/dev/evdev; \
300	for h in input.h input-event-codes.h uinput.h; do \
301		ln -fs ../../../../sys/dev/evdev/$$h \
302		    ${SDESTDIR}${INCLUDEDIR}/dev/evdev; \
303	done
304	cd ${SRCTOP}/sys/dev/hyperv/include; \
305	for h in hyperv.h; do \
306		${INSTALL_SYMLINK} ${TAG_ARGS} ../../../../sys/dev/hyperv/include/$$h \
307		    ${SDESTDIR}${INCLUDEDIR}/dev/hyperv; \
308	done
309	cd ${SRCTOP}/sys/dev/hyperv/utilities; \
310	for h in hv_snapshot.h; do \
311		${INSTALL_SYMLINK} ${TAG_ARGS} ../../../../sys/dev/hyperv/utilities/$$h \
312		    ${SDESTDIR}${INCLUDEDIR}/dev/hyperv; \
313	done
314	cd ${SRCTOP}/sys/dev/pci; \
315	for h in pcireg.h; do \
316		${INSTALL_SYMLINK} ${TAG_ARGS} ../../../../sys/dev/pci/$$h \
317		    ${SDESTDIR}${INCLUDEDIR}/dev/pci; \
318	done
319	cd ${SRCTOP}/sys/dev/veriexec; \
320	for h in veriexec_ioctl.h; do \
321		ln -fs ../../../../sys/dev/veriexec/$$h \
322		    ${SDESTDIR}${INCLUDEDIR}/dev/veriexec; \
323	done
324.for i in ${LSUBSUBDIRS}
325	cd ${SRCTOP}/sys/$i; \
326	for h in *.h; do \
327		${INSTALL_SYMLINK} ${TAG_ARGS} ../../../../../sys/$i/$$h ${SDESTDIR}${INCLUDEDIR}/$i; \
328	done
329.endfor
330.if ${MK_IPFILTER} != "no"
331	cd ${SRCTOP}/sys/contrib/ipfilter/netinet; \
332	for h in *.h; do \
333		${INSTALL_SYMLINK} ${TAG_ARGS} ../../../sys/contrib/ipfilter/netinet/$$h \
334		    ${SDESTDIR}${INCLUDEDIR}/netinet; \
335	done
336.endif
337.if ${MK_PF} != "no"
338	cd ${SRCTOP}/sys/netpfil/pf; \
339	for h in *.h; do \
340		${INSTALL_SYMLINK} ${TAG_ARGS} ../../../../sys/netpfil/pf/$$h \
341		    ${SDESTDIR}${INCLUDEDIR}/netpfil/pf; \
342	done
343.endif
344	cd ${SRCTOP}/sys/crypto; \
345	for h in rijndael/rijndael.h; do \
346		${INSTALL_SYMLINK} ${TAG_ARGS} ../../../sys/crypto/$$h \
347		    ${SDESTDIR}${INCLUDEDIR}/crypto; \
348	done
349	cd ${SRCTOP}/sys/opencrypto; \
350	for h in *.h; do \
351		${INSTALL_SYMLINK} ${TAG_ARGS} ../../../sys/opencrypto/$$h \
352		    ${SDESTDIR}${INCLUDEDIR}/crypto; \
353	done
354	cd ${SRCTOP}/sys/${MACHINE}/include; \
355	for h in *.h; do \
356		${INSTALL_SYMLINK} ${TAG_ARGS} ../../../sys/${MACHINE}/include/$$h \
357		    ${SDESTDIR}${INCLUDEDIR}/machine; \
358	done
359.if exists(${SRCTOP}/sys/${MACHINE}/include/pc)
360	cd ${SRCTOP}/sys/${MACHINE}/include/pc; \
361	for h in *.h; do \
362		${INSTALL_SYMLINK} ${TAG_ARGS} ../../../../sys/${MACHINE}/include/pc/$$h \
363		    ${SDESTDIR}${INCLUDEDIR}/machine/pc; \
364	done
365.endif
366.for _MARCH in ${_MARCHS}
367.if exists(${SRCTOP}/sys/${_MARCH}/include)
368	${INSTALL} -d ${TAG_ARGS} -o ${BINOWN} -g ${BINGRP} -m 755 \
369	    ${SDESTDIR}${INCLUDEDIR}/${_MARCH}; \
370	cd ${SRCTOP}/sys/${_MARCH}/include; \
371	for h in *.h; do \
372		${INSTALL_SYMLINK} ${TAG_ARGS} ../../../sys/${_MARCH}/include/$$h \
373		    ${SDESTDIR}${INCLUDEDIR}/${_MARCH}; \
374	done
375.if exists(${SRCTOP}/sys/${_MARCH}/include/pc)
376	${INSTALL} -d ${TAG_ARGS} -o ${BINOWN} -g ${BINGRP} -m 755 \
377	    ${SDESTDIR}${INCLUDEDIR}/${_MARCH}/pc; \
378	cd ${SRCTOP}/sys/${_MARCH}/include/pc; \
379	for h in *.h; do \
380		${INSTALL_SYMLINK} ${TAG_ARGS} ../../../../sys/${_MARCH}/include/pc/$$h \
381		    ${SDESTDIR}${INCLUDEDIR}/${_MARCH}/pc; \
382	done
383.endif
384.endif
385.endfor
386	cd ${SRCTOP}/sys/fs/cd9660; \
387	for h in *.h; do \
388		${INSTALL_SYMLINK} ${TAG_ARGS} ../../../../sys/fs/cd9660/$$h \
389		    ${SDESTDIR}${INCLUDEDIR}/isofs/cd9660; \
390	done
391	cd ${SRCTOP}/sys/rpc; \
392	for h in types.h; do \
393		${INSTALL_SYMLINK} ${TAG_ARGS} ../../../sys/rpc/$$h \
394		    ${SDESTDIR}${INCLUDEDIR}/rpc; \
395	done
396.if ${MK_CDDL} != "no"
397	${INSTALL_SYMLINK} ${TAG_ARGS} \
398	    ../../../sys/cddl/contrib/opensolaris/uts/common/sys/nvpair.h \
399	    ${SDESTDIR}${INCLUDEDIR}/sys
400.endif
401.if ${MK_MLX5TOOL} != "no"
402	${INSTALL_SYMLINK} ${TAG_ARGS} ../../../../sys/dev/mlx5/mlx5io.h \
403	    ${SDESTDIR}${INCLUDEDIR}/dev/mlx5
404.endif
405
406.include <bsd.prog.mk>
407
408installincludes: ${SHARED}
409${SHARED}: compat
410
411.if ${MACHINE} == "host" && !defined(_SKIP_BUILD)
412# we're here because we are building a sysroot...
413# we need MACHINE et al set correctly
414HOST_MACHINE!= uname -m
415HOST_MACHINE_ARCH!= uname -p
416MACHINE:= ${HOST_MACHINE}
417MACHINE_ARCH:= ${HOST_MACHINE_ARCH}
418.endif
419