mirror of
https://git.planet-casio.com/Lephenixnoir/OpenLibm.git
synced 2024-12-29 13:03:42 +01:00
Makefile
This commit is contained in:
parent
394d97b5e2
commit
9f7ab322bb
3 changed files with 96 additions and 2 deletions
96
src/Makefile
Normal file
96
src/Makefile
Normal file
|
@ -0,0 +1,96 @@
|
||||||
|
# @(#)Makefile 5.1beta 93/09/24
|
||||||
|
# $FreeBSD: src/lib/msun/Makefile,v 1.112 2011/10/21 06:27:56 das Exp $
|
||||||
|
#
|
||||||
|
# ====================================================
|
||||||
|
# Copyright (C) 1993 by Sun Microsystems, Inc. All rights reserved.
|
||||||
|
#
|
||||||
|
# Developed at SunPro, a Sun Microsystems, Inc. business.
|
||||||
|
# Permission to use, copy, modify, and distribute this
|
||||||
|
# software is freely granted, provided that this notice
|
||||||
|
# is preserved.
|
||||||
|
# ====================================================
|
||||||
|
#
|
||||||
|
#
|
||||||
|
|
||||||
|
CC=clang
|
||||||
|
CFLAGS=-O2 -I. -I../include -I../ld128 -D__BSD_VISIBLE -Wno-implicit-function-declaration
|
||||||
|
|
||||||
|
COMMON_SRCS= \
|
||||||
|
e_acos.o e_acosf.o e_acosh.o e_acoshf.o e_asin.o e_asinf.o \
|
||||||
|
e_atan2.o e_atan2f.o e_atanh.o e_atanhf.o e_cosh.o e_coshf.o e_exp.o \
|
||||||
|
e_expf.o e_fmod.o e_fmodf.o e_gamma.o e_gamma_r.o e_gammaf.o \
|
||||||
|
e_gammaf_r.o e_hypot.o e_hypotf.o e_j0.o e_j0f.o e_j1.o e_j1f.o \
|
||||||
|
e_jn.o e_jnf.o e_lgamma.o e_lgamma_r.o e_lgammaf.o e_lgammaf_r.o \
|
||||||
|
e_log.o e_log10.o e_log10f.o e_log2.o e_log2f.o e_logf.o \
|
||||||
|
e_pow.o e_powf.o e_rem_pio2.o \
|
||||||
|
e_rem_pio2f.o e_remainder.o e_remainderf.o e_scalb.o e_scalbf.o \
|
||||||
|
e_sinh.o e_sinhf.o e_sqrt.o e_sqrtf.o \
|
||||||
|
k_cos.o k_cosf.o k_exp.o k_expf.o k_rem_pio2.o k_sin.o k_sinf.o \
|
||||||
|
k_tan.o k_tanf.o \
|
||||||
|
s_asinh.o s_asinhf.o s_atan.o s_atanf.o s_carg.o s_cargf.o s_cargl.o \
|
||||||
|
s_cbrt.o s_cbrtf.o s_ceil.o s_ceilf.o \
|
||||||
|
s_copysign.o s_copysignf.o s_cos.o s_cosf.o \
|
||||||
|
s_csqrt.o s_csqrtf.o s_erf.o s_erff.o \
|
||||||
|
s_exp2.o s_exp2f.o s_expm1.o s_expm1f.o s_fabsf.o s_fdim.o \
|
||||||
|
s_finite.o s_finitef.o \
|
||||||
|
s_floor.o s_floorf.o s_fma.o s_fmaf.o \
|
||||||
|
s_fmax.o s_fmaxf.o s_fmaxl.o s_fmin.o \
|
||||||
|
s_fminf.o s_fminl.o s_frexp.o s_frexpf.o s_ilogb.o s_ilogbf.o \
|
||||||
|
s_ilogbl.o s_isfinite.o s_isnormal.o \
|
||||||
|
s_llrint.o s_llrintf.o s_llround.o s_llroundf.o s_llroundl.o \
|
||||||
|
s_log1p.o s_log1pf.o s_logb.o s_logbf.o s_lrint.o s_lrintf.o \
|
||||||
|
s_lround.o s_lroundf.o s_lroundl.o s_modff.o \
|
||||||
|
s_nan.o s_nearbyint.o s_nextafter.o s_nextafterf.o \
|
||||||
|
s_nexttowardf.o s_remquo.o s_remquof.o \
|
||||||
|
s_rint.o s_rintf.o s_round.o s_roundf.o s_roundl.o \
|
||||||
|
s_scalbln.o s_scalbn.o s_signbit.o \
|
||||||
|
s_signgam.o s_significand.o s_significandf.o s_sin.o s_sinf.o \
|
||||||
|
s_tan.o s_tanf.o s_tanh.o s_tanhf.o s_tgammaf.o s_trunc.o s_truncf.o \
|
||||||
|
w_cabs.o w_cabsf.o w_drem.o w_dremf.o
|
||||||
|
|
||||||
|
# C99 long double functions
|
||||||
|
COMMON_SRCS+= s_copysignl.o s_fabsl.o s_llrintl.o s_lrintl.o s_modfl.o
|
||||||
|
|
||||||
|
# If long double != double use these; otherwise, we alias the double versions.
|
||||||
|
COMMON_SRCS+= e_acosl.o e_asinl.o e_atan2l.o e_fmodl.o \
|
||||||
|
e_hypotl.o e_remainderl.o e_sqrtl.o \
|
||||||
|
s_atanl.o s_cbrtl.o s_ceill.o s_cosl.o s_cprojl.o \
|
||||||
|
s_csqrtl.o s_floorl.o s_fmal.o \
|
||||||
|
s_frexpl.o s_logbl.o s_nexttoward.o \
|
||||||
|
s_remquol.o \
|
||||||
|
s_sinl.o s_tanl.o s_truncl.o w_cabsl.o
|
||||||
|
|
||||||
|
# C99 complex functions
|
||||||
|
COMMON_SRCS+= s_ccosh.o s_ccoshf.o s_cexp.o s_cexpf.o \
|
||||||
|
s_cimag.o s_cimagf.o s_cimagl.o \
|
||||||
|
s_conj.o s_conjf.o s_conjl.o \
|
||||||
|
s_cproj.o s_cprojf.o s_creal.o s_crealf.o s_creall.o \
|
||||||
|
s_csinh.o s_csinhf.o s_ctanh.o s_ctanhf.o
|
||||||
|
|
||||||
|
# FreeBSD's C library supplies these functions. Need to build them in openlibm.
|
||||||
|
#COMMON_SRCS+= s_fabs.o s_frexp.o s_isnan.o s_ldexp.o s_modf.o
|
||||||
|
|
||||||
|
# These do not yet compile
|
||||||
|
#COMMON_SRCS+= b_exp.o b_log.o b_tgamma.o invtrig.o fenv.o k_cosl.o k_sinl.o k_tanl.o \
|
||||||
|
s_exp2l.o s_nanl.o s_isnan.o s_scalbnf.o s_nextafterl.o s_rintl.o s_scalbnl.o \
|
||||||
|
|
||||||
|
# Colors for make
|
||||||
|
|
||||||
|
CCCOLOR="\033[34m"
|
||||||
|
LINKCOLOR="\033[34;1m"
|
||||||
|
SRCCOLOR="\033[33m"
|
||||||
|
BINCOLOR="\033[37;1m"
|
||||||
|
MAKECOLOR="\033[32;1m"
|
||||||
|
ENDCOLOR="\033[0m"
|
||||||
|
|
||||||
|
QUIET_CC = @printf ' %b %b\n' $(CCCOLOR)CC$(ENDCOLOR) $(SRCCOLOR)$@$(ENDCOLOR);
|
||||||
|
QUIET_LINK = @printf ' %b %b\n' $(LINKCOLOR)LINK$(ENDCOLOR) $(BINCOLOR)$@$(ENDCOLOR);
|
||||||
|
|
||||||
|
all: $(COMMON_SRCS)
|
||||||
|
$(QUIET_LINK)$(CC) *.o -o libopenlibm.a
|
||||||
|
|
||||||
|
%.o: %.c
|
||||||
|
$(QUIET_CC)$(CC) $(CFLAGS) -c $< -o $@
|
||||||
|
|
||||||
|
clean:
|
||||||
|
rm -f *.o *~
|
|
@ -1 +0,0 @@
|
||||||
for i in *.c; do clang -D__BSD_VISIBLE -Wno-implicit-function-declaration -c -O0 -I. -I../include -I../ld128 $i; done 2>err
|
|
|
@ -1 +0,0 @@
|
||||||
for i in *.c; do gcc -D__BSD_VISIBLE -c -O0 -I. -I../include -I../ld128 $i; done 2>err
|
|
Loading…
Reference in a new issue