summaryrefslogtreecommitdiff
path: root/x11-plugins/gkrellmlaunch/files/gkrellmlaunch-0.5-makefile.patch
blob: 8b0a4fee6669b070b986520838436d1c1920b846 (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
--- a/Makefile
+++ b/Makefile
@@ -4,21 +4,25 @@
 GTK_LIB = `pkg-config gtk+-2.0 --libs`
 
 
-FLAGS = -O2 -Wall -fPIC $(GTK_INCLUDE) -g
+FLAGS = -fPIC $(GTK_INCLUDE)
 #LIBS = $(GTK_LIB) $(IMLIB_LIB) -lefence
 LIBS = $(GTK_LIB) $(IMLIB_LIB)
 
-LFLAGS = -shared -W1 
+LFLAGS = -shared
 
-CC = gcc $(CFLAGS) $(FLAGS)
+CC = $(CC)
 
 OBJS = gkrellmlaunch.o
 
+all: gkrellmlaunch.so
+
+%.o: %.c
+	$(CC) $(CFLAGS) $(FLAGS) -c -o $@ $<
+
 gkrellmlaunch.so: $(OBJS)
-	$(CC) $(OBJS) -o gkrellmlaunch.so $(LFLAGS) $(LIBS)
+	$(CC) $(CFLAGS) $(LDFLAGS) $(FLAGS) $(OBJS) -o gkrellmlaunch.so $(LFLAGS) $(LIBS)
 
 clean:
 	rm -f *.o core *.so* *.bak *~
 
-gkrellmlaunch.o: gkrellmlaunch.c
-
+gkrellmlaunch.o: gkrellmlaunch.c
\ No newline at end of file