File: targets.mk

package info (click to toggle)
ssldump 0.9b3-6
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 1,196 kB
  • ctags: 1,379
  • sloc: ansic: 6,151; sh: 1,508; yacc: 183; makefile: 90; lex: 67
file content (282 lines) | stat: -rw-r--r-- 8,059 bytes parent folder | download | duplicates (7)
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
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
#
#    targets.mk
#
#    $Source: /usr/local/CVS/ssldump/ssl/targets.mk,v $
#    $Revision: 1.2 $
#    $Date: 2001/12/08 14:57:51 $
#    $Name:  $
#    $Disclaimer$
#
#    Copyright (C) 1999, Terisa Systems, Inc.
#    All Rights Reserved.
#
#    ekr@terisa.com
#



#
#    CONFIGURE USER-DEFINED MAKE ENVIRONMENT
#
#    These fields are specified by the user.  The remainder of
#    this file is generated from this user-specified information.
#
# ANALYZE_SSL_DEFINES:
#    cpp defines, with the -D flag preceeding each
#
# ANALYZE_SSL_INCLUDES:
#    cpp include directories, with the -I flag preceeding each
#
# ANALYZE_SSL_INTERNAL:
#    headers files which are local to a specific module directory,
#    and should not be used by other parts of the toolkit or by
#    the user
#
# ANALYZE_SSL_LIBNAME:
#    the library associated with this module directory, used in
#    most cases for debugging purposes
#
# ANALYZE_SSL_LIBPATHS:
#    link-time directories to search for libraries, with the -L flag
#    preceeding each
#
# ANALYZE_SSL_LIBRARIES:
#    link-time libraries, with the -l flag preceeding each
#
# ANALYZE_SSL_LOCALFLAGS:
#    compile-time flags specific to compiling only the files in
#    this module directory--this variable should only be set in
#    extremely exceptional cases
#
# ANALYZE_SSL_MAKEFILES:
#    the makefiles
#
# ANALYZE_SSL_PREFIX:
#    defines the module name, which also serves as the
#    prefix for all the variable names defined in this file
#
# ANALYZE_SSL_PRIVATE:
#    the private, for-toolkit-use-only API header files
#
# ANALYZE_SSL_PROGRAMS:
#    programs to build
#
# ANALYZE_SSL_PUBLIC:
#    the header files that define the public API for the toolkit
#    and any other 'public' files that should be copied to
#    the build directory
#
# ANALYZE_SSL_SOURCES:
#    the source files to compile to object
#
ANALYZE_SSL_DEFINES       =
ANALYZE_SSL_INCLUDES      = -I$(ANALYZE_SSL_SRCDIR) 
ANALYZE_SSL_INTERNAL      =
ANALYZE_SSL_LIBNAME       = 
ANALYZE_SSL_LIBPATHS      =
ANALYZE_SSL_LIBRARIES     =
ANALYZE_SSL_LOCALFLAGS    =
ANALYZE_SSL_MAKEFILES     =
ANALYZE_SSL_PREFIX        = ANALYZE_SSL 
ANALYZE_SSL_PRIVATE       = ssl_analyze.h 
ANALYZE_SSL_PROGRAMS      =
ANALYZE_SSL_PUBLIC        =
ANALYZE_SSL_SOURCES       = ciphersuites.c ssl.enums.c ssl_analyze.c \
                            ssl_rec.c ssldecode.c sslprint.c sslxprint.c 



#
#    CONFIGURE AUTOMATICALLY-GENERATED MAKE ENVIRONMENT
#
# ANALYZE_SSL_OBJECTS:
#    object files to build
#
# ANALYZE_SSL_UNUSED:
#    obsolete files in the module directory that are not
#    used during the build process
#
# ANALYZE_SSL_USED:
#    all files in the module directory that are used
#    during the build process
#
ANALYZE_SSL_OBJECTS       = ciphersuites.$(OBJSUFFIX) ssl.enums.$(OBJSUFFIX) \
                            ssl_analyze.$(OBJSUFFIX) ssl_rec.$(OBJSUFFIX) \
                            ssldecode.$(OBJSUFFIX) sslprint.$(OBJSUFFIX) \
                            sslxprint.$(OBJSUFFIX) 
ANALYZE_SSL_UNUSED        = Makefile lex.yy.c main.c ssl.enums.h ssl_enum.c \
                            ssl_h.h sslciphers.h ssldecode.h sslprint.h \
                            sslxprint.h targets.mk y.tab.c y.tab.h 
ANALYZE_SSL_USED          = $(ANALYZE_SSL_INTERNAL:%=$(ANALYZE_SSL_SRCDIR)%) \
                            $(ANALYZE_SSL_MAKEFILES:%=$(ANALYZE_SSL_SRCDIR)%) \
                            $(ANALYZE_SSL_PRIVATE:%=$(ANALYZE_SSL_SRCDIR)%) \
                            $(ANALYZE_SSL_PUBLIC:%=$(ANALYZE_SSL_SRCDIR)%) \
                            $(ANALYZE_SSL_SOURCES:%=$(ANALYZE_SSL_SRCDIR)%) 



#
#    NOTES
#
#    The following variables may be used during the build process,
#    but are not defined in this file.  If they are to be set
#    to something other than the default blank, then they must
#    be set by the calling make system.
#
# ANALYZE_SSL_SRCDIR:
#    if the build target directory is different from the
#    module directory (the source directory), then this
#    variable contains the relative or full path of
#    the module directory
#
# LIBARS:
#    the library archive files (with fully-specified paths) that
#    executables built from this module directory depend upon
#
# LIBPATHS:
#    the paths to search for library archives (specified with
#    the -L)
#
# LIBRARIES:
#    the libraries to use while building executables from
#    this module directory (specified with the -l)
#



