Makefile 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071
  1. # Unix makefile for ieetst, eparanoi.
  2. # Set LARGEMEM 1 in qcalc.h for 32-bit memory addresses.
  3. # Define computer type and/or endianness in mconf.h.
  4. #
  5. # Configure eparanoi.c for desired arithmetic test;
  6. # also define appropriate version of setprec.o, or use a stub that
  7. # does no FPU setup. To test native arithmetic, eparanoi uses
  8. # the system libraries only; compile simply by `cc eparanoi.c -lm'.
  9. #
  10. TESTDIR=../
  11. include $(TESTDIR)/Rules.mak
  12. #CC = gcc
  13. #CFLAGS= -O
  14. INCS= mconf.h ehead.h
  15. OBJS = ieee.o econst.o eexp.o elog.o epow.o etanh.o etodec.o mtherr.o #setprec.o
  16. TARGETS=ieetst eparanoi
  17. all: $(TARGETS)
  18. ieetst: ieetst.o $(OBJS) drand.o $(INCS)
  19. $(CC) -o ieetst ieetst.o $(OBJS) drand.o -lc -lm
  20. eparanoi: eparanoi.o $(OBJS) $(INCS)
  21. $(CC) -o eparanoi eparanoi.o $(OBJS) -lc -lm
  22. #setprec.o: setprec.387
  23. # as -o setprec.o setprec.387
  24. #setprec.o: setprec.688
  25. # as -o setprec.o setprec.688
  26. ieee.o: ieee.c $(INCS)
  27. $(CC) $(CFLAGS) -c ieee.c
  28. econst.o: econst.c $(INCS)
  29. $(CC) $(CFLAGS) -c econst.c
  30. elog.o: elog.c $(INCS)
  31. $(CC) $(CFLAGS) -c elog.c
  32. eexp.o: eexp.c $(INCS)
  33. $(CC) $(CFLAGS) -c eexp.c
  34. etanh.o: etanh.c $(INCS)
  35. $(CC) $(CFLAGS) -c etanh.c
  36. epow.o: epow.c $(INCS)
  37. $(CC) $(CFLAGS) -c epow.c
  38. mtherr.o: mtherr.c $(INCS)
  39. $(CC) $(CFLAGS) -c mtherr.c
  40. ieetst.o: ieetst.c $(INCS)
  41. $(CC) $(CFLAGS) -c ieetst.c
  42. drand.o: drand.c $(INCS)
  43. $(CC) $(CFLAGS) -c drand.c
  44. etodec.o: etodec.c $(INCS)
  45. $(CC) $(CFLAGS) -c etodec.c
  46. eparanoi.o: eparanoi.c $(INCS)
  47. $(CC) $(CFLAGS) -c eparanoi.c
  48. clean:
  49. rm -f *.[oa] *~ core $(TARGETS)