xref: /freebsd/include/Makefile (revision 744bfb213144c63cbaf38d91a1c4f7aebb9b9fbc)
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
9CLEANFILES= osreldate.h version
10SUBDIR= arpa protocols rpcsvc rpc xlocale
11.if ${MACHINE_CPUARCH} == "amd64"
12SUBDIR+=	i386
13.endif
14SUBDIR_PARALLEL=
15INCS=	a.out.h ar.h assert.h bitstring.h complex.h cpio.h _ctype.h ctype.h \
16	db.h \
17	dirent.h dlfcn.h elf.h elf-hints.h err.h fmtmsg.h fnmatch.h fstab.h \
18	fts.h ftw.h getopt.h glob.h grp.h \
19	ieeefp.h ifaddrs.h \
20	inttypes.h iso646.h kenv.h langinfo.h libgen.h limits.h link.h \
21	locale.h malloc.h malloc_np.h memory.h monetary.h mpool.h mqueue.h \
22	ndbm.h netconfig.h \
23	netdb.h nl_types.h nlist.h nss.h nsswitch.h paths.h \
24	printf.h proc_service.h pthread.h \
25	pthread_np.h pwd.h ranlib.h readpassphrase.h regex.h \
26	res_update.h resolv.h runetype.h sched.h \
27	search.h semaphore.h setjmp.h \
28	signal.h spawn.h stab.h stdalign.h stdbool.h stddef.h \
29	stdnoreturn.h stdio.h stdlib.h string.h stringlist.h \
30	strings.h sysexits.h tar.h termios.h tgmath.h \
31	time.h timeconv.h timers.h ttyent.h \
32	uchar.h ulimit.h unistd.h utime.h utmpx.h uuid.h varargs.h \
33	wchar.h wctype.h wordexp.h xlocale.h
34
35.PATH: ${SRCTOP}/contrib/libc-vis
36INCS+=	vis.h
37
38MHDRS=	float.h floatingpoint.h stdarg.h
39
40PHDRS=	_semaphore.h
41
42LHDRS=	aio.h errno.h fcntl.h linker_set.h poll.h stdatomic.h stdint.h \
43	syslog.h ucontext.h
44
45LDIRS=	geom net net80211 netgraph netinet netinet6 \
46	netipsec netlink netsmb nfs nfsclient nfsserver sys vm
47
48LSUBDIRS=	dev/acpica dev/agp dev/ciss dev/filemon dev/firewire \
49	dev/hwpmc dev/hyperv \
50	dev/ic dev/iicbus dev/io dev/mfi dev/mmc dev/nvme \
51	dev/ofw dev/pbio dev/pci ${_dev_powermac_nvram} dev/ppbus dev/pwm \
52	dev/smbus dev/speaker dev/tcp_log dev/veriexec dev/vkbd dev/wg \
53	fs/devfs fs/fdescfs fs/msdosfs fs/nfs fs/nullfs \
54	fs/procfs fs/smbfs fs/udf fs/unionfs \
55	geom/cache geom/concat geom/eli geom/gate geom/journal geom/label \
56	geom/mirror geom/mountver geom/multipath geom/nop \
57	geom/raid geom/raid3 geom/shsec geom/stripe geom/union geom/virstor \
58	net/altq \
59	net/route \
60	netgraph/atm netgraph/netflow \
61	netinet/cc \
62	netinet/netdump \
63	netinet/tcp_stacks \
64	netlink/route \
65	security/mac_biba security/mac_bsdextended security/mac_lomac \
66	security/mac_mls security/mac_partition \
67	security/mac_veriexec \
68	sys/disk \
69	ufs/ffs ufs/ufs
70
71LSUBSUBDIRS=	dev/mpt/mpilib
72
73.PATH: ${SRCTOP}/sys/dev/acpica
74ACPICA=		acpi_hpet.h \
75		acpiio.h
76ACPICADIR=	${INCLUDEDIR}/dev/acpica
77
78.PATH: ${SRCTOP}/sys/dev/agp
79AGP=		agpreg.h
80AGPDIR=		${INCLUDEDIR}/dev/agp
81
82.PATH: ${SRCTOP}/sys/bsm
83BSM=		audit.h \
84		audit_errno.h \
85		audit_internal.h \
86		audit_record.h \
87		audit_domain.h \
88		audit_fcntl.h \
89		audit_kevents.h \
90		audit_socket_type.h
91BSMPACKAGE=	libbsm
92BSMDIR=		${INCLUDEDIR}/bsm
93
94.PATH: ${SRCTOP}/sys/security/audit
95SECAUDIT=	audit.h \
96		audit_ioctl.h \
97		audit_private.h
98SECAUDITPACKAGE=	libbsm
99SECAUDITDIR=	${INCLUDEDIR}/security/audit
100
101.PATH:	${SRCTOP}/sys/cam
102CAM=	cam.h \
103	cam_ccb.h \
104	cam_compat.h \
105	cam_debug.h \
106	cam_iosched.h \
107	cam_periph.h \
108	cam_queue.h \
109	cam_sim.h \
110	cam_xpt.h \
111	cam_xpt_internal.h \
112	cam_xpt_periph.h \
113	cam_xpt_sim.h
114CAMDIR=	${INCLUDEDIR}/cam
115
116.PATH: ${SRCTOP}/sys/cam/ata
117CAMATA=		ata_all.h
118CAMATADIR=	${INCLUDEDIR}/cam/ata
119
120.PATH: ${SRCTOP}/sys/cam/mmc
121CAMMMC=		mmc.h \
122		mmc_bus.h \
123		mmc_all.h
124CAMMMCDIR=	${INCLUDEDIR}/cam/mmc
125
126.PATH: ${SRCTOP}/sys/cam/nvme
127CAMNVME=	nvme_all.h
128CAMNVMEDIR=	${INCLUDEDIR}/cam/nvme
129
130.PATH: ${SRCTOP}/sys/cam/scsi
131CAMSCSI=	scsi_all.h \
132		scsi_cd.h \
133		scsi_ch.h \
134		scsi_da.h \
135		scsi_enc.h \
136		scsi_enc_internal.h \
137		scsi_iu.h \
138		scsi_message.h \
139		scsi_pass.h \
140		scsi_pt.h \
141		scsi_sa.h \
142		scsi_ses.h \
143		scsi_sg.h \
144		scsi_targetio.h \
145		smp_all.h
146CAMSCSIDIR=	${INCLUDEDIR}/cam/scsi
147
148.PATH: ${SRCTOP}/sys/fs/cd9660
149FS9660=		cd9660_mount.h \
150		cd9660_node.h \
151		cd9660_rrip.h \
152		iso.h \
153		iso_rrip.h
154FS9660DIR=	${INCLUDEDIR}/isofs/cd9660
155
156.PATH: ${SRCTOP}/sys/dev/evdev
157EVDEV=		input.h \
158		input-event-codes.h \
159		uinput.h
160EVDEVDIR=	${INCLUDEDIR}/dev/evdev
161
162.PATH: ${SRCTOP}/sys/dev/hid
163HID=		hid.h \
164		hidraw.h
165HIDDIR=		${INCLUDEDIR}/dev/hid
166
167.PATH: ${SRCTOP}/sys/dev/hyperv/include ${SRCTOP}/sys/dev/hyperv/utilities
168HYPERV=		hv_snapshot.h \
169		hyperv.h
170HYPERVDIR=	${INCLUDEDIR}/dev/hyperv
171
172.PATH: ${SRCTOP}/sys/opencrypto
173OPENCRYPTO=	cryptodev.h
174OPENCRYPTODIR=	${INCLUDEDIR}/crypto
175
176.PATH: ${SRCTOP}/sys/dev/pci
177PCI=		pcireg.h
178PCIDIR=		${INCLUDEDIR}/dev/pci
179
180.PATH: ${SRCTOP}/sys/dev/veriexec
181VERIEXEC=	veriexec_ioctl.h
182VERIEXECDIR=	${INCLUDEDIR}/dev/veriexec
183
184.PATH: ${SRCTOP}/sys/netpfil/ipfilter/netinet
185IPFILTER=	ip_auth.h \
186		ip_compat.h \
187		ip_dstlist.h \
188		ip_fil.h \
189		ip_frag.h \
190		ip_htable.h \
191		ip_lookup.h \
192		ip_nat.h \
193		ip_pool.h \
194		ip_proxy.h \
195		ip_rules.h \
196		ip_scan.h \
197		ip_state.h \
198		ip_sync.h \
199		ipf_rb.h \
200		ipl.h \
201		radix_ipf.h
202IPFILTERDIR=	${INCLUDEDIR}/netinet
203
204.PATH: ${SRCTOP}/sys/netpfil/pf
205PF=		pf.h \
206		pf_altq.h \
207		pf_mtag.h
208PFPACKAGE=	pf
209PFDIR=	${INCLUDEDIR}/netpfil/pf
210
211.PATH: ${SRCTOP}/sys/rpc
212RPC=		rpcsec_tls.h \
213		types.h
214RPCDIR=		${INCLUDEDIR}/rpc
215
216.PATH: ${SRCTOP}/sys/teken
217TEKEN=		teken.h
218TEKENDIR=	${INCLUDEDIR}/teken
219
220.PATH: ${SRCTOP}/sys/contrib/openzfs/include/sys
221NVPAIR=		nvpair.h
222NVPAIRDIR=	${INCLUDEDIR}/sys
223
224.PATH: ${SRCTOP}/sys/dev/mlx5
225MLX5=		mlx5io.h
226MLX5DIR=	${INCLUDEDIR}/dev/mlx5
227
228.PATH: ${SRCTOP}/sys/dev/wg
229WG=		if_wg.h
230WGDIR=		${INCLUDEDIR}/dev/wg
231
232INCSGROUPS=	INCS \
233		ACPICA \
234		AGP \
235		BSM \
236		CAM \
237		CAMATA \
238		CAMMMC \
239		CAMNVME \
240		CAMSCSI \
241		CRYPTO \
242		EVDEV \
243		FS9660 \
244		HID \
245		HYPERV \
246		OPENCRYPTO \
247		PCI \
248		RPC \
249		SECAUDIT \
250		TEKEN \
251		VERIEXEC \
252		WG
253
254.if ${MK_IPFILTER} != "no"
255INCSGROUPS+=	IPFILTER
256.endif
257
258.if ${MK_PF} != "no"
259INCSGROUPS+=	PF
260.endif
261
262.if ${MK_CDDL} != "no"
263INCSGROUPS+=	NVPAIR
264.endif
265
266.if ${MK_MLX5TOOL} != "no"
267INCSGROUPS+=	MLX5
268.endif
269
270.if ${MK_BLUETOOTH} != "no"
271LSUBSUBDIRS+=	netgraph/bluetooth/include
272.endif
273
274.if ${MK_CUSE} != "no"
275LSUBDIRS+=	fs/cuse
276.endif
277
278.if ${MK_GSSAPI} != "no"
279SUBDIR+=	gssapi
280INCS+=		gssapi.h
281.endif
282
283.if ${MK_HESIOD} != "no"
284INCS+=	hesiod.h
285.endif
286
287# Handle the #define aliases for libiconv
288.if ${MK_ICONV} == "yes"
289INCS+=		iconv.h
290.endif
291
292.if ${MK_USB} != "no"
293LSUBDIRS+=	dev/usb
294.endif
295
296.if ${MACHINE_CPUARCH} == "powerpc" && ${MACHINE_ARCH} != "powerpcspe"
297_dev_powermac_nvram=	dev/powermac_nvram
298.endif
299
300# Define SHARED to indicate whether you want symbolic links to the system
301# source (``symlinks''), or a separate copy (``copies'').  ``symlinks'' is
302# probably only useful for developers and should be avoided if you do not
303# wish to tie your /usr/include and /usr/src together.
304#SHARED=	symlinks
305SHARED?=	copies
306
307INCS+=	osreldate.h
308
309SYSDIR=			${SRCTOP}/sys
310NEWVERS_SH=		${SYSDIR}/conf/newvers.sh
311PARAM_H=		${SYSDIR}/sys/param.h
312MK_OSRELDATE_SH=	${.CURDIR}/mk-osreldate.sh
313
314SYMLINKS+= ${LIBDIR:C,[^/]+,..,g:C,^/,,}${INCLUDEDIR} ${LIBDIR}/include
315
316osreldate.h: ${NEWVERS_SH} ${PARAM_H} ${MK_OSRELDATE_SH}
317	env NEWVERS_SH=${NEWVERS_SH} PARAMFILE=${PARAM_H} SYSDIR=${SYSDIR} \
318	    sh ${MK_OSRELDATE_SH}
319
320.for i in ${LHDRS}
321INCSLINKS+=	sys/$i ${INCLUDEDIR}/$i
322.endfor
323.for i in ${MHDRS}
324INCSLINKS+=	machine/$i ${INCLUDEDIR}/$i
325.endfor
326.for i in ${PHDRS}
327INCSLINKS+=	sys/$i ${INCLUDEDIR}/$i
328.endfor
329
330.if ${MACHINE} != ${MACHINE_CPUARCH}
331_MARCHS=	${MACHINE_CPUARCH}
332.endif
333.if ${MACHINE_CPUARCH} == "i386" || ${MACHINE_CPUARCH} == "amd64"
334_MARCHS+=	x86
335.endif
336
337META_TARGETS+=	compat
338stage_includes: ${SHARED}
339SDESTDIR=	${SYSROOT:U${DESTDIR}}
340
341# Take care of stale directory-level symlinks.
342# Note: The "|| true" after find is needed in case one of the directories does
343# not exist (yet).
344compat:
345	cd ${SDESTDIR}${INCLUDEDIR}; find ${LDIRS} ${LSUBDIRS} machine ${_MARCHS} \
346	    crypto -maxdepth 0 -mindepth 0 -type l -print -delete || true
347	mtree -deU ${NO_ROOT:D-W} ${MTREE_FOLLOWS_SYMLINKS} \
348	    -f ${SRCTOP}/etc/mtree/BSD.include.dist \
349	    -p ${SDESTDIR}${INCLUDEDIR} > /dev/null
350.if ${MACHINE_CPUARCH} == "amd64"
351	${INSTALL} -d ${TAG_ARGS} -o ${BINOWN} -g ${BINGRP} -m 755 \
352	    ${SDESTDIR}${INCLUDEDIR}/i386
353.endif
354
355copies: .PHONY .META
356	cd ${SDESTDIR}${INCLUDEDIR}; find ${LDIRS} ${LSUBDIRS} ${LSUBSUBDIRS} crypto \
357	    machine machine/pc ${_MARCHS} -maxdepth 1 -mindepth 1 -type l \
358	    -name "*.h" -print -delete || true
359.for i in ${LDIRS} ${LSUBDIRS:Ndev/agp:Ndev/acpica:Ndev/evdev:Ndev/hid:Ndev/hyperv:Ndev/pci:Ndev/veriexec} ${LSUBSUBDIRS}
360	cd ${SRCTOP}/sys; \
361	${INSTALL} -C ${TAG_ARGS} -o ${BINOWN} -g ${BINGRP} -m 444 $i/*.h \
362	    ${SDESTDIR}${INCLUDEDIR}/$i
363.endfor
364	cd ${SRCTOP}/sys/${MACHINE}/include; \
365	${INSTALL} -C ${TAG_ARGS} -o ${BINOWN} -g ${BINGRP} -m 444 *.h \
366	    ${SDESTDIR}${INCLUDEDIR}/machine
367.if exists(${SRCTOP}/sys/${MACHINE}/include/pc)
368	cd ${SRCTOP}/sys/${MACHINE}/include/pc; \
369	${INSTALL} -C ${TAG_ARGS} -o ${BINOWN} -g ${BINGRP} -m 444 *.h \
370	    ${SDESTDIR}${INCLUDEDIR}/machine/pc
371.endif
372.for _MARCH in ${_MARCHS}
373.if exists(${SRCTOP}/sys/${_MARCH}/include)
374	${INSTALL} -d ${TAG_ARGS} -o ${BINOWN} -g ${BINGRP} -m 755 \
375	    ${SDESTDIR}${INCLUDEDIR}/${_MARCH}; \
376	cd ${SRCTOP}/sys/${_MARCH}/include; \
377	${INSTALL} -C ${TAG_ARGS} -o ${BINOWN} -g ${BINGRP} -m 444 *.h \
378	    ${SDESTDIR}${INCLUDEDIR}/${_MARCH}
379.if exists(${SRCTOP}/sys/${_MARCH}/include/pc)
380	${INSTALL} -d ${TAG_ARGS} -o ${BINOWN} -g ${BINGRP} -m 755 \
381	    ${SDESTDIR}${INCLUDEDIR}/${_MARCH}/pc; \
382	cd ${SRCTOP}/sys/${_MARCH}/include/pc; \
383	${INSTALL} -C ${TAG_ARGS} -o ${BINOWN} -g ${BINGRP} -m 444 *.h \
384	    ${SDESTDIR}${INCLUDEDIR}/${_MARCH}/pc
385.endif
386.endif
387.endfor
388
389symlinks: .PHONY .META
390	@${ECHO} "Setting up symlinks to kernel source tree..."
391.for i in ${LDIRS}
392	cd ${SRCTOP}; ${INSTALL_SYMLINK} ${TAG_ARGS:D${TAG_ARGS},dev} \
393	    $$(printf '../../../%s ' sys/$i/*.h) ${SDESTDIR}${INCLUDEDIR}/$i
394.endfor
395.for i in ${LSUBDIRS:Ndev/agp:Ndev/acpica:Ndev/evdev:Ndev/hid:Ndev/hyperv:Ndev/pci:Ndev/veriexec}
396	cd ${SRCTOP}; ${INSTALL_SYMLINK} ${TAG_ARGS:D${TAG_ARGS},dev} \
397	    $$(printf '../../../../%s ' sys/$i/*.h) ${SDESTDIR}${INCLUDEDIR}/$i
398.endfor
399	${INSTALL_SYMLINK} ${TAG_ARGS:D${TAG_ARGS},dev} \
400	    $$(printf '../../../../sys/dev/acpica/%s ' acpiio.h acpi_hpet.h) \
401	    ${SDESTDIR}${INCLUDEDIR}/dev/acpica; \
402	${INSTALL_SYMLINK} ${TAG_ARGS:D${TAG_ARGS},dev} ../../../../sys/dev/agp/agpreg.h \
403	    ${SDESTDIR}${INCLUDEDIR}/dev/agp; \
404	${INSTALL_SYMLINK} ${TAG_ARGS:D${TAG_ARGS},dev} \
405	    $$(printf '../../../../sys/dev/evdev/%s ' input.h input-event-codes.h uinput.h) \
406	    ${SDESTDIR}${INCLUDEDIR}/dev/evdev;
407	${INSTALL_SYMLINK} ${TAG_ARGS:D${TAG_ARGS},dev} \
408	    $$(printf '../../../../sys/dev/hid/%s ' hid.h hidraw.h) \
409	    ${SDESTDIR}${INCLUDEDIR}/dev/hid; \
410	${INSTALL_SYMLINK} ${TAG_ARGS:D${TAG_ARGS},dev} ../../../../sys/dev/hyperv/include/hyperv.h \
411	    ${SDESTDIR}${INCLUDEDIR}/dev/hyperv; \
412	${INSTALL_SYMLINK} ${TAG_ARGS:D${TAG_ARGS},dev} ../../../../sys/dev/hyperv/utilities/hv_snapshot.h \
413	    ${SDESTDIR}${INCLUDEDIR}/dev/hyperv; \
414	${INSTALL_SYMLINK} ${TAG_ARGS:D${TAG_ARGS},dev} ../../../../sys/dev/pci/pcireg.h \
415	    ${SDESTDIR}${INCLUDEDIR}/dev/pci; \
416	${INSTALL_SYMLINK} ${TAG_ARGS:D${TAG_ARGS},dev} ../../../../sys/dev/veriexec/veriexec_ioctl.h \
417	    ${SDESTDIR}${INCLUDEDIR}/dev/veriexec;
418.for i in ${LSUBSUBDIRS}
419	cd ${SRCTOP}; ${INSTALL_SYMLINK} ${TAG_ARGS:D${TAG_ARGS},dev} \
420	    $$(printf '../../../../../%s ' sys/$i/*.h) ${SDESTDIR}${INCLUDEDIR}/$i
421.endfor
422.if ${MK_IPFILTER} != "no"
423	cd ${SRCTOP}; ${INSTALL_SYMLINK} ${TAG_ARGS:D${TAG_ARGS},dev} \
424	    $$(printf '../../../%s ' sys/netpfil/ipfilter/netinet/*.h) \
425	    ${SDESTDIR}${INCLUDEDIR}/netinet;
426.endif
427.if ${MK_PF} != "no"
428	cd ${SRCTOP}; ${INSTALL_SYMLINK} ${TAG_ARGS:D${TAG_ARGS},dev} \
429	    $$(printf '../../../../%s ' sys/netpfil/pf/*.h) \
430	    ${SDESTDIR}${INCLUDEDIR}/netpfil/pf;
431.endif
432	${INSTALL_SYMLINK} ${TAG_ARGS:D${TAG_ARGS},dev} ../../../sys/opencrypto/cryptodev.h \
433	    ${SDESTDIR}${INCLUDEDIR}/crypto; \
434	cd ${SRCTOP}; ${INSTALL_SYMLINK} ${TAG_ARGS:D${TAG_ARGS},dev} \
435	    $$(printf '../../../%s ' sys/${MACHINE}/include/*.h) \
436	    ${SDESTDIR}${INCLUDEDIR}/machine;
437.if exists(${SRCTOP}/sys/${MACHINE}/include/pc)
438	cd ${SRCTOP}; ${INSTALL_SYMLINK} ${TAG_ARGS:D${TAG_ARGS},dev} \
439	    $$(printf '../../../../%s ' sys/${MACHINE}/include/pc/*.h) \
440	    ${SDESTDIR}${INCLUDEDIR}/machine/pc;
441.endif
442.for _MARCH in ${_MARCHS}
443.if exists(${SRCTOP}/sys/${_MARCH}/include)
444	${INSTALL} -d ${TAG_ARGS:D${TAG_ARGS},dev} -o ${BINOWN} -g ${BINGRP} -m 755 \
445	    ${SDESTDIR}${INCLUDEDIR}/${_MARCH}; \
446	cd ${SRCTOP}; ${INSTALL_SYMLINK} ${TAG_ARGS:D${TAG_ARGS},dev} \
447	    $$(printf '../../../%s ' sys/${_MARCH}/include/*.h) \
448	    ${SDESTDIR}${INCLUDEDIR}/${_MARCH};
449.if exists(${SRCTOP}/sys/${_MARCH}/include/pc)
450	${INSTALL} -d ${TAG_ARGS:D${TAG_ARGS},dev} -o ${BINOWN} -g ${BINGRP} -m 755 \
451	    ${SDESTDIR}${INCLUDEDIR}/${_MARCH}/pc; \
452	cd ${SRCTOP}; ${INSTALL_SYMLINK} ${TAG_ARGS:D${TAG_ARGS},dev} \
453	    $$(printf '../../../../%s ' sys/${_MARCH}/include/pc/*.h) \
454	    ${SDESTDIR}${INCLUDEDIR}/${_MARCH}/pc;
455.endif
456.endif
457.endfor
458	cd ${SRCTOP}; ${INSTALL_SYMLINK} ${TAG_ARGS:D${TAG_ARGS},dev} \
459	    $$(printf '../../../../%s ' sys/fs/cd9660/*.h) \
460	    ${SDESTDIR}${INCLUDEDIR}/isofs/cd9660; \
461	cd ${SRCTOP}; ${INSTALL_SYMLINK} ${TAG_ARGS:D${TAG_ARGS},dev} \
462	    $$(printf '../../../sys/rpc/%s ' rpcsec_tls.h types.h) \
463	    ${SDESTDIR}${INCLUDEDIR}/rpc;
464	cd ${SRCTOP}/sys/rpc;
465.if ${MK_CDDL} != "no"
466	${INSTALL_SYMLINK} ${TAG_ARGS:D${TAG_ARGS},dev} \
467	    ../../../sys/contrib/openzfs/include/sys/nvpair.h \
468	    ${SDESTDIR}${INCLUDEDIR}/sys
469.endif
470.if ${MK_MLX5TOOL} != "no"
471	${INSTALL_SYMLINK} ${TAG_ARGS:D${TAG_ARGS},dev} ../../../../sys/dev/mlx5/mlx5io.h \
472	    ${SDESTDIR}${INCLUDEDIR}/dev/mlx5
473.endif
474
475.include <bsd.prog.mk>
476
477installincludes: ${SHARED}
478${SHARED}: compat
479
480.if ${MACHINE} == "host" && !defined(_SKIP_BUILD)
481# we're here because we are building a sysroot...
482# we need MACHINE et al set correctly
483HOST_MACHINE!= uname -m
484HOST_MACHINE_ARCH!= uname -p
485MACHINE:= ${HOST_MACHINE}
486MACHINE_ARCH:= ${HOST_MACHINE_ARCH}
487.endif
488