blob: 36cc92b00bf0d977d626bd8925c2076273160107 (
plain)
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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
|
--- a/Makefile
+++ b/Makefile
@@ -5,12 +5,10 @@
#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#
# Change this PREFIX to where you want docker to be installed
-PREFIX=/usr/local
-# Change this XLIBPATH to point to your X11 development package's installation
-XLIBPATH=/usr/X11R6/lib
+PREFIX = /usr
# Sets some flags for stricter compiling
-CFLAGS=-pedantic -Wall -W -O
+CFLAGS += -pedantic -Wall -W
#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#
# #
@@ -21,17 +19,17 @@
PACKAGE=docker
VERSION=1.5
-target=docker
+target=wmdocker
sources=docker.c kde.c icons.c xproperty.c net.c
headers=docker.h kde.h icons.h xproperty.h net.h version.h
-extra=README COPYING version.h.in
+extra=README version.h.in
all: $(target) $(sources) $(headers)
@echo Build Successful
$(target): $(sources:.c=.o)
- $(CC) $(CFLAGS) -L$(XLIBPATH) -lX11 \
- `pkg-config --libs glib-2.0` $^ -o $@
+ $(CC) $(LDFLAGS) $(CFLAGS) $^ -lX11 \
+ `${PKG_CONFIG} --libs glib-2.0` -o $@
%.o: %.c
$(CC) -c $(CFLAGS) `pkg-config --cflags glib-2.0` $<
@@ -40,7 +38,8 @@
sed -e "s/@VERSION@/$(VERSION)/" version.h.in > $@
install: all
- install $(target) $(PREFIX)/bin/$(target)
+ install -d $(DESTDIR)$(PREFIX)/bin
+ install $(target) $(DESTDIR)$(PREFIX)/bin/$(target)
uninstall:
rm -f $(PREFIX)/$(target)
|