Welcome to mirror list, hosted at ThFree Co, Russian Federation.

Makefile.in « mingwex « mingw « winsup - cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: a495d5269cecf4aaaf86c7e7426c2fcc3e31aaf5 (plain)
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
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
#
# mingw/mingwex/Makefile.in: This file is part of Mingw runtime.
#
# This makefile requires GNU make.

srcdir = @srcdir@
top_srcdir = @top_srcdir@
VPATH = $(srcdir):$(srcdir)/math:$(srcdir)/stdio:$(srcdir)/complex $(srcdir)/gdtoa

# FIXME: I see no reason to define `objdir';
# it appears to be unused, and could be removed.
objdir = .

target_alias = @target_alias@
prefix = @prefix@

datarootdir = @datarootdir@
program_transform_name = @program_transform_name@
exec_prefix = @exec_prefix@
bindir = @bindir@
libdir = @libdir@

# FIXME: Use of `target_alias' is extremely suspect here;
# (see relevant note in top level Makefile).
tooldir = $(exec_prefix)/$(target_alias)
datadir = @datadir@
infodir = @infodir@
includedir = @includedir@

SHELL = /bin/sh

INSTALL = @INSTALL@
INSTALL_DATA = @INSTALL_DATA@
INSTALL_PROGRAM = @INSTALL_PROGRAM@
mkinstalldirs = $(SHELL) $(srcdir)/../mkinstalldirs

DISTFILES = \
	Makefile.in configure configure.in aclocal.m4 \
	_Exit.c atoll.c dirent.c feclearexcept.c fegetenv.c \
	fegetexceptflag.c fegetround.c feholdexcept.c feraiseexcept.c \
	fesetenv.c fesetexceptflag.c fesetround.c fetestexcept.c \
	feupdateenv.c ftruncate.c fwide.c  getopt.c imaxabs.c imaxdiv.c \
	lltoa.c lltow.c mbsinit.c mingw-aligned-malloc.c \
	mingw-fseek.c sitest.c strtoimax.c strtoumax.c \
	testwmem.c tst-aligned-malloc.c ulltoa.c ulltow.c wcstof.c \
	wcstoimax.c wcstold.c wcstoumax.c wctrans.c wctype.c \
	wdirent.c wmemchr.c wmemcmp.c wmemcpy.c wmemmove.c wmemset.c wtoll.c \
	wcrtomb.c wctob.c mbrtowc.c btowc.c mb_wc_common.h \
	gettimeofday.c isblank.c iswblank.c \
	basename.c dirname.c usleep.c \
	tsearch.c twalk.c tdelete.c tfind.c

MATH_DISTFILES = \
	acosf.c acosl.c asinf.c asinl.c atan2f.c atan2l.c \
	atanf.c atanl.c cbrt.c cbrtf.c cbrtl.c ceilf.S ceill.S \
	cephes_mconf.h \
	copysign.S copysignf.S copysignl.S cosf.S coshf.c coshl.c cosl.S \
	erfl.c exp2.S exp2f.S exp2l.S expf.c expl.c expm1.c expm1l.c expm1f.c \
	fabs.c fabsf.c fabsl.c \
	fdim.c fdimf.c fdiml.c floorf.S floorl.S fma.S fmaf.S fmal.c \
	fmax.c fmaxf.c fmaxl.c fmin.c fminf.c fminl.c fmodf.c \
	fmodl.c fp_consts.c fp_consts.h fp_constsf.c  fp_constsl.c \
	fpclassify.c fpclassifyf.c fpclassifyl.c \
	frexpf.c frexpl.S fucom.c hypotf.c hypotl.c ilogb.S ilogbf.S \
	ilogbl.S isnan.c isnanf.c isnanl.c ldexpf.c ldexpl.c \
	lgamma.c lgammaf.c lgammal.c llrint.c llrintf.c llrintl.c \
	log10f.S log10l.S log1p.S log1pf.S log1pl.S log2.S log2f.S \
	log2l.S logb.c logbf.c logbl.c logf.S logl.S lrint.c lrintf.c \
	lrintl.c lround_generic.c modff.c modfl.c \
	nearbyint.S nearbyintf.S nearbyintl.S \
	nextafterf.c nextafterl.c nexttowardf.c nexttoward.c \
	powf.c powi.c powif.c powil.c powl.c \
	remainder.S remainderf.S remainderl.S remquo.S \
	remquof.S remquol.S rint.c rintf.c rintl.c round_internal.h \
	round_generic.c scalbn.S scalbnf.S scalbnl.S s_erf.c sf_erf.c \
	signbit.c signbitf.c signbitl.c sinf.S sinhf.c sinhl.c sinl.S \
	sqrtf.c sqrtl.c tanf.S tanhf.c tanhl.c tanl.S tgamma.c \
	tgammaf.c tgammal.c trunc.c truncf.c truncl.c \
	acosh.c acoshf.c acoshl.c asinh.c asinhf.c asinhl.c \
	atanh.c atanhf.c atanhl.c fastmath.h

