File: Makefile.in

package info (click to toggle)
tilde 1.1.2-1
  • links: PTS
  • area: main
  • in suites: bookworm, bullseye, sid
  • size: 600 kB
  • sloc: cpp: 6,704; sh: 801; makefile: 54
file content (101 lines) | stat: -rw-r--r-- 3,859 bytes parent folder | download
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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
# Copyright (C) 2011-2012,2017 G.P. Halkes
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License version 3, as
# published by the Free Software Foundation.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program.  If not, see <http://www.gnu.org/licenses/>.
.POSIX:

# C++-compiler flags
CXXFLAGS=-O2

# CONFIGFLAGS should contain all the flags to compile against the required
# libraries (libunistring, libt3window, libt3key, libt3widget, libt3config,
# libt3highlight and libtranscript)
# CONFIGLIBS should contain all the flags to link against the required
# libraries.
# The flags and libraries included below only contain the optional libraries.
# If your system does not provide:
#   strdup, then remove -DHAS_STRDUP from CONFIGFLAGS.
#   libattr, then remove -DHAS_LIBATTR from CONFIGFLAGS and -lattr from CONFIGLIBS
#   libacl, then remove -DHAS_LIBACL from CONFIGFLAGS and -lacl from CONFIGLIBS
CONFIGFLAGS=-DHAS_STRDUP -DHAS_LIBATTR -DHAS_LIBACL1
CONFIGLIBS=-lattr -lacl

# Gettext configuration
# GETTEXTFLAGS should contain -DUSE_GETTEXT to enable gettext translations
# GETTEXTLIBS should contain all link flags to allow linking with gettext, if
# it has been enabled. The GNU libc already contains the gettext library, so
# there is no need to add any flags. Otherwise, -lintl is usually required, and
# sometimes -liconv as well.
# LOCALEDIR: the directory where the locale dependant files should be installed.
# LINGUAS: translations to be installed. Look in po directory for available
#  translations.
GETTEXTFLAGS=
GETTEXTLIBS=
LOCALEDIR=$(prefix)/share/locale
LINGUAS=

# Installation prefix and install paths
prefix=/usr/local
bindir=$(prefix)/bin
docdir=$(prefix)/share/doc/tilde
mandir=$(prefix)/share/man
datadir=$(prefix)/share

# Install program to use (should be BSD install compatible)
INSTALL=install

SILENTCXX=@echo '[CXX]' $< ;
SILENTLD=@echo '[LD]' $@ ;

OBJECTS=src/filestate.o src/attributemap.o src/log.o src/copy_file.o src/filebuffer.o src/util.o src/option.o src/main.o src/dialogs/optionsdialog.o src/option_access.o src/dialogs/attributesdialog.o src/dialogs/selectbufferdialog.o src/filewrapper.o src/dialogs/encodingdialog.o src/openfiles.o src/fileautocompleter.o src/dialogs/openrecentdialog.o src/dialogs/characterdetailsdialog.o src/dialogs/highlightdialog.o src/fileline.o src/fileeditwindow.o

all: src/tilde

.PHONY: all clean dist-clean distclean install uninstall
.SUFFIXES: .cc .o .mo .po
.IGNORE: uninstall

clean:
	rm -rf src/*.o src/dialogs/*.o src/tilde

dist-clean: clean
	rm -rf Makefile config.log .Makefile* .config*

distclean: dist-clean

.cc.o:
	$(SILENTCXX) $(CXX) $(CXXFLAGS) $(CONFIGFLAGS) $(GETTEXTFLAGS) -DLOCALEDIR=\"$(LOCALEDIR)\" -DDATADIR=\"$(datadir)/tilde\" -Isrc -c -o $@ $<

src/tilde: $(OBJECTS)
	$(SILENTLD) $(CXX) $(CXXFLAGS) $(LDFLAGS) -o $@ $(OBJECTS) $(LDLIBS) $(CONFIGLIBS) $(GETTEXTLIBS)

# Macros to make DESTDIR support more readable
_bindir=$(DESTDIR)$(bindir)
_docdir=$(DESTDIR)$(docdir)
_mandir=$(DESTDIR)$(mandir)
_datadir=$(DESTDIR)$(datadir)
_LOCALEDIR=$(DESTDIR)$(LOCALEDIR)

install: all
	$(INSTALL) -d $(_bindir)
	$(INSTALL) -s src/tilde $(_bindir)
	$(INSTALL) -d $(_docdir)
	$(INSTALL) -m0644 COPYING README Changelog $(_docdir)
	$(INSTALL) -d $(_mandir)/man1
	$(INSTALL) -m0644 man/tilde.1 $(_mandir)/man1
	$(INSTALL) -d $(_datadir)/tilde/
	$(INSTALL) -m0644 src/base.config $(_datadir)/tilde/

uninstall:
	rm -f $(_bindir)/tilde
	rm -rf $(_docdir)
	rm -f $(_mandir)/man1/tilde.1
	rm -rf $(_datadir)/tilde