home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / octa21eb.zip / octave / PATOS2.ZIP / libcruft / makerules.os2 < prev   
Text File  |  1998-02-07  |  739b  |  36 lines

  1. # Common rules for octave's libcruft directories.
  2. # Modified by Klaus Gebhardt, 1994 - 1995
  3.  
  4. CFLAGS := -mprobe $(CFLAGS)
  5. FFLAGS := -mprobe $(FFLAGS)
  6.  
  7. SOURCES = *.f
  8.  
  9. CRUFT_FSRC = $(wildcard *.f)
  10. CRUFT_BASE = $(notdir $(CRUFT_FSRC))
  11. CRUFT_CSRC = $(patsubst %.f, %.c, $(CRUFT_BASE))
  12. CRUFT_OBJ = $(patsubst %.f, %.o, $(CRUFT_BASE))
  13. CRUFT_OMF = $(patsubst %.f, %.obj, $(CRUFT_BASE))
  14.  
  15. DEP = $(CRUFT_OMF)
  16.  
  17. ifeq ($(DLLNAME),misc)
  18. CRUFT_COBJ = machar.obj dostop.obj lo-error.obj f77-fcn.obj
  19. DLLDEP = $(DEP) $(CRUFT_COBJ)
  20. else
  21. DLLDEP = $(DEP)
  22. endif
  23.  
  24. all: $(CRUFT_OBJ)
  25.  
  26. omf: $(DLLDEP)
  27.  
  28. lib: ../$(DLLNAME).lib
  29.  
  30. ../$(DLLNAME).lib: $(DLLDEP)
  31.     rm -f $@
  32.     emxomfar r $@ $(DLLDEP)
  33.  
  34. clean:
  35.     rm -f *.a *.lib *.o *.obj *.exe
  36.