Debian Codegraph @

source/Makefile

raw symbols ◀ ▶
Source reconstructed at patch state 1 of 2 — not the installed (fully patched) source.
2 Debian patches touch this file
1 # ---------------------------------------------------------------------------------
2 #
3 # Copyright (C) 2003-2018 Fons Adriaensen <[email protected]>
4 #
5 # This program is free software; you can redistribute it and/or modify
6 # it under the terms of the GNU General Public License as published by
7 # the Free Software Foundation; either version 2 of the License, or
8 # (at your option) any later version.
9 #
10 # This program is distributed in the hope that it will be useful,
11 # but WITHOUT ANY WARRANTY; without even the implied warranty of
12 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 # GNU General Public License for more details.
14 #
15 # You should have received a copy of the GNU General Public License
16 # along with this program. If not, see <http:#www.gnu.org/licenses/>.
17 #
18 # ---------------------------------------------------------------------------------
19
20
21 # Modify as required.
22 #
23 SUFFIX := $(shell uname -m | sed -e 's/^unknown/$//' -e 's/^i.86/$//' -e 's/^x86_64/$/64/')
24 PREFIX ?= /usr/local
25 INCDIR ?= $(PREFIX)/include
26 LIBDIR ?= $(PREFIX)/lib$(SUFFIX)
27
28 MAJVERS = 3
29 MINVERS = 9.2
30 VERSION = $(MAJVERS).$(MINVERS)
31
32
33 CPPFLAGS += $(shell pkgconf --cflags freetype2)
34 CPPFLAGS += -DVERSION=\"$(VERSION)\" -D_REENTRANT -D_POSIX_PTHREAD_SEMANTICS $(PCONFCFL)
35 CXXFLAGS += -Wall -O2 -fPIC
36 LDLIBS +=
37
38
39 CLXCLIENT_SO = libclxclient.so
40 CLXCLIENT_MAJ = $(CLXCLIENT_SO).$(MAJVERS)
41 CLXCLIENT_MIN = $(CLXCLIENT_MAJ).$(MINVERS)
42 CLXCLIENT_DEP = -lpthread -lXft -lX11 -lclthreads
43 CLXCLIENT_O = xdisplay.o xresman.o xhandler.o xwindow.o xdraw.o \
44 button.o textip.o enumip.o menuwin.o scale.o slider.o scroll.o mclist.o meter.o
45 CLXCLIENT_H = clxclient.h
46
47
48 $(CLXCLIENT_MIN): $(CLXCLIENT_O)
49 $(CXX) -shared $(LDFLAGS) -Wl,-soname,$(CLXCLIENT_MAJ) -o $(CLXCLIENT_MIN) $(CLXCLIENT_O) $(CLXCLIENT_DEP)
50
51
52 install: $(CLXCLIENT_MIN)
53 install -d $(DESTDIR)$(INCDIR)
54 install -d $(DESTDIR)$(PREFIX)/$(LIBDIR)
55 install -m 644 $(CLXCLIENT_H) $(DESTDIR)$(INCDIR)
56 install -m 755 $(CLXCLIENT_MIN) $(DESTDIR)$(PREFIX)/$(LIBDIR)
57 /sbin/ldconfig -n $(DESTDIR)$(PREFIX)/$(LIBDIR)
58 ln -sf $(CLXCLIENT_MIN) $(DESTDIR)$(PREFIX)/$(LIBDIR)/$(CLXCLIENT_SO)
59
60 uninstall:
61 rm -rf $(DESTDIR)$(INCDIR)/$(CLXCLIENT_H)
62 rm -rf $(DESTDIR)$(PREFIX)/$(LIBDIR)/libclxclient*
63
64 clean:
65 /bin/rm -f *~ *.o *.a *.d *.so.*
66