#
#    GLOBAL ENVIRONMENT
#
DEFINES                  += $(ANALYZE_SSL_DEFINES) 
INCLUDES                 += $(ANALYZE_SSL_INCLUDES) 
LIBPATHS                 += $(ANALYZE_SSL_LIBPATHS) 
LIBRARIES                += $(ANALYZE_SSL_LIBRARIES) 
OBJECTS                  += $(ANALYZE_SSL_OBJECTS) 
PUBLIC                   += $(ANALYZE_SSL_PUBLIC) 



#
#    GENERIC DEPENDENCIES
#
# default:
#    default dependency, must be the first dependency in this makefile
#
# all:
#    build everything in this module directory
#
# build:
#    make only the toolkit build files of this module directory
#
# ci:
#    perform an RCS check-in of this module directory
#
# clean:
#    remove the compiled files
#
# clean_public:
#    remove the public header files that have been copied
#    to a public build directory
#
# objects:
#    build the object files (this dependency is used for
#    building the toolkit library)
#
# private:
#    build only the private API header files
#
# public:
#    build only the public API header files
#
default:                    $(ANALYZE_SSL_LIBNAME)
default:                    $(ANALYZE_SSL_PROGRAMS)

all:                        $(ANALYZE_SSL_PUBLIC)
all:                        $(ANALYZE_SSL_OBJECTS)
all:                        $(ANALYZE_SSL_LIBNAME)
all:                        $(ANALYZE_SSL_PROGRAMS)
build:                      $(ANALYZE_SSL_PUBLIC)
build:                      $(ANALYZE_SSL_OBJECTS)
ci:                         analyze_ssl_ci
clean:                      analyze_ssl_clean
clean_public:               analyze_ssl_clean_public
objects:                    $(ANALYZE_SSL_OBJECTS)
private:                    $(ANALYZE_SSL_PRIVATE)
public:                     $(ANALYZE_SSL_PUBLIC)



#
#    LOCAL UTILITY DEPENDENCIES
#
#    utility dependencies are necessary because of some
#    make-isms having to do with dependencies
#

analyze_ssl_ci:
	$(CI) $(CIFLAGS) $(ANALYZE_SSL_USED)

analyze_ssl_clean:
	$(RM) $(RMFLAGS) $(ANALYZE_SSL_OBJECTS) $(ANALYZE_SSL_LIBNAME) $(ANALYZE_SSL_PROGRAMS)

analyze_ssl_clean_public:
	$(RM) $(RMFLAGS) $(ANALYZE_SSL_PUBLIC)

analyze_ssl_objects: $(ANALYZE_SSL_OBJECTS)

analyze_ssl_programs: $(ANALYZE_SSL_PROGRAMS)

analyze_ssl_public: $(ANALYZE_SSL_PUBLIC)



#
#    BUILD DEPENDENCIES
#
#    build dependencies invoke the rule used to build each
#    class of file
#

$(ANALYZE_SSL_LIBNAME):
	$(AR) $(ARFLAGS) $@ $?
	$(RANLIB) $@

$(ANALYZE_SSL_OBJECTS):
	$(COMPILE.c) $(ANALYZE_SSL_SRCDIR)$(@:%.o=%.c) $(DEFINES) $(INCLUDES) $(ANALYZE_SSL_LOCALFLAGS)
 
$(ANALYZE_SSL_PUBLIC):
	$(CP) $(CPFLAGS) $(ANALYZE_SSL_SRCDIR)$@ $@

$(ANALYZE_SSL_PROGRAMS):
	$(LINK.c) $@.$(OBJSUFFIX) $(LDLIBS) $(LIBS) $(LIBRARIES) $(LIBPATHS)
#LIBS above is obsolete (use LIBARARIES instead)



#
#    FILE DEPENDENCIES
#
#    file dependencies state, for each file that is built,
#    which file(s) it depends upon
#

ciphersuites.$(OBJSUFFIX): $(ANALYZE_SSL_SRCDIR)ciphersuites.c

ssl.enums.$(OBJSUFFIX): $(ANALYZE_SSL_SRCDIR)ssl.enums.h
ssl.enums.$(OBJSUFFIX): $(ANALYZE_SSL_SRCDIR)ssl.enums.c

ssl_analyze.$(OBJSUFFIX): $(ANALYZE_SSL_SRCDIR)ssl_analyze.h
ssl_analyze.$(OBJSUFFIX): $(ANALYZE_SSL_SRCDIR)ssl_analyze.c

ssl_rec.$(OBJSUFFIX): $(ANALYZE_SSL_SRCDIR)ssl_rec.c

ssldecode.$(OBJSUFFIX): $(ANALYZE_SSL_SRCDIR)ssldecode.h
ssldecode.$(OBJSUFFIX): $(ANALYZE_SSL_SRCDIR)ssldecode.c

sslprint.$(OBJSUFFIX): $(ANALYZE_SSL_SRCDIR)sslprint.h
sslprint.$(OBJSUFFIX): $(ANALYZE_SSL_SRCDIR)sslprint.c

sslxprint.$(OBJSUFFIX): $(ANALYZE_SSL_SRCDIR)sslxprint.h
sslxprint.$(OBJSUFFIX): $(ANALYZE_SSL_SRCDIR)sslxprint.c

$(ANALYZE_SSL_LIBNAME): $(ANALYZE_SSL_OBJECTS)