]> Pileus Git - ~andy/sunrise/blob - x11-misc/xorg-edit/files/xorg-edit-06.08.02-makefile.patch
net-misc/sambascanner: Actually remove older version and patch.
[~andy/sunrise] / x11-misc / xorg-edit / files / xorg-edit-06.08.02-makefile.patch
1 diff -ru xorg-edit~/sources/Makefile xorg-edit/sources/Makefile
2 --- xorg-edit~/sources/Makefile 2006-08-12 20:46:06.000000000 +0200
3 +++ xorg-edit/sources/Makefile  2006-08-12 20:49:18.000000000 +0200
4 @@ -5,7 +5,9 @@
5  
6  # variables
7  
8 -CXX = `wx-config --cxx`
9 +CXX ?= `wx-config --cxx`
10 +LDFLAGS+=`wx-config --libs`
11 +CXXFLAGS+=`wx-config --cxxflags`
12  
13  PROGRAM = xorg-edit
14  
15 @@ -17,14 +19,12 @@
16  
17  all:    $(PROGRAM)
18  
19 -       rm -f *.o  
20  
21  $(PROGRAM): $(OBJECTS) 
22 -       $(CXX) -o $(PROGRAM) $(OBJECTS) `wx-config --libs`
23 -
24 -$(OBJECTS): $(SOURCES)
25 -       $(CXX) -c $(SOURCES) `wx-config --cxxflags` 
26 +       $(CXX) -o $(PROGRAM) $(OBJECTS) $(LDFLAGS)
27  
28 +%.o: %.c
29 +       $(CXX) -o $@ -c $< $(CXXFLAGS)
30  
31  clean: 
32         rm -f *.o $(PROGRAM)