Lines 1-16
Link Here
|
1 |
GTK_INCLUDE = `pkg-config gtk+-2.0 --cflags` |
1 |
GTK_INCLUDE = `pkg-config gtk+-2.0 --cflags` |
2 |
GTK_LIB = `pkg-config gtk+-2.0 --libs` |
2 |
GTK_LIB = `pkg-config gtk+-2.0 --libs` |
3 |
|
3 |
|
4 |
FLAGS = -O2 -Wall -fPIC $(GTK_INCLUDE) |
4 |
FLAGS = -fPIC $(GTK_INCLUDE) |
5 |
LIBS = $(GTK_LIB) |
5 |
LIBS = $(GTK_LIB) |
6 |
LFLAGS = -shared |
6 |
LFLAGS = -shared |
7 |
|
7 |
|
8 |
CC = gcc $(CFLAGS) $(FLAGS) |
8 |
CC = $(CC) |
9 |
|
9 |
|
10 |
OBJS = gkrellshoot.o |
10 |
OBJS = gkrellshoot.o |
11 |
|
11 |
|
|
|
12 |
all: gkrellshoot.so |
13 |
|
14 |
%.o: %.c |
15 |
$(CC) $(CFLAGS) $(LDFLAGS) $(FLAGS) -c -o $@ $< |
16 |
|
12 |
gkrellshoot.so: $(OBJS) |
17 |
gkrellshoot.so: $(OBJS) |
13 |
$(CC) $(OBJS) -o gkrellshoot.so $(LFLAGS) $(LIBS) |
18 |
$(CC) $(CFLAGS) $(LDFLAGS) $(FLAGS) $(OBJS) -o gkrellshoot.so $(LFLAGS) $(LIBS) |
14 |
|
19 |
|
15 |
clean: |
20 |
clean: |
16 |
rm -f *.o core *.so* *.bak *~ |
21 |
rm -f *.o core *.so* *.bak *~ |