File: Makefile

package info (click to toggle)
gkrellm-thinkbat 0.2.2-1
  • links: PTS
  • area: main
  • in suites: bullseye, buster, jessie, jessie-kfreebsd, lenny, sid, squeeze, stretch, wheezy
  • size: 92 kB
  • ctags: 67
  • sloc: ansic: 336; makefile: 68
file content (33 lines) | stat: -rw-r--r-- 1,024 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
VERSION = 0.2.2
CC = gcc
CFLAGS = -I. -Wall -pedantic -O2
INCLUDE = `pkg-config gtk+-2.0 --cflags` -fPIC -DVERSION=\"$(VERSION)\"
LFLAGS = -shared -lm
INSTALLDIR = $(DESTDIR)/usr/lib/gkrellm2/plugins/



all : gkrellm-thinkbat.so

gkrellm-thinkbat.so : gkrellm-thinkbat.o collect_data.o
	$(CC) $(INCLUDE) $(LFLAGS) -o gkrellm-thinkbat.so gkrellm-thinkbat.o collect_data.o

gkrellm-thinkbat.o : collect_data.h collect_data.o
	$(CC) $(INCLUDE) -c gkrellm-thinkbat.c

collect_data.o : collect_data.h
	$(CC) $(INCLUDE) -c collect_data.c

clean :
	rm -f *.o gkrellm-thinkbat.so

install : gkrellm-thinkbat.so
	install -d $(INSTALLDIR)
	install -c -s -m 644 gkrellm-thinkbat.so $(INSTALLDIR)

dist :
	rm -rf gkrellm-thinkbat-$(VERSION)
	mkdir gkrellm-thinkbat-$(VERSION)
	cp AUTHORS ChangeLog collect_data.c collect_data.h COPYING gkrellm-thinkbat.c gkrellm-thinkbat.h Makefile README TODO gkrellm-thinkbat-$(VERSION)
	tar -czf ../gkrellm-thinkbat-$(VERSION).tar.gz gkrellm-thinkbat-$(VERSION)
	rm -rf gkrellm-thinkbat-$(VERSION)