Debian Codegraph @

source/Makefile

raw symbols ◀ ▶ SCIP
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 PKG_CONF ?= pkgconf
28
29 MAJVERS = 3
30 MINVERS = 9.2
31 VERSION = $(MAJVERS).$(MINVERS)
32
33
•34 CPPFLAGS += $(shell $(PKG_CONF) --cflags freetype2)
35 CPPFLAGS += -DVERSION=\"$(VERSION)\" -D_REENTRANT -D_POSIX_PTHREAD_SEMANTICS $(PCONFCFL)
36 CXXFLAGS += -Wall -O2 -fPIC
37 LDLIBS +=
38
39
40 CLXCLIENT_SO = libclxclient.so
41 CLXCLIENT_MAJ = $(CLXCLIENT_SO).$(MAJVERS)
42 CLXCLIENT_MIN = $(CLXCLIENT_MAJ).$(MINVERS)
•43 CLXCLIENT_DEP = -lpthread -lXft -lX11 -lclthreads
44 CLXCLIENT_O = xdisplay.o xresman.o xhandler.o xwindow.o xdraw.o \
45 button.o textip.o enumip.o menuwin.o scale.o slider.o scroll.o mclist.o meter.o
46 CLXCLIENT_H = clxclient.h
47
48
49 $(CLXCLIENT_MIN): $(CLXCLIENT_O)
50 $(CXX) -shared $(LDFLAGS) -Wl,-soname,$(CLXCLIENT_MAJ) -o $(CLXCLIENT_MIN) $(CLXCLIENT_O) $(CLXCLIENT_DEP)
51
52
53 install: $(CLXCLIENT_MIN)
54 install -d $(DESTDIR)$(INCDIR)
•55 install -d $(DESTDIR)$(PREFIX)/$(LIBDIR)
56 install -m 644 $(CLXCLIENT_H) $(DESTDIR)$(INCDIR)
•57 install -m 755 $(CLXCLIENT_MIN) $(DESTDIR)$(PREFIX)/$(LIBDIR)
58 /sbin/ldconfig -n $(DESTDIR)$(PREFIX)/$(LIBDIR)
59 ln -sf $(CLXCLIENT_MIN) $(DESTDIR)$(PREFIX)/$(LIBDIR)/$(CLXCLIENT_SO)
60
61 uninstall:
62 rm -rf $(DESTDIR)$(INCDIR)/$(CLXCLIENT_H)
•63 rm -rf $(DESTDIR)$(PREFIX)/$(LIBDIR)/libclxclient*
64
65 clean:
66 /bin/rm -f *~ *.o *.a *.d *.so.*
67