blob: d74766457f62a8052602c148345ceff6ea56959a (
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
|
--- Makefile.orig Sun Feb 9 05:04:20 2003
+++ Makefile Tue Jan 27 16:34:31 2004
@@ -46,15 +46,17 @@
# To specify a different prefix, you can override this on the command line
# make PREFIX=/opt/dockapps install
-PREFIX= /usr/local
+X11BASE?= /usr/X11R6
+PREFIX?= ${X11BASE}
INSTALLDIR= install -d -m 755
-INSTALLBIN= install -m 555
-INSTALLMAN= install -m 444
-CC= gcc
-CFLAGS= -Wall -W -I/usr/X11R6/include -O
+INSTALLBIN= $(INSTALL_PROGRAM)
+INSTALLMAN= $(INSTALL_MAN)
+CC?= gcc
+CFLAGS?= -Wall -W
+CFLAGS+= -I${X11BASE}/include -I${LOCALBASE}/include
# The following line is what I use during development
#CFLAGS:= $(CFLAGS) -Werror -g
-LDFLAGS= -L/usr/X11R6/lib -lXpm -lXext -lX11 -lm -lcurl
+LDFLAGS+= -L${X11BASE}/lib -L${LOCALBASE}/lib -lXpm -lXext -lX11 -lm -lcurl
DOCS= wmget.1
VERSION:= $(shell grep '\#define WMGET_VERSION ' wmget.h \
@@ -99,5 +101,5 @@
dockapplib:
- make -C $(DALIBDIR)
+ ${MAKE} -C $(DALIBDIR)
@@ -121,4 +123,4 @@
- make -C dockapp clean
+ ${MAKE} -C dockapp clean
docclean:
rm -f $(DOCS)
|