source: trunk/src/emx/src/lib/math/math.smak@ 123

Last change on this file since 123 was 123, checked in by zap, 23 years ago

Started the work for re-designing the EMX C runtime library to not require
EMX.DLL. The new design is projected to be as follows:

  • all emx syscalls are replaced with the routines from the old sys.lib library which is now compilable in both a.out and OMF formats.
  • the sys.a library should be made replaceable and selectable by some gcc switch (e.g. -msyslib=emx would link with emx.a instead of sys.a which would give almost full backward compatibility with emx).
  • All C functions names were renamed to not contain the starting underscore (e.g. fopen and not _fopen). The underscored aliases will be added later with the c_alias library (which will be generated automatically from all public symbols of libc; any exported symbol that do not start with an underscore will be given an underscored alias unless such a symbol is already defined).

Also a lot of updates to the building system. It is now much faster (thanks
to Knut's suggestion of using ash's builtin echo).
Also re-wrote thunk1.asm and thunk2.asm to GAS format; this removes the need
for MASM and makes it possible to use 16-bit functions in a.out programs
without the need for EMX.DLL.
Also made a lot of small changes I don't remember now.

  • Property cvs2svn:cvs-rev set to 1.2
  • Property svn:eol-style set to native
  • Property svn:executable set to *
  • Property svn:keywords set to Author Date Id Revision
File size: 750 bytes
Line 
1libc.TSRC.386 += $(wildcard src/lib/math/386/*.s)
2libc.TSRC += $(wildcard src/lib/math/*.c)
3
4# Virtual targets, e.g. compiled from same input files but with different opts
5libc.TDEP.386 += $(addprefix @O@src/lib/math/386/, copysigf.o copysigl.o \
6 fpclassf.o fpclassl.o isfinf.o isfinl.o isnanf.o isnanl.o isnormf.o \
7 isnorml.o nextaftf.o nextaftl.o signbitf.o signbitl.o acosl.o asinl.o \
8 atanl.o atan2l.o ceill.o cosl.o coshl.o expl.o fabsl.o floorl.o fmodl.o \
9 frexpl.o fxaml.o hypotl.o ldexpl.o logl.o log10l.o modfl.o powl.o rintl.o \
10 sinl.o sinhl.o sqrtl.o tanl.o tanhl.o truncl.o)
11
12$(call .MVER,math/%f.o): src/lib/math/%.s
13 $(call DO.COMPILE.s, -DFLOAT)
14$(call .MVER,math/%l.o): src/lib/math/%.s
15 $(call DO.COMPILE.s, -DLONG_DOUBLE)
Note: See TracBrowser for help on using the repository browser.