-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathMakefile.in.tmpl
131 lines (107 loc) · 3.03 KB
/
Makefile.in.tmpl
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
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
# Copyright (C) 2021 Nathan Paul Simons ([email protected])
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# 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 <https://www.gnu.org/licenses/>.
# Standard Makefile.in template.
SHELL = /bin/sh
.SUFFIXES:
.SUFFIXES: .c .o
# All compilation lines should look like this. -Nathan
foo.o : bar.c
$(CC) -I. -I$(srcdir) $(CFLAGS) -c $< -o $@
# Try to avoid using any utilities directly except for the following:
# cat cmp cp diff echo egrep expr false grep install-info ln ls mkdir mv pwd
# rm rmdir sed sleep sort tar test touch true
# Use these variables always instead of directly calling these programs so
# that autoconf and the end user can make substitutions.
AR = ar
BISON = bison
CC = cc
CFLAGS =
CPPFLAGS =
FLEX = flex
INSTALL = install
INSTALL_PROGRAM = $(INSTALL)
INSTALL_DATA = $(INSTALL)
LD = ld
LDFLAGS =
LDCONFIG = ldconfig
LEX = lex
MAKE = make
MAKEINFO = makeinfo
RANLIB = ranlib
TEXI2DVI = texi2dvi
YACC = yacc
$(INSTALL_PROGRAM) foo $(bindir)/foo
$(INSTALL_DATA) libfoo.a $(libdir)/libfoo.a
prefix = @prefix@
exec_prefix = @exec_prefix@
bindir = @bindir@
sbindir = @sbindir@
libexecdir = @libexecdir@
datadir = @datadir@
sysconfdir = @sysconfdir@
sharedstatedir = @sharedstatedir@
localstatedir = @localstatedir@
libdir = @libdir@
infodir = @infodir@
lispdir = @lispdir@
includedir = @includedir@
oldincludedir = @oldincludedir@
mandir = @mandir@
man1dir = $(mandir)/man1
man2dir = $(mandir)/man2
man3dir = $(mandir)/man3
man4dir = $(mandir)/man4
man5dir = $(mandir)/man5
man6dir = $(mandir)/man6
man7dir = $(mandir)/man7
man8dir = $(mandir)/man8
man9dir = $(mandir)/man9
man1ext = .1
man2ext = .2
man3ext = .3
man4ext = .4
man5ext = .5
man6ext = .6
man7ext = .7
man8ext = .8
man9ext = .9
srcdir = @srcdir@
all:
install: all installdirs
$(PRE_INSTALL) # Pre-install commands follow
$(POST_INSTALL) # Post-install commands follow
$(NORMAL_INSTALL) # Normal commands follow
install-strip:
$(MAKE) INSTALL_PROGRAM='$(INSTALL_PROGRAM) -s' install
uninstall:
$(PRE_UNINSTALL) # Pre-uninstall commands follow
$(POST_UNINSTALL) # Post-uninstall commands follow
$(NORMAL_UNINSTALL) # Normal commands follow
clean:
distclean: clean
maintainer-clean: distclean
@echo 'This command is intended for maintainers to use; it deletes'
@echo 'files that may require special tools to rebuild.'
TAGS:
dist:
check: all
installcheck:
installdirs: mkinstalldirs
$(srcdir)/mkinstalldirs $(bindir) $(datadir) $(libdir) $(infodir) \
$(mandir)
# Local Variables:
# mode: makefile
# End:
# vi: fileformat=unix expandtab