Gentoo Archives: gentoo-commits

From: "Jeroen Roovers (jer)" <jer@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in x11-misc/grabc/files: grabc-1.1-makefile.patch
Date: Mon, 08 Feb 2010 11:25:35
Message-Id: E1NeRkD-0001gj-H9@stork.gentoo.org
1 jer 10/02/08 11:25:33
2
3 Added: grabc-1.1-makefile.patch
4 Log:
5 Respect CC, LDFLAGS, CFLAGS (bug #241544). Use pkg-config.
6 (Portage version: 2.2_rc62/cvs/Linux i686)
7
8 Revision Changes Path
9 1.1 x11-misc/grabc/files/grabc-1.1-makefile.patch
10
11 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/x11-misc/grabc/files/grabc-1.1-makefile.patch?rev=1.1&view=markup
12 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/x11-misc/grabc/files/grabc-1.1-makefile.patch?rev=1.1&content-type=text/plain
13
14 Index: grabc-1.1-makefile.patch
15 ===================================================================
16 --- grabc1.1/Makefile.org 1997-03-17 06:51:39.000000000 +0100
17 +++ grabc1.1/Makefile 2010-02-08 12:18:34.000000000 +0100
18 @@ -2,17 +2,15 @@
19 # Makefile automatically generated by genmake 1.0, Mar-16-97
20 # genmake 1.0 by ma_muquit@××××.edu, RCS
21 ##
22 -CC= cc
23 DEFS=
24 PROGNAME= grabc
25 -LIBS= -L/usr/X11R6/lib -lX11
26 +LIBS= $(shell pkg-config --libs x11)
27
28 INCLUDES= -I.
29
30 -# replace -O with -g in order to debug
31 +# replace -O2 -pipe -Wall -march=athlon-xp with -g in order to debug
32
33 DEFINES= $(INCLUDES) $(DEFS) -D__USE_FIXED_PROTOTYPES__ -DSYS_UNIX=1
34 -CFLAGS= -O $(DEFINES)
35
36 SRCS = grabc.c
37
38 @@ -20,12 +18,12 @@
39
40 .c.o:
41 rm -f $@
42 - $(CC) $(CFLAGS) -c $*.c
43 + $(CC) $(CFLAGS) $(DEFINES) -c $*.c
44
45 all: $(PROGNAME)
46
47 $(PROGNAME) : $(OBJS)
48 - $(CC) $(CFLAGS) -o $(PROGNAME) $(OBJS) $(LIBS)
49 + $(CC) $(CFLAGS) $(LDFLAGS) -o $(PROGNAME) $(OBJS) $(LIBS)
50
51 clean:
52 rm -f $(OBJS) $(PROGNAME) core