blob: fbb360d4b07532c895f2b01c6e379067e102e98f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
$NetBSD: patch-ca,v 1.1 2007/08/06 13:47:39 joerg Exp $
--- src/mesa/x86/Makefile.orig 2007-08-06 05:42:04.000000000 +0200
+++ src/mesa/x86/Makefile
@@ -24,8 +24,13 @@ gen_matypes: gen_matypes.c
$(CC) $(INCLUDE_DIRS) $(CFLAGS) gen_matypes.c -o gen_matypes
# need some special rules here, unfortunately
+.if defined(CROSS_COMPILING)
+matypes.h: ../main/mtypes.h ../tnl/t_context.h gen_matypes.c
+ CFLAGS="${INCLUDE_DIRS} ${CFLAGS}" ./gen_matypes.sh > matypes.h
+.else
matypes.h: ../main/mtypes.h ../tnl/t_context.h gen_matypes
./gen_matypes > matypes.h
+.endif
common_x86_asm.o: matypes.h
3dnow_normal.o: matypes.h
|