blob: 7bafad269aecc7a957be602aae34310418bf10d0 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
Description: some fixes to make it work with default debian/rules
Adjust PREFIX if DESTDIR is defined - for dh_install* to work correctly
Linker option -lX11 moved here from debian/rules
Author: Dmitry Borisyuk <q1werty@i.com.ua>
--- a/Makefile.common
+++ b/Makefile.common
@@ -15,8 +15,12 @@
endif
endif
+ifdef DESTDIR
+PREFIX := $(DESTDIR)/$(PREFIX)
+endif
+
CC = gcc
-LIBS = $(shell pkg-config --libs gtk+-2.0 gdk-pixbuf-2.0 gdk-pixbuf-xlib-2.0) -L/usr/X11R6/lib -lXmu
+LIBS = -lX11 $(shell pkg-config --libs gtk+-2.0 gdk-pixbuf-2.0 gdk-pixbuf-xlib-2.0) -L/usr/X11R6/lib -lXmu
INCS = $(shell pkg-config --cflags gtk+-2.0 gdk-pixbuf-2.0 gdk-pixbuf-xlib-2.0)
CFLAGS ?= -O2 # overwriten by command line or env. variable
CFLAGS += -Wall # always nice to have
|