home *** CD-ROM | disk | FTP | other *** search
/ PC Extra Super CD 1998 January / PCPLUS131.iso / DJGPP / V2MISC / WMEMU2S.ZIP / LINUX / DRIVERS / FPU-EMU / MAKEFILE < prev    next >
Encoding:
Text File  |  1995-07-16  |  1.5 KB  |  66 lines

  1. #               Makefile for wm-FPU-emu under DJGPP V2
  2. #        requires non-DOS rm and cp utilities
  3.  
  4. #DEBUG    = -DDEBUGGING
  5. DEBUG    =
  6. PARANOID = -DPARANOID
  7. REENTRANT    = -DREENTRANT_FPU
  8. DJINC   = ../../../djgpp/wm-fpu-e
  9. CFLAGS    := $(CFLAGS) $(PARANOID) $(DEBUG) -fno-builtin -I $(DJINC)
  10.  
  11. all:    libwmemu.a \
  12.     wmemu387.dxe
  13.  
  14. emuentry.o: $(DJINC)/emuentry.c
  15.     $(CC) $(CFLAGS) -c $< -o $@
  16.  
  17. npxsetup.c:
  18.     cp $(DJDIR)/src/libc/emu387/npxsetup.c .
  19.  
  20. npxsetup.o: npxsetup.c
  21.     $(CC) $(CFLAGS) -c -DIMBED_EMU387 $< -o $@
  22.  
  23. .c.o:
  24.     $(CC) $(CFLAGS) -c $<
  25.  
  26. %.o : %.S
  27.     $(CC) -D__ASSEMBLER__ $(PARANOID) $(REENTRANT) -c $<
  28.  
  29. OBJS =    fpu_entry.o div_small.o errors.o \
  30.     fpu_arith.o fpu_aux.o fpu_etc.o fpu_trig.o \
  31.     load_store.o get_address.o \
  32.     poly_atan.o poly_l2.o poly_2xm1.o poly_sin.o poly_tan.o \
  33.     poly_div.o poly_mul64.o polynomial.o \
  34.     reg_add_sub.o reg_compare.o reg_constant.o reg_ld_str.o \
  35.     reg_div.o reg_mul.o reg_norm.o \
  36.     reg_u_add.o reg_u_div.o reg_u_mul.o reg_u_sub.o \
  37.     reg_round.o \
  38.     wm_shrx.o wm_sqrt.o
  39.  
  40. libwmemu.a: $(OBJS) emuentry.o npxsetup.o
  41.     rm -f libwmemu.a
  42.     $(AR) rcs libwmemu.a $(OBJS) emuentry.o npxsetup.o
  43.  
  44. wmemu387.dxe: emuentry.o $(OBJS) 
  45.     dxegen wmemu387.dxe __emu_entry emuentry.o libwmemu.a
  46.  
  47. dep:
  48.     $(CPP) $(DJINC) -M *.c > dj.dep
  49.     $(CPP) -D__ASSEMBLER__ -M *.S >> dj.dep
  50.  
  51. install:
  52.     cp wmemu387.dxe $(DJDIR)/bin
  53.     cp libwmemu.a $(DJDIR)/lib
  54.  
  55. clean:
  56.     rm *.a *.o *.dep *.dxe npxsetup.c
  57.  
  58. dummy:
  59.  
  60. #
  61. # include a dependency file if one exists
  62. #
  63. ifeq (dj.dep,$(wildcard dj.dep))
  64. include dj.dep
  65. endif
  66.