You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
36 lines
736 B
36 lines
736 B
--- 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
|