1 #-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#
3 # Change these values to customize your installation and build process #
5 #-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#
7 # Change this PREFIX to where you want docker to be installed
9 # Change this XLIBPATH to point to your X11 development package's installation
10 XLIBPATH=/usr/X11R6/lib
12 # Sets some flags for stricter compiling
13 CFLAGS=-pedantic -Wall -W -O
15 #-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#
17 # Leave the rest of the Makefile alone if you want it to build! #
19 #-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#
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
29 all: $(target) $(sources) $(headers)
30 @echo Build Successful
32 $(target): $(sources:.c=.o)
33 $(CC) $(CFLAGS) -L$(XLIBPATH) -lX11 \
34 `pkg-config --libs glib-2.0` $^ -o $@
37 $(CC) -c $(CFLAGS) `pkg-config --cflags glib-2.0` $<
39 version.h: version.h.in Makefile
40 sed -e "s/@VERSION@/$(VERSION)/" version.h.in > $@
43 install $(target) $(PREFIX)/bin/$(target)
46 rm -f $(PREFIX)/$(target)
50 rm -f core *.o .\#* *\~ $(target)
54 rm -f $(PACKAGE)-*.tar.gz
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) && \
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