Lines 9-20
Link Here
|
9 |
GTK_INCLUDE = $(shell pkg-config gtk+-2.0 --cflags) |
9 |
GTK_INCLUDE = $(shell pkg-config gtk+-2.0 --cflags) |
10 |
GTK_LIB = $(shell pkg-config gtk+-2.0 --libs) |
10 |
GTK_LIB = $(shell pkg-config gtk+-2.0 --libs) |
11 |
|
11 |
|
12 |
FLAGS = -O2 -Wall -fPIC $(GTK_INCLUDE) |
12 |
FLAGS = -fPIC $(GTK_INCLUDE) |
13 |
LIBS = $(GTK_LIB) |
13 |
LIBS = $(GTK_LIB) |
14 |
|
14 |
|
15 |
LFLAGS = -shared |
15 |
LFLAGS = -shared |
16 |
|
|
|
17 |
CC = gcc |
18 |
|
16 |
|
19 |
# |
17 |
# |
20 |
# files |
18 |
# files |
Lines 30-36
Link Here
|
30 |
|
28 |
|
31 |
|
29 |
|
32 |
%.o : %.c |
30 |
%.o : %.c |
33 |
$(CC) $(CFLAGS) $(FLAGS) -c $< -o $@ |
31 |
$(CC) $(CFLAGS) $(LDFLAGS) $(FLAGS) -c $< -o $@ |
34 |
|
32 |
|
35 |
|
33 |
|
36 |
all: |
34 |
all: |
Lines 41-47
Link Here
|
41 |
|
39 |
|
42 |
$(TARGET): $(OBJECTS) |
40 |
$(TARGET): $(OBJECTS) |
43 |
@echo -e "\n\n>> linking\n" |
41 |
@echo -e "\n\n>> linking\n" |
44 |
$(CC) $(OBJECTS) -o $@ $(LFLAGS) $(LIBS) |
42 |
$(CC) $(CFLAGS) $(LDFLAGS) $(OBJECTS) -o $@ $(LFLAGS) $(LIBS) |
45 |
@echo -e "\n<< done " |
43 |
@echo -e "\n<< done " |
46 |
|
44 |
|
47 |
install: gkrellm-imonc.so |
45 |
install: gkrellm-imonc.so |