home *** CD-ROM | disk | FTP | other *** search
/ ftp.cs.arizona.edu / ftp.cs.arizona.edu.tar / ftp.cs.arizona.edu / icon / historic / v941.tgz / icon.v941src.tar / icon.v941src / ipl / cfuncs / Makefile < prev    next >
Makefile  |  2001-06-08  |  809b  |  44 lines

  1. #  Makefile for the dynamically loaded C function library.
  2. #
  3. #  If building with the compiler (instead of the interpreter)
  4. #  use the "-fs" option to avoid problems.
  5.  
  6.  
  7. include ../../Makedefs
  8.  
  9. ICONT = icont
  10. IFLAGS = -us
  11.  
  12. FUNCLIB = libcfunc.so
  13.  
  14. .SUFFIXES: .c .o
  15. .c.o:            ; $(CC) $(CFLAGS) $(CFDYN) -c $<
  16.  
  17. FUNCS = bitcount.o files.o fpoll.o internal.o lgconv.o osf.o \
  18.     pack.o ppm.o process.o tconnect.o
  19. CSRC = $(FUNCS:.o=.c)
  20.  
  21.  
  22. default:    cfunc.u2 $(FUNCLIB)
  23.  
  24.  
  25. # library
  26.  
  27. $(FUNCLIB):    $(FUNCS) mklib.sh
  28.         CC="$(CC)" CFLAGS="$(CFLAGS)" sh mklib.sh $(FUNCLIB) $(FUNCS)
  29. $(FUNCS):    icall.h
  30.  
  31.  
  32. # Icon interface
  33.  
  34. cfunc.u2:    cfunc.icn
  35.         $(ICONT) $(IFLAGS) -c cfunc.icn
  36. cfunc.icn:    $(CSRC) mkfunc.sh
  37.         sh mkfunc.sh $(FUNCLIB) $(FUNCS) >cfunc.icn
  38.  
  39.  
  40. # cleanup
  41.  
  42. clean Clean:
  43.         rm -f $(FUNCLIB) *.o *.u? *.so so_locations cfunc.icn
  44.