Lines 3-19
Link Here
|
3 |
GTK_INCLUDE = `pkg-config gtk+-2.0 --cflags` |
3 |
GTK_INCLUDE = `pkg-config gtk+-2.0 --cflags` |
4 |
GTK_LIB = `pkg-config gtk+-2.0 --libs` |
4 |
GTK_LIB = `pkg-config gtk+-2.0 --libs` |
5 |
|
5 |
|
6 |
FLAGS = -O2 -Wall -fPIC $(GTK_INCLUDE) |
6 |
FLAGS = -fPIC $(GTK_INCLUDE) |
7 |
LIBS = $(GTK_LIB) |
7 |
LIBS = $(GTK_LIB) |
8 |
|
8 |
|
9 |
LFLAGS = -shared -lcpufreq |
9 |
LFLAGS = -shared -lcpufreq |
10 |
|
10 |
|
11 |
CC = gcc $(CFLAGS) $(FLAGS) |
11 |
CC = $(CC) |
12 |
|
12 |
|
13 |
OBJS = cpufreq.o |
13 |
OBJS = cpufreq.o |
14 |
|
14 |
|
|
|
15 |
all: cpufreq.so |
16 |
|
17 |
%.o: %.c |
18 |
$(CC) $(CFLAGS) $(FLAGS) -c -o $@ $< |
19 |
|
15 |
cpufreq.so: $(OBJS) |
20 |
cpufreq.so: $(OBJS) |
16 |
$(CC) $(OBJS) -o cpufreq.so $(LFLAGS) $(LIBS) |
21 |
$(CC) $(CFLAGS) $(FLAGS) $(LDFLAGS) $(OBJS) -o cpufreq.so $(LFLAGS) $(LIBS) |
17 |
|
22 |
|
18 |
install: cpufreq.so |
23 |
install: cpufreq.so |
19 |
install -D -m 755 -s cpufreq.so $(DESTDIR)/usr/lib/gkrellm2/plugins/cpufreq.so |
24 |
install -D -m 755 -s cpufreq.so $(DESTDIR)/usr/lib/gkrellm2/plugins/cpufreq.so |