STDIO_DISTFILES = \
	fopen64.c fseeko64.c ftello64.c lseek64.c \
	vfscanf.c vfwscanf.c vscanf.c vsscanf.c vswscanf.c vwscanf.c \
	pformat.c pformat.h printf.c fprintf.c sprintf.c snprintf.c \
	vprintf.c vfprintf.c vsprintf.c vsnprintf.c \
	snwprintf.c vsnwprintf.c

COMPLEX_DISTFILES = \
	cabs.c cabsf.c cabsl.c cacos.c cacosf.c cacosl.c cacosh.c \
	cacoshf.c cacoshl.c carg.c cargf.c cargl.c casin.c casinf.c \
	casinl.c casinh.c casinhf.c casinhl.c catan.c catanf.c catanl.c \
	catanh.c catanhf.c catanhl.c ccos.c ccosf.c ccosl.c ccosh.c \
	ccoshf.c ccoshl.c cexp.c cexpf.c cexpl.c cimag.c cimagf.c \
	cimagl.c clog.c clogf.c clogl.c cpow.c cpowf.c cpowl.c cproj.c \
	cprojf.c cprojl.c creal.c crealf.c creall.c csin.c csinf.c \
	csinl.c csinh.c csinhf.c csinhl.c csqrt.c csqrtf.c csqrtl.c \
	ctan.c ctanf.c ctanl.c ctanh.c ctanhf.c ctanhl.c

GDTOA_DISTFILES = \
	arithchk.c dmisc.c dtoa.c  g__fmt.c g_dfmt.c g_ffmt.c g_xfmt.c \
	gd_arith.h  gd_qnan.h gdtoa.c gdtoa.h gdtoaimp.h gethex.c gmisc.c \
	hd_init.c hexnan.c  misc.c qnan.c README smisc.c strtodg.c strtodnrp.c \
	strtof.c strtopx.c sum.c ulp.c

CC = @CC@
# FIXME: Which is it, CC or CC_FOR_TARGET?
CC_FOR_TARGET = $(CC)
AS_FOR_TARGET = $(AS)
CFLAGS = @CFLAGS@
CXXFLAGS = @CXXFLAGS@
OPTFLAGS = -fomit-frame-pointer
WARNFLAGS = -Wall


# compiling with Cygwin?
NO_CYGWIN := @NO_CYGWIN@
ifdef NO_CYGWIN
#
# FIXME: What is the purpose of this hideous kludge?
#
# `CC' should have been appropriately set by the configure script;
# to mess with it, in this fashion, should neither be necessary,
# nor accepted.
#
override CC := ${NO_CYGWIN} $(firstword $(filter-out ${NO_CYGWIN},${CC}))
endif

W32API_INCLUDE = @W32API_INCLUDE@
INCLUDES = -I${srcdir} -I${top_srcdir} -I${top_srcdir}/include \
  -nostdinc \
  -iwithprefixbefore include
ALL_CFLAGS = $(CFLAGS) $(WARNFLAGS) $(OPTFLAGS) $(INCLUDES) $(W32API_INCLUDE)
ALL_CXXFLAGS = $(CXXFLAGS) $(WARNFLAGS) $(OPTFLAGS) $(INCLUDES) -nostdinc++ $(W32API_INCLUDE)

