blob: 91614ae32acbcd496ed2e88126344945e79da80f (
plain) (
blame)
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
|
Index: Makefile
diff -u Makefile.orig Makefile
--- Makefile.orig Mon Aug 26 18:11:28 2002
+++ Makefile Sat Aug 31 00:06:01 2002
@@ -3,25 +3,24 @@
# You may want to rename the binary-file.
BIN_FILENAME = gkrellmms
-GTK_INCLUDE ?= `pkg-config gtk+-2.0 --cflags`
-GTK_LIB ?= `pkg-config gtk+-2.0 --libs`
+GTK_INCLUDE ?= `pkg-config gtk+-2.0 gthread-2.0 --cflags`
+GTK_LIB ?= `pkg-config gtk+-2.0 gthread-2.0 --libs`
IMLIB_INCLUDE ?=
IMLIB_LIB ?=
XMMS_INCLUDE ?= `xmms-config --cflags`
XMMS_LIB ?= `xmms-config --libs`
PLUGIN_DIR ?= /usr/local/lib/gkrellm2/plugins
-FLAGS = -O2 -Wall -fPIC $(GTK_INCLUDE) $(IMLIB_INCLUDE) $(XMMS_INCLUDE)
+CFLAGS = -fPIC $(GTK_INCLUDE) $(IMLIB_INCLUDE) $(XMMS_INCLUDE)
LIBS = $(GTK_LIB) $(IMLIB_LIB) $(XMMS_LIB)
-LFLAGS = -shared -lpthread
-
-CC ?= gcc
-CC += $(CFLAGS) $(FLAGS)
+LFLAGS = -shared
OBJS = gkrellmms.o options.o playlist.o
+all: $(BIN_FILENAME).so
+
$(BIN_FILENAME).so: $(OBJS)
- $(CC) $(OBJS) -o $(BIN_FILENAME).so $(LFLAGS) $(LIBS)
+ $(CC) $(CFLAGS) $(OBJS) -o $(BIN_FILENAME).so $(LFLAGS) $(LIBS)
clean:
rm -f *.o core *.so* *.bak *~
|