|
Lines 7-20
Link Here
|
| 7 |
VERSION = $(shell perl -ne 'if (/^\s*\#define\s+VERSION\s+"(.+)"/){print $$1}' globals.h) |
7 |
VERSION = $(shell perl -ne 'if (/^\s*\#define\s+VERSION\s+"(.+)"/){print $$1}' globals.h) |
| 8 |
CC ?= gcc |
8 |
CC ?= gcc |
| 9 |
CFLAGS += -Wall -fPIC `pkg-config gtk+-2.0 --cflags` |
9 |
CFLAGS += -Wall -fPIC `pkg-config gtk+-2.0 --cflags` |
| 10 |
LDFLAGS += `curl-config --libs` |
10 |
LDFLAGS += `pkg-config gtk+-2.0 --libs` `curl-config --libs` |
| 11 |
|
11 |
|
| 12 |
.PHONY: all clean dist install install_lib install_local_lib install_home install_instructions deinstall uninstall test strip |
12 |
.PHONY: all clean dist install install_lib install_local_lib install_home install_instructions deinstall uninstall test strip |
| 13 |
|
13 |
|
| 14 |
all: gkrellmpc.so |
14 |
all: gkrellmpc.so |
| 15 |
|
15 |
|
| 16 |
gkrellmpc.so: $(OBJECTS) |
16 |
gkrellmpc.so: $(OBJECTS) |
| 17 |
$(CC) $(CFLAGS) $(LDFLAGS) -shared -o gkrellmpc.so $(OBJECTS) |
17 |
$(CC) $(CFLAGS) -shared -o gkrellmpc.so $(OBJECTS) $(LDFLAGS) |
| 18 |
|
18 |
|
| 19 |
%.o: %.c %.h globals.h |
19 |
%.o: %.c %.h globals.h |
| 20 |
$(CC) $(CFLAGS) -c -o $@ $< |
20 |
$(CC) $(CFLAGS) -c -o $@ $< |