home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / perl502b.zip / OS2 / sdbm.mk < prev    next >
Makefile  |  1994-12-09  |  1KB  |  63 lines

  1. #
  2. # This Makefile is for the library part of sdbm.  For the
  3. # Full package, see makefile.sdbm.
  4. # Makefile for public domain ndbm-clone: sdbm
  5. # DUFF: use duff's device (loop unroll) in parts of the code
  6. #
  7. #
  8. CC = gcc
  9. RANLIB = ar s
  10. TOP = ../../..
  11. ABSTOP = e:/hsrc/perl5
  12. LDFLAGS = 
  13. CLDFLAGS = 
  14. SMALL = 
  15. LARGE =  
  16.  
  17. # To use an alternate make, set $altmake in config.sh.
  18. MAKE = make
  19.  
  20. # The following are used to build and install shared libraries for
  21. # dynamic loading.
  22. LDDLFLAGS = 
  23. CCDLFLAGS = 
  24. CCCDLFLAGS = 
  25.  
  26. SHELL = /bin/sh
  27. CCCMD = gcc -c -O
  28.  
  29. .c.o:
  30.     $(CCCMD) $(CCCDLFLAGS) -I$(TOP) -DSDBM -DDUFF $*.c
  31.  
  32. LIBOBJS = sdbm.o pair.o hash.o
  33. LIBSRCS = sdbm.c pair.c hash.c
  34. HDRS = tune.h sdbm.h pair.h $(TOP)/config.h
  35.  
  36. all:    sdbm.a
  37.  
  38. sdbm.a: $(LIBOBJS)
  39.     ar cr sdbm.a $(LIBOBJS)
  40.     $(RANLIB) sdbm.a
  41.     emxomf -l sdbm.a
  42.     cp sdbm.a sdbm.lib $(ROOTDIR)/usr/lib/emx
  43.  
  44. $(LIBOBJS): $(HDRS)
  45.  
  46. lint:
  47.     lint -abchx $(LIBSRCS)
  48.  
  49. clean:
  50.     rm -f *.o *.a mon.out core
  51.  
  52. realclean:     clean
  53.     rm -f dbu sdbm.a dbd dba dbe x-dbu *.dir *.pag
  54.     rm -f makefile Makefile
  55.  
  56. purge:    realclean
  57.  
  58. sdbm.o : sdbm.c $(TOP)/config.h sdbm.h tune.h pair.h 
  59. hash.o : hash.c $(TOP)/config.h sdbm.h 
  60. pair.o : pair.c $(TOP)/config.h sdbm.h tune.h pair.h 
  61.  
  62.