blob: df6d5b33aa21d98f3d0739afd229727791388218 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
|
diff -ur wmmixer-1.5.orig/Makefile wmmixer-1.5/Makefile
--- wmmixer-1.5.orig/Makefile 2002-06-25 23:13:11.000000000 +0300
+++ wmmixer-1.5/Makefile 2008-12-23 00:34:28.000000000 +0200
@@ -1,19 +1,12 @@
# $Id: wmmixer-1.5-respect_flags.patch,v 1.1 2008/12/22 22:51:03 ssuominen Exp $
-prefix = /usr/local
+prefix = /usr
exec_prefix = ${prefix}
bindir = ${exec_prefix}/bin
mandir = ${prefix}/share/man
-DESTDIR =
-
-CXX = g++
-CXXFLAGS = -O -Wall
-EXTRA_LIBS = -L/usr/X11R6/lib -lX11 -lXpm -lXext
-
-
-LD = g++
-LDFLAGS = -o $(EXECUTABLE) $(EXTRA_LIBDIRS) $(EXTRA_LIBS) $(CXXFLAGS)
+CXX ?= g++
+LIBS = -lX11 -lXpm -lXext
EXECUTABLE = wmmixer
OBJS = xhandler.o mixctl.o wmmixer.o exception.o
@@ -26,7 +19,7 @@
$(CXX) $(CXXFLAGS) -c -o $@ $<
$(EXECUTABLE): $(OBJS)
- $(LD) $(LDFLAGS) $(OBJS)
+ $(CXX) $(LDFLAGS) $(OBJS) $(LIBS) -o $(EXECUTABLE)
all: $(EXECUTABLE)
|