-
Notifications
You must be signed in to change notification settings - Fork 22
/
Copy pathMakedefs.in
174 lines (130 loc) · 2.82 KB
/
Makedefs.in
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
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
#
# Common makefile definitions for libcups.
#
# Copyright © 2021-2023 by OpenPrinting.
#
# Licensed under Apache License v2.0. See the file "LICENSE" for more
# information.
#
#
# This is a POSIX makefile
#
.POSIX:
#
# CUPS version...
#
LIBCUPS_VERSION = @LIBCUPS_VERSION@
LIBCUPS_VERSION_MAJOR = @LIBCUPS_VERSION_MAJOR@
LIBCUPS_VERSION_MINOR = @LIBCUPS_VERSION_MINOR@
#
# Programs...
#
AR = @AR@
CC = @CC@
INSTALL = @INSTALL@
LN = @LN@ -sf
MKDIR = @MKDIR@ -p
RANLIB = @RANLIB@
RM = @RM@ -f
RMDIR = @RMDIR@
SHELL = /bin/sh
#
# Installation programs...
#
INSTALL_BIN = $(INSTALL) -c -m 755
INSTALL_DATA = $(INSTALL) -c -m 444
INSTALL_DIR = $(INSTALL) -d -m 755
INSTALL_LIB = $(INSTALL) -c -m 755
INSTALL_MAN = $(INSTALL) -c -m 444
#
# Libraries...
#
CUPS_PC = @CUPS_PC@
LIBCUPS = @LIBCUPS@
LIBCUPS_STATIC = @LIBCUPS_STATIC@
LINKCUPS = -L../cups @LINKCUPS@
PDFIODIR = @PDFIODIR@
#
# Install static libraries?
#
INSTALL_STATIC = @INSTALL_STATIC@
#
# Code signing...
#
CODE_SIGN = @CODE_SIGN@
CODESIGN_IDENTITY = -
CSFLAGS = -s "$(CODESIGN_IDENTITY)" @CSFLAGS@ --timestamp
#
# Library archiver...
#
ARFLAGS = @ARFLAGS@
#
# C compiler and preprocessor...
#
CFLAGS = @CFLAGS@
CPPFLAGS = @CPPFLAGS@
WARNINGS = @WARNINGS@
#
# Linker options...
#
DSOFLAGS = @DSOFLAGS@
XFORMLIBS = @XFORMLIBS@
LDFLAGS = @LDFLAGS@
LIBS = @LIBS@ -lm
#
# Optimization and architecture options for both the compiler and linker.
#
OPTIM = @OPTIM@
#
# Library options:
#
# - DEBUG
# Support for debug logging via the CUPS_DEBUG_{FILTER,LEVEL,LOG} environment
# variables.
#
# - DEBUG_GUARDS
# Support for guard bytes for allocated structures and values.
#
OPTIONS = @OPTIONS@
#
# Directories...
#
# The first section uses the GNU names (which are *extremely*
# difficult to find in a makefile because they are lowercase...)
# We have to define these first because autoconf uses ${prefix}
# and ${exec_prefix} for most of the other directories...
#
# The "datarootdir" variable may not get defined if you are using
# a version of autoconf prior to 2.60.
#
# This is immediately followed by definition in ALL CAPS for the
# needed directories...
#
bindir = @bindir@
datadir = @datadir@
datarootdir = @datarootdir@
exec_prefix = @exec_prefix@
includedir = @includedir@
infodir = @infodir@
libdir = @libdir@
libexecdir = @libexecdir@
localstatedir = @localstatedir@
mandir = @mandir@
oldincludedir = @oldincludedir@
prefix = @prefix@
sbindir = @sbindir@
sharedstatedir = @sharedstatedir@
srcdir = @srcdir@
sysconfdir = @sysconfdir@
top_srcdir = @top_srcdir@
CUPS_DATADIR = @CUPS_DATADIR@
CUPS_SERVERROOT = @CUPS_SERVERROOT@
BUILDROOT = $(DSTROOT)$(DESTDIR)
#
# Rules...
#
.SILENT:
.SUFFIXES: .a .c .cxx .h .o
.c.o:
echo Compiling $<...
$(CC) -I.. -D_CUPS_SOURCE $(CPPFLAGS) $(OPTIONS) $(CFLAGS) $(OPTIM) $(WARNINGS) -c -o $@ $<