123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122 |
- TOPDIR=../../
- include $(TOPDIR)Rules.mak
- LIBM=../libm.a
- TARGET_CC= $(TOPDIR)/extra/gcc-uClibc/$(TARGET_ARCH)-uclibc-gcc
- CSRC=acoshl.c asinhl.c asinl.c atanhl.c atanl.c bdtrl.c btdtrl.c cbrtl.c \
- chdtrl.c coshl.c ellpel.c ellpkl.c elliel.c ellikl.c ellpjl.c \
- exp10l.c exp2l.c expl.c fdtrl.c gammal.c gdtrl.c igamil.c igaml.c \
- incbetl.c incbil.c isnanl.c j0l.c j1l.c jnl.c ldrand.c log10l.c log2l.c \
- logl.c nbdtrl.c ndtril.c ndtrl.c pdtrl.c powl.c powil.c sinhl.c sinl.c \
- sqrtl.c stdtrl.c tanhl.c tanl.c unityl.c ynl.c \
- floorl.c polevll.c mtherr.c
- COBJS=$(patsubst %.c,%.o, $(CSRC))
- OBJS=$(COBJS)
- all: $(OBJS) $(LIBM)
- $(LIBM): ar-target
- ar-target: $(OBJS)
- $(AR) $(ARFLAGS) $(LIBM) $(OBJS)
- $(COBJS): %.o : %.c
- $(TARGET_CC) $(TARGET_CFLAGS) -c $< -o $@
- $(STRIPTOOL) -x -R .note -R .comment $*.o
- $(OBJ): Makefile
- clean:
- rm -f *.[oa] *~ core
- mtstl: libml.a mtstl.o $(OBJS)
- $(TARGET_CC) $(TARGET_CFLAGS) -o mtstl mtstl.o libml.a $(LIBS)
- mtstl.o: mtstl.c
- lparanoi: libml.a lparanoi.o setprec.o ieee.o econst.o $(OBJS)
- $(TARGET_CC) $(TARGET_CFLAGS) -o lparanoi lparanoi.o setprec.o ieee.o econst.o libml.a $(LIBS)
- lparanoi.o: lparanoi.c
- $(TARGET_CC) $(TARGET_CFLAGS) -Wno-implicit -c lparanoi.c
- econst.o: econst.c ehead.h
- lcalc: libml.a lcalc.o ieee.o econst.o $(OBJS)
- $(TARGET_CC) $(TARGET_CFLAGS) -o lcalc lcalc.o ieee.o econst.o libml.a $(LIBS)
- lcalc.o: lcalc.c lcalc.h ehead.h
- ieee.o: ieee.c ehead.h
- libml.a: $(OBJS) mconf.h
- ar -rv libml.a $(OBJS)
- ranlib libml.a
- fltestl: fltestl.c libml.a
- $(TARGET_CC) $(TARGET_CFLAGS) -o fltestl fltestl.c libml.a
- fltestl.o: fltestl.c
- flrtstl: flrtstl.c libml.a
- $(TARGET_CC) $(TARGET_CFLAGS) -o flrtstl flrtstl.c libml.a
- flrtstl.o: flrtstl.c
- nantst: nantst.c libml.a
- $(TARGET_CC) $(TARGET_CFLAGS) -o nantst nantst.c libml.a
- nantst.o: nantst.c
- testvect: testvect.o libml.a
- $(TARGET_CC) $(TARGET_CFLAGS) -o testvect testvect.o libml.a
- testvect.o: testvect.c
- $(TARGET_CC) -g -c -o testvect.o testvect.c
- monotl: monotl.o libml.a
- $(TARGET_CC) $(TARGET_CFLAGS) -o monotl monotl.o libml.a
- monotl.o: monotl.c
- $(TARGET_CC) -g -c -o monotl.o monotl.c
- check: mtstl fltestl testvect monotl libml.a
- -mtstl
- -fltestl
- -testvect
- -monotl
|