home *** CD-ROM | disk | FTP | other *** search
/ Usenet 1994 January / usenetsourcesnewsgroupsinfomagicjanuary1994.iso / sources / unix / volume18 / mcqueer-lib / Makefile < prev    next >
Encoding:
Makefile  |  1989-11-09  |  810 b   |  30 lines

  1. #
  2. # where to put the library
  3. #
  4. LIBARC = $(HOME)/lib/bobm.a
  5.  
  6. # if your compiler doesn't like the initialization of a pointer with
  7. # an array address in strstore.c, define NO_PTR_INIT
  8. #
  9. # if you define HASHMAGIC to be some number, you will get magic number
  10. # checks in the hash table routines, which can be helpful in tracking
  11. # down instances of client code passing bad context addresses.  Not done
  12. # by default to avoid overhead.  See hash.c
  13. #
  14. CFLAGS = -O
  15.  
  16. #
  17. # if strtok() is available in your c runtime library, remove it from
  18. # the list - this will be all SYSV, and some BSD systems like ULTRIX
  19. #
  20. LIBOBJS = hash.o diagnostic.o prime.o strstore.o strtok.o
  21.  
  22. #
  23. # for SYSV, make RANLIB an effective no-op, like "ls" or "echo"
  24. #
  25. RANLIB = ranlib
  26.  
  27. lib : $(LIBOBJS)
  28.     ar rvu $(LIBARC) $(LIBOBJS)
  29.     $(RANLIB) $(LIBARC)
  30.