summaryrefslogtreecommitdiff
path: root/x11-plugins/gkrellm-volume/files/gkrellm-volume-2.1.13-makefile.patch
blob: cc0a16e31b88a62b56208d1c24944f289ebfce32 (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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
--- a/Makefile
+++ b/Makefile_new
@@ -3,7 +3,7 @@
 PACKAGE ?= gkrellm-volume
 LOCALEDIR ?= /usr/local/share/locale
 
-FLAGS += -DPACKAGE="\"$(PACKAGE)\"" 
+CFLAGS += -DPACKAGE="\"$(PACKAGE)\"" 
 export PACKAGE LOCALEDIR
 
 GTK_CONFIG = pkg-config gtk+-2.0
@@ -14,31 +14,32 @@
 GTK_CFLAGS = `$(GTK_CONFIG) --cflags` 
 GTK_LIB = `$(GTK_CONFIG) --libs`
 
-FLAGS = -O2 -Wall -fPIC $(GTK_CFLAGS) $(GKRELLM_INCLUDE)
+CFLAGS := $(CFLAGS) -fPIC $(GTK_CFLAGS) $(GKRELLM_INCLUDE)
 LIBS = $(GTK_LIB)
 LFLAGS = -shared
+LFLAGS += $(LDFLAGS)
 
 OBJS = volume.o mixer.o oss_mixer.o
 
 ifeq ($(enable_alsa),1)
-  FLAGS += -DALSA
+  CFLAGS += -DALSA
   LIBS += -lasound
   OBJS += alsa_mixer.o 
 endif
 
 ifeq ($(enable_nls),1)
-    FLAGS += -DENABLE_NLS -DLOCALEDIR=\"$(LOCALEDIR)\"
+    CFLAGS += -DENABLE_NLS -DLOCALEDIR=\"$(LOCALEDIR)\"
     export enable_nls
 endif
 
-CC = gcc $(CFLAGS) $(FLAGS)
+CC = $(CC)
 
 INSTALL = install -c
 INSTALL_PROGRAM = $(INSTALL) -s
 
 all:	volume.so
 	(cd po && ${MAKE} all )
-
+	
 volume.so: $(OBJS)
 	$(CC) $(OBJS) -o volume.so $(LIBS) $(LFLAGS)
 
@@ -50,5 +51,4 @@
 	(cd po && ${MAKE} install)
 	$(INSTALL_PROGRAM) volume.so $(PLUGIN_DIR)
 
-%.c.o: %.c
-
+%.c.o: %.c
\ No newline at end of file