blob: 62b4f74faa91e974997fe1010a2e8babd11d7fe2 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
$NetBSD: patch-ad,v 1.2 2007/08/05 22:39:38 joerg Exp $
--- src/util/Makefile.am.orig 2007-05-16 17:34:44.000000000 +0200
+++ src/util/Makefile.am
@@ -1,11 +1,15 @@
# $XdotOrg: lib/X11/src/util/Makefile.am,v 1.4 2006-02-19 02:14:12 jamey Exp $
-noinst_PROGRAMS=makekeys
+noinst_PROGRAMS= makekeys$(EXEEXT) $(MAKEKEYS_PROG)
makekeys_CFLAGS=$(X11_CFLAGS)
+if CROSS_COMPILING
+MAKEKEYS_PROG= xmakekeys$(EXEEXT)
-#override CC = gcc
-LINK = $(CC) $(AM_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) $(LDFLAGS) -o $@
+xmakekeys$(EXEEXT): makekeys.c
+ $(CC_FOR_BUILD) $(X11_CFLAGS) $(CPPFLAGS_FOR_BUILD) \
+ $(CFLAGS_FOR_BUILD) $(LDFLAGS_FOR_BUILD) -o $@ makekeys.c
+endif
EXTRA_DIST = mkks.sh
|