Gentoo Archives: gentoo-commits

From: "Michele Noberasco (s4t4n)" <s4t4n@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in x11-plugins/wmlaptop/files: wmlaptop-1.3-Makefile.patch
Date: Thu, 09 Sep 2010 09:54:40
Message-Id: 20100909095432.7DC3F20054@flycatcher.gentoo.org
1 s4t4n 10/09/09 09:54:32
2
3 Added: wmlaptop-1.3-Makefile.patch
4 Log:
5 Patched Makefile to make it at least decent. Closes bug #336547.
6 (Portage version: 2.1.8.3/cvs/Linux i686)
7
8 Revision Changes Path
9 1.1 x11-plugins/wmlaptop/files/wmlaptop-1.3-Makefile.patch
10
11 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/x11-plugins/wmlaptop/files/wmlaptop-1.3-Makefile.patch?rev=1.1&view=markup
12 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/x11-plugins/wmlaptop/files/wmlaptop-1.3-Makefile.patch?rev=1.1&content-type=text/plain
13
14 Index: wmlaptop-1.3-Makefile.patch
15 ===================================================================
16 --- /Makefile 2010-09-09 13:44:07.000000000 +0200
17 +++ /Makefile.new 2010-09-09 13:47:40.000000000 +0200
18 @@ -1,14 +1,17 @@
19 -
20 +LIBDIR = -L/usr/X11R6/lib
21 +LIBS = -lXpm -lXext -lX11
22 +OBJS = main.o init.o event.o draw.o battery.o cpu.o autoscript.o pixmap.o
23 +EXE = wmlaptop
24
25
26 .c.o:
27 - $(CC) -c $< -o $*.o $(CFLAGS)
28 + $(CC) $(CFLAGS) -c $< -o $*.o
29
30 all: $(EXE)
31
32 $(EXE): $(OBJS)
33 ./buildCounter
34 - $(CC) -o $(EXE) $^ $(LIBDIR) $(LIBS)
35 + $(CC) $(LDFLAGS) -o $(EXE) $^ $(LIBDIR) $(LIBS)
36
37
38 clean:
39 @@ -20,7 +23,7 @@
40 reall: clean all
41
42 install:
43 - /usr/bin/install -c -o 0 -g 0 -s -m 755 $(EXE) $(INSTALLDIR)/$(EXE)
44 + /usr/bin/install -c -o 0 -g 0 -m 755 $(EXE) $(INSTALLDIR)/$(EXE)
45 chmod +s $(INSTALLDIR)/$(EXE)
46
47 uninstall: