Lines 3-24
Link Here
|
3 |
|
3 |
|
4 |
INSTALLDIR = /usr/lib/gkrellm2/plugins |
4 |
INSTALLDIR = /usr/lib/gkrellm2/plugins |
5 |
|
5 |
|
6 |
FLAGS = -O2 -Wall -fPIC $(GTK_INCLUDE) |
6 |
FLAGS = -fPIC $(GTK_INCLUDE) |
7 |
LIBS = $(GTK_LIB) |
7 |
LIBS = $(GTK_LIB) |
8 |
LFLAGS = -shared |
8 |
LFLAGS = -shared |
9 |
|
9 |
|
10 |
CC = gcc |
|
|
11 |
|
12 |
OBJS = gkrellfire.o |
10 |
OBJS = gkrellfire.o |
13 |
|
11 |
|
14 |
all: gkrellfire.so |
12 |
all: gkrellfire.so |
15 |
|
13 |
|
16 |
%.o: %.c |
14 |
%.o: %.c |
17 |
$(CC) $(CFLAGS) $(FLAGS) -c -o $@ $< |
15 |
$(CC) $(CFLAGS) $(LDFLAGS) $(FLAGS) -c -o $@ $< |
18 |
|
16 |
|
19 |
|
17 |
|
20 |
gkrellfire.so: $(OBJS) |
18 |
gkrellfire.so: $(OBJS) |
21 |
$(CC) $(CFLAGS) $(OBJS) -o gkrellfire.so $(LFLAGS) $(LIBS) |
19 |
$(CC) $(CFLAGS) $(LDFLAGS) $(OBJS) -o gkrellfire.so $(LFLAGS) $(LIBS) |
22 |
|
20 |
|
23 |
clean: |
21 |
clean: |
24 |
rm -f *.o core *.so* *.bak *~ |
22 |
rm -f *.o core *.so* *.bak *~ |