home *** CD-ROM | disk | FTP | other *** search
/ PC Extra Super CD 1998 January / PCPLUS131.iso / DJGPP / V2 / DJLSR201.ZIP / src / libemu / makefile < prev   
Encoding:
Makefile  |  1996-01-23  |  781 b   |  33 lines

  1. # Copyright (C) 1996 DJ Delorie, see COPYING.DJ for details
  2. # Copyright (C) 1995 DJ Delorie, see COPYING.DJ for details
  3. LIB=../../lib
  4. BIN=../../bin
  5. CFLAGS=-O2
  6.  
  7. all :: \
  8.     $(LIB)/libemu.a \
  9.     $(BIN)/emu387.dxe \
  10.     $E
  11.  
  12. $(LIB)/% : %
  13.     cp $< $@
  14.  
  15. emu387.o: emu387.cc
  16.     gcc $(CFLAGS) -c $< -o $@
  17.  
  18. emudummy.o: emudummy.c
  19.     gcc $(CFLAGS) -c $< -o $@
  20.  
  21. libemu.a : emu387.o npxsetup.o ../ident.c
  22.     gcc -c -DLIB=libemu ../ident.c -o id_emu.o
  23.     ar rs libemu.a emu387.o npxsetup.o id_emu.o
  24.  
  25. npxsetup.o : ../libc/emu387/npxsetup.c
  26.     gcc $(CFLAGS) -c -DIMBED_EMU387 ../libc/emu387/npxsetup.c -o npxsetup.o
  27.  
  28. emu387.dxe : emu387.o emudummy.o
  29.     ../../bin/dxegen emu387.dxe __emu_entry emu387.o id_emu.o emudummy.o -L../../lib -lgcc -lc
  30.  
  31. clean ::
  32.     -rm -f emu387.dxe *.o libemu.a
  33.