Makefile 2.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091
  1. # Makefile for uClibc
  2. #
  3. # Copyright (C) 2000,2001 Erik Andersen <andersen@uclibc.org>
  4. #
  5. # This program is free software; you can redistribute it and/or modify it under
  6. # the terms of the GNU Library General Public License as published by the Free
  7. # Software Foundation; either version 2 of the License, or (at your option) any
  8. # later version.
  9. #
  10. # This program is distributed in the hope that it will be useful, but WITHOUT
  11. # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
  12. # FOR A PARTICULAR PURPOSE. See the GNU Library General Public License for more
  13. # details.
  14. #
  15. # You should have received a copy of the GNU Library General Public License
  16. # along with this program; if not, write to the Free Software Foundation, Inc.,
  17. # 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
  18. # Unix makefile for ieetst, eparanoi.
  19. # Set LARGEMEM 1 in qcalc.h for 32-bit memory addresses.
  20. # Define computer type and/or endianness in mconf.h.
  21. #
  22. # Configure eparanoi.c for desired arithmetic test;
  23. # also define appropriate version of setprec.o, or use a stub that
  24. # does no FPU setup. To test native arithmetic, eparanoi uses
  25. # the system libraries only; compile simply by `cc eparanoi.c -lm'.
  26. #
  27. TESTDIR=../
  28. include $(TESTDIR)/Rules.mak
  29. #CC = gcc
  30. #CFLAGS= -O
  31. INCS= mconf.h ehead.h
  32. OBJS = ieee.o econst.o eexp.o elog.o epow.o etanh.o etodec.o mtherr.o #setprec.o
  33. TARGETS=ieetst eparanoi
  34. all: $(TARGETS)
  35. ieetst: ieetst.o $(OBJS) drand.o $(INCS)
  36. $(CC) -o ieetst ieetst.o $(OBJS) drand.o -lc -lm
  37. eparanoi: eparanoi.o $(OBJS) $(INCS)
  38. $(CC) -o eparanoi eparanoi.o $(OBJS) -lc -lm
  39. #setprec.o: setprec.387
  40. # as -o setprec.o setprec.387
  41. #setprec.o: setprec.688
  42. # as -o setprec.o setprec.688
  43. ieee.o: ieee.c $(INCS)
  44. $(CC) $(CFLAGS) -c ieee.c
  45. econst.o: econst.c $(INCS)
  46. $(CC) $(CFLAGS) -c econst.c
  47. elog.o: elog.c $(INCS)
  48. $(CC) $(CFLAGS) -c elog.c
  49. eexp.o: eexp.c $(INCS)
  50. $(CC) $(CFLAGS) -c eexp.c
  51. etanh.o: etanh.c $(INCS)
  52. $(CC) $(CFLAGS) -c etanh.c
  53. epow.o: epow.c $(INCS)
  54. $(CC) $(CFLAGS) -c epow.c
  55. mtherr.o: mtherr.c $(INCS)
  56. $(CC) $(CFLAGS) -c mtherr.c
  57. ieetst.o: ieetst.c $(INCS)
  58. $(CC) $(CFLAGS) -c ieetst.c
  59. drand.o: drand.c $(INCS)
  60. $(CC) $(CFLAGS) -c drand.c
  61. etodec.o: etodec.c $(INCS)
  62. $(CC) $(CFLAGS) -c etodec.c
  63. eparanoi.o: eparanoi.c $(INCS)
  64. $(CC) $(CFLAGS) -c eparanoi.c
  65. clean:
  66. rm -f *.[oa] *~ core $(TARGETS)