]> Dogcows Code - chaz/tint2/blob - src/systray/Makefile
03a2270ae4c7ec16361ceb6c835f22111d7406a8
[chaz/tint2] / src / systray / Makefile
1 #-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#
2 # #
3 # Change these values to customize your installation and build process #
4 # #
5 #-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#
6
7 # Change this PREFIX to where you want docker to be installed
8 PREFIX=/usr/local
9 # Change this XLIBPATH to point to your X11 development package's installation
10 XLIBPATH=/usr/X11R6/lib
11
12 # Sets some flags for stricter compiling
13 CFLAGS=-pedantic -Wall -W -O
14
15 #-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#
16 # #
17 # Leave the rest of the Makefile alone if you want it to build! #
18 # #
19 #-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#
20
21 PACKAGE=docker
22 VERSION=1.5
23
24 target=docker
25 sources=docker.c kde.c icons.c xproperty.c net.c
26 headers=docker.h kde.h icons.h xproperty.h net.h version.h
27 extra=README COPYING version.h.in
28
29 all: $(target) $(sources) $(headers)
30 @echo Build Successful
31
32 $(target): $(sources:.c=.o)
33 $(CC) $(CFLAGS) -L$(XLIBPATH) -lX11 \
34 `pkg-config --libs glib-2.0` $^ -o $@
35
36 %.o: %.c
37 $(CC) -c $(CFLAGS) `pkg-config --cflags glib-2.0` $<
38
39 version.h: version.h.in Makefile
40 sed -e "s/@VERSION@/$(VERSION)/" version.h.in > $@
41
42 install: all
43 install $(target) $(PREFIX)/bin/$(target)
44
45 uninstall:
46 rm -f $(PREFIX)/$(target)
47
48 clean:
49 rm -rf .dist
50 rm -f core *.o .\#* *\~ $(target)
51
52 distclean: clean
53 rm -f version.h
54 rm -f $(PACKAGE)-*.tar.gz
55
56 dist: Makefile $(sources) $(headers) $(extra)
57 mkdir -p .dist/$(PACKAGE)-$(VERSION) && \
58 cp $^ .dist/$(PACKAGE)-$(VERSION) && \
59 tar -c -z -C .dist -f \
60 $(PACKAGE)-$(VERSION).tar.gz $(PACKAGE)-$(VERSION) && \
61 rm -rf .dist
62
63 love: $(sources)
64 touch $^
65
66 # local dependancies
67 docker.o: docker.c version.h kde.h icons.h docker.h net.h
68 icons.o: icons.c icons.h docker.h
69 kde.o: kde.c kde.h docker.h xproperty.h
70 net.o: net.c net.h docker.h icons.h
71 xproperty.o: xproperty.c xproperty.h docker.h
This page took 0.034507 seconds and 3 git commands to generate.