AS = @AS@
AR = @AR@
LD = @LD@
AR_FLAGS = rcv
RANLIB = @RANLIB@
DLLTOOL = @DLLTOOL@
DLLTOOLFLAGS = 
DLLTOOL_FOR_TARGET = $(DLLTOOL)
DLLTOOL_FLAGS = --as $(AS_FOR_TARGET)

LIBMINGWEX_A = libmingwex.a

Q8_OBJS = \
	fwide.o imaxabs.o imaxdiv.o mbsinit.o \
	strtoimax.o strtoumax.o wcstoimax.o wcstoumax.o \
	wmemchr.o wmemcmp.o wmemcpy.o wmemmove.o wmemset.o \
	wctrans.o wctype.o wcrtomb.o wctob.o mbrtowc.o btowc.o \
	wcstof.o wcstold.o
CTYPE_OBJS = \
	isblank.o iswblank.o
STDLIB_STUB_OBJS = \
	lltoa.o ulltoa.o \
	lltow.o ulltow.o \
	atoll.o wtoll.o \
	_Exit.o
STDIO_OBJS = \
	fopen64.o fseeko64.o ftello64.o lseek64.o \
	vfscanf.o vfwscanf.o vscanf.o vsscanf.o vswscanf.o vwscanf.o \
	pformat.o snprintf.o vsnprintf.o snwprintf.o vsnwprintf.o \
	printf.o fprintf.o sprintf.o vprintf.o vfprintf.o vsprintf.o
MATH_OBJS = \
	acosf.o acosl.o asinf.o asinl.o atan2f.o atan2l.o \
	atanf.o atanl.o cbrt.o cbrtf.o cbrtl.o ceilf.o ceill.o \
	copysign.o copysignf.o copysignl.o cosf.o coshf.o coshl.o cosl.o \
	erfl.o exp2.o exp2f.o exp2l.o expf.o expl.o expm1.o expm1l.o expm1f.o \
	fabs.o fabsf.o fabsl.o \
	fdim.o fdimf.o fdiml.o floorf.o floorl.o fma.o fmaf.o fmal.o \
	fmax.o fmaxf.o fmaxl.o fmin.o fminf.o fminl.o fmodf.o \
	fmodl.o fp_consts.o fp_constsf.o fp_constsl.o \
	fpclassify.o fpclassifyf.o fpclassifyl.o \
	frexpf.o frexpl.o fucom.o hypotf.o hypotl.o ilogb.o ilogbf.o \
	ilogbl.o isnan.o isnanf.o isnanl.o ldexpf.o ldexpl.o \
	lgamma.o lgammaf.o lgammal.o llrint.o llrintf.o llrintl.o \
	log10f.o log10l.o log1p.o log1pf.o log1pl.o log2.o log2f.o \
	log2l.o logb.o logbf.o logbl.o logf.o logl.o \
	lrint.o lrintf.o lrintl.o modff.o modfl.o \
	nearbyint.o nearbyintf.o nearbyintl.o \
	nextafterf.o nextafterl.o nexttowardf.o nexttoward.o \
	powf.o powi.o powif.o powil.o powl.o \
	remainder.o remainderf.o remainderl.o remquo.o \
	remquof.o remquol.o rint.o rintf.o rintl.o \
	scalbn.o scalbnf.o scalbnl.o s_erf.o sf_erf.o \
	signbit.o signbitf.o signbitl.o sinf.o sinhf.o sinhl.o sinl.o \
	sqrtf.o sqrtl.o tanf.o tanhf.o tanhl.o tanl.o tgamma.o \
	tgammaf.o tgammal.o trunc.o truncf.o truncl.o \
	acosh.o acoshf.o acoshl.o asinh.o asinhf.o asinhl.o \
	atanh.o atanhf.o atanhl.o
MATH_ROUND_OBJS = round.o roundf.o roundl.o
MATH_LROUND_OBJS = lround.o lroundf.o lroundl.o
MATH_LLROUND_OBJS = llround.o llroundf.o llroundl.o
FENV_OBJS = fesetround.o  fegetround.o \
	fegetenv.o fesetenv.o feupdateenv.o \
	feclearexcept.o feholdexcept.o fegetexceptflag.o \
	feraiseexcept.o fetestexcept.o fesetexceptflag.o
POSIX_OBJS = \
	dirent.o wdirent.o getopt.o ftruncate.o gettimeofday.o usleep.o \
	basename.o dirname.o tsearch.o twalk.o tdelete.o tfind.o
REPLACE_OBJS = \
	mingw-aligned-malloc.o mingw-fseek.o
COMPLEX_OBJS = \
	cabs.o cabsf.o cabsl.o cacos.o cacosf.o cacosl.o cacosh.o \
	cacoshf.o cacoshl.o carg.o cargf.o cargl.o casin.o casinf.o \
	casinl.o casinh.o casinhf.o casinhl.o catan.o catanf.o catanl.o \
	catanh.o catanhf.o catanhl.o ccos.o ccosf.o ccosl.o ccosh.o \
	ccoshf.o ccoshl.o cexp.o cexpf.o cexpl.o cimag.o cimagf.o \
	cimagl.o clog.o clogf.o clogl.o cpow.o cpowf.o cpowl.o cproj.o \
	cprojf.o cprojl.o creal.o crealf.o creall.o csin.o csinf.o \
	csinl.o csinh.o csinhf.o csinhl.o csqrt.o csqrtf.o csqrtl.o \
	ctan.o ctanf.o ctanl.o ctanh.o ctanhf.o ctanhl.o
GDTOA_OBJS = \
	dmisc.o dtoa.o g__fmt.o g_dfmt.o g_ffmt.o g_xfmt.o gdtoa.o \
	gethex.o gmisc.o hd_init.o hexnan.o misc.o smisc.o \
	strtodg.o strtodnrp.o strtof.o strtopx.o sum.o ulp.o

LIB_OBJS = $(Q8_OBJS)  $(CTYPE_OBJS) $(STDLIB_STUB_OBJS) \
	$(STDIO_OBJS) $(MATH_OBJS) $(MATH_ROUND_OBJS) \
	$(MATH_LROUND_OBJS) $(MATH_LLROUND_OBJS) $(FENV_OBJS) \
	$(POSIX_OBJS) $(REPLACE_OBJS) $(COMPLEX_OBJS) \
	$(GDTOA_OBJS)

LIBS = $(LIBMINGWEX_A)
DLLS = 

all: $(LIBMINGWEX_A)

$(LIBMINGWEX_A): $(LIB_OBJS)
	rm -f $(LIBMINGWEX_A)
	$(AR) $(ARFLAGS) $@ $(LIB_OBJS)
	$(RANLIB) $@

$(MATH_ROUND_OBJS): round_generic.c
	$(CC) $(ALL_CFLAGS) -I$(srcdir)/math -c -o $@ \
	  -D FUNCTION=$* $(srcdir)/math/round_generic.c

$(MATH_LROUND_OBJS) $(MATH_LLROUND_OBJS): lround_generic.c
	$(CC) $(ALL_CFLAGS) -I$(srcdir)/math -c -o $@ \
	  -D FUNCTION=$* $(srcdir)/math/lround_generic.c

top_builddir = @top_builddir@

Makefile: Makefile.in ${top_builddir}/config.status ${top_srcdir}/configure
	cd ${top_builddir}; $(SHELL) config.status

${top_builddir}/config.status: ${top_srcdir}/configure
	cd ${top_builddir}; $(SHELL) config.status --recheck

info:

info-html:

install-info: info

need-DESTDIR-compatibility = prefix libdir
.PHONY: $(need-DESTDIR-compatibility) fail-DESTDIR-compatibility

$(need-DESTDIR-compatibility):
	@test -z "$(DESTDIR)" || case "$($@)" in ?:*) \
	  $(MAKE) --no-print-directory reject="$@" fail-DESTDIR-compatibility ;; \
	esac

fail-DESTDIR-compatibility:
	$(error DESTDIR is not supported when $(reject) contains Win32 path `$($(reject))'; \
	try `make install $(reject)=$(shell echo '$($(reject))' | sed s,:,:$(DESTDIR),) ...' instead)

install: all $(need-DESTDIR-compatibility)
	$(mkinstalldirs) $(DESTDIR)$(inst_libdir)
	for i in $(LIBS); do \
		$(INSTALL_DATA) $$i $(DESTDIR)$(inst_libdir)/$$i ; \
	done

clean:
	-rm -f $(LIB_OBJS)  $(LIBMINGWEX_A)

distclean:
	-rm -f *.o *.a *~ core a.out
	-rm -f config.cache config.status config.log 
	-rm -f Makefile
.c.o:
	$(CC) -c  $(ALL_CFLAGS) $< -o $@
.S.o:
	$(CC) -c  $< -o $@
.s.o:
	$(CC) -c  $< -o $@

# pformat.o needs an explicit build rule; we always build it
# assuming __MSVCRT_VERSION__ >= 0x0800, relying on ofmt_stub.s
# (in the parent directory) to maintain forward compatibility
# for earlier versions of MSVCRT.DLL
#
PFORMAT_CFLAGS = $(ALL_CFLAGS) -I $(srcdir)/gdtoa -D__MSVCRT_VERSION__=0x0800
pformat.o: pformat.c pformat.h
	$(CC) -c $(PFORMAT_CFLAGS) $(srcdir)/stdio/$*.c -o $@

#
# Dependencies
#
wdirent.o: $(srcdir)/dirent.c $(srcdir)/wdirent.c

acosh.o acoshf.o acoshl.o \
asinh.o asinhf.o asinhl.o \
atanh.o atanhf.o atanhl.o: fastmath.h
mbrtowc.o wcrtomb.o wcstof.o wcstold.o: mb_wc_common.h

$(GDTOA_OBJS): gd_arith.h gdtoa.h gdtoaimp.h gd_qnan.h

$(MATH_ROUND_OBJS) $(MATH_LROUND_OBJS) $(MATH_LLROUND_OBJS): round_internal.h

printf.o:     printf.c     pformat.h
fprintf.o:    fprintf.c    pformat.h
sprintf.o:    sprintf.c    pformat.h
snprintf.o:   snprintf.c   pformat.h
vprintf.o:    vprintf.c    pformat.h
vfprintf.o:   vfprintf.c   pformat.h
vsprintf.o:   vsprintf.c   pformat.h
vsnprintf.o:  vsnprintf.c  pformat.h

dist:
	mkdir $(distdir)/mingwex
	chmod 755 $(distdir)/mingwex
	@for i in $(DISTFILES); do\
		cp -p $(srcdir)/$$i $(distdir)/mingwex/$$i ; \
	done
	mkdir $(distdir)/mingwex/math
	chmod 755 $(distdir)/mingwex/math
	@for i in $(MATH_DISTFILES); do\
		cp -p $(srcdir)/math/$$i $(distdir)/mingwex/math/$$i ; \
	done
	mkdir $(distdir)/mingwex/stdio
	chmod 755 $(distdir)/mingwex/stdio
	@for i in $(STDIO_DISTFILES); do\
		cp -p $(srcdir)/stdio/$$i $(distdir)/mingwex/stdio/$$i ; \
	done
	mkdir $(distdir)/mingwex/complex
	chmod 755 $(distdir)/mingwex/complex
	@for i in $(COMPLEX_DISTFILES); do\
		cp -p $(srcdir)/complex/$$i $(distdir)/mingwex/complex/$$i ; \
	done
	mkdir $(distdir)/mingwex/gdtoa
	chmod 755 $(distdir)/mingwex/gdtoa
	@for i in $(GDTOA_DISTFILES); do\
		cp -p $(srcdir)/gdtoa/$$i $(distdir)/mingwex/gdtoa/$$i ; \
	done

# $RCSfile$: end of file