Lines 6-24
Link Here
|
6 |
GKRELLM_INCLUDE = -I$(PREFIX)/include |
6 |
GKRELLM_INCLUDE = -I$(PREFIX)/include |
7 |
GTK_CFLAGS = `$(GTK_CONFIG) --cflags` |
7 |
GTK_CFLAGS = `$(GTK_CONFIG) --cflags` |
8 |
GTK_LIB = `$(GTK_CONFIG) --libs` |
8 |
GTK_LIB = `$(GTK_CONFIG) --libs` |
9 |
FLAGS = -Wall -fPIC $(GTK_CFLAGS) $(GKRELLM_INCLUDE) |
9 |
FLAGS = -fPIC $(GTK_CFLAGS) $(GKRELLM_INCLUDE) |
10 |
CFLAGS ?= -O -g |
|
|
11 |
CFLAGS += $(FLAGS) |
10 |
CFLAGS += $(FLAGS) |
12 |
CFLAGS += -DVERSION=\"$(VERSION)\" |
11 |
CFLAGS += -DVERSION=\"$(VERSION)\" |
13 |
LIBS = $(GTK_LIB) |
12 |
LIBS = $(GTK_LIB) |
14 |
LFLAGS = -shared |
13 |
LFLAGS = -shared |
15 |
CC ?= gcc |
14 |
CC = $(CC) |
16 |
INSTALL = install -c |
15 |
INSTALL = install -c |
17 |
INSTALL_PROGRAM = $(INSTALL) -s |
16 |
INSTALL_PROGRAM = $(INSTALL) -s |
18 |
OBJS = trayicons.o |
17 |
OBJS = trayicons.o |
19 |
|
18 |
|
20 |
trayicons.so: $(OBJS) |
19 |
trayicons.so: $(OBJS) |
21 |
$(CC) $(FLAGS) $(OBJS) -o trayicons.so $(LIBS) $(LFLAGS) |
20 |
$(CC) $(FLAGS) $(LDFLAGS) $(OBJS) -o trayicons.so $(LIBS) $(LFLAGS) |
22 |
|
21 |
|
23 |
clean: |
22 |
clean: |
24 |
rm -f *.o core *.so* *.bak *~ |
23 |
rm -f *.o core *.so* *.bak *~ |