home *** CD-ROM | disk | FTP | other *** search
/ Source Code 1992 March / Source_Code_CD-ROM_Walnut_Creek_March_1992.iso / usenet / altsrcs / 1 / 1156 / Makefile < prev    next >
Encoding:
Makefile  |  1990-12-28  |  1.3 KB  |  50 lines

  1. # This file is part of libdyn.a, the C Dynamic Object library.  It
  2. # contains the Makefile.
  3. #
  4. # There are no restrictions on this code; however, if you make any
  5. # changes, I request that you document them so that I do not get
  6. # credit or blame for your modifications.
  7. #
  8. # Written by Barr3y Jaspan, Student Information Processing Board (SIPB)
  9. # and MIT-Project Athena, 1989.
  10.  
  11. DESTDIR = /afs/.athena.mit.edu/contrib/sipb/$(MACHINE)lib
  12. CC    = cc
  13. CFLAGS    = -g
  14. DEST    = libdyn.a
  15.  
  16. SRCS    = dyn_create.c dyn_put.c dyn_debug.c dyn_delete.c dyn_size.c \
  17.     dyn_append.c dyn_realloc.c dyn_paranoid.c dyn_insert.c
  18. OBJS    = dyn_create.o dyn_put.o dyn_debug.o dyn_delete.o dyn_size.o \
  19.     dyn_append.o dyn_realloc.o dyn_paranoid.o dyn_insert.o
  20. HDRS    = dyn.h dynP.h
  21.  
  22. $(DEST): $(OBJS)
  23.     rm -f $(DEST)
  24.     ar rc $(DEST) $(OBJS)
  25.     ranlib $(DEST)
  26.  
  27. install:
  28.     make $(INSTFLAGS) DEST="libdyn.a" CFLAGS="-g" clean libdyn.a
  29.     cp libdyn.a $(DESTDIR)
  30.     ranlib $(DESTDIR)/libdyn.a
  31.     make $(INSTFLAGS) DEST="libdyn_p.a" CFLAGS="-g -pg" clean libdyn_p.a
  32.     cp libdyn_p.a $(DESTDIR)    
  33.     ranlib $(DESTDIR)/libdyn_p.a
  34.     
  35. all: $(DEST) test
  36.  
  37. test: $(DEST) test.o
  38.     $(CC) -o test test.o $(DEST)
  39.  
  40. saber:
  41.     #load $(SRCS)
  42.  
  43. clean:
  44.     rm -f $(OBJS) $(DEST) test *~
  45.  
  46. depend:
  47.     makedepend -- $(CLFAGS) -- $(HDRS) $(SRCS)
  48.  
  49. # DO NOT DELETE THIS LINE -- make depend depends on it.
  50.