blob: 37fd4fb074a974c66df5741e6f027098831f389a (
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
|
--- xrootconsole-0.6/Makefile.org 2004-02-20 22:53:28.000000000 +0100
+++ xrootconsole-0.6/Makefile 2010-02-08 12:01:11.000000000 +0100
@@ -43,20 +43,16 @@
else echo Bleeding Edge Version; \
fi;)
-CC = gcc
-CPPFLAGS =
-
# for production
-CFLAGS = -O2 -DNDEBUG -Wall "-DXROOTCONSOLE_VERSION=\"$(VERSION)\"" \
- -I /usr/X11R6/include
-LDFLAGS = -s
+CFLAGS += -DNDEBUG -Wall "-DXROOTCONSOLE_VERSION=\"$(VERSION)\"" \
+ $(shell pkg-config --cflags x11)
# for testing
#CFLAGS = -g -Wall "-DXROOTCONSOLE_VERSION=\"$(VERSION) (debug build)\"" \
-I /usr/X11R6/include
#LDFLAGS =
-LIBS = -L/usr/X11R6/lib -lX11 -lutil
+LIBS = $(shell pkg-config --libs x11) -lutil
OBJS = main.o util.o
@@ -76,5 +72,7 @@
rm -f $(EXEC) *.o core *~
install: $(EXEC)
- cp $(EXEC) $(BINDIR)
- cp $(MANFILE) $(MANDIR)
+ install -d $(BINDIR)
+ install -d $(MANDIR)
+ install $(EXEC) $(BINDIR)
+ install $(MANFILE) $(MANDIR)
|