Add support for building shared libraries
authorTheodore Tso <tytso@mit.edu>
Sat, 27 May 1995 00:08:01 +0000 (00:08 +0000)
committerTheodore Tso <tytso@mit.edu>
Sat, 27 May 1995 00:08:01 +0000 (00:08 +0000)
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@5903 dc483132-0cff-0310-8789-dd5450dbe970

src/util/profile/ChangeLog
src/util/profile/Makefile.in
src/util/profile/configure.in

index d90d6c11eb6bf8f3e738757eaf55d32e4c81492b..c76957e572e33153d188d34a681bc8762fd1125d 100644 (file)
@@ -1,3 +1,7 @@
+Fri May 26 20:07:13 1995  Theodore Y. Ts'o  (tytso@dcl)
+
+       * configure.in, Makefile.in: Add support for shared libraries.
+
 Sat May  6 17:21:59 1995  Ezra Peisach  <epeisach@kangaroo.mit.edu>
 
        * test_parse.c: Include prof_int.h - this program relies on
index 0d36b16aa2b9ab531199eb8860dc8d4668f0295d..4247fe3de9fabccf3ce05790ed90e0b073e38fe9 100644 (file)
@@ -6,6 +6,10 @@ CFLAGS = $(CCOPTS) $(DEFS) $(LOCALINCLUDE)
 
 LOCALINCLUDE=-I. -I$(srcdir)/../et
 
+.c.o:
+       $(CC) $(CFLAGS) -c $(srcdir)/$*.c
+@SHARED_RULE@
+
 OBJS = prof_tree.$(OBJEXT) \
        prof_file.$(OBJEXT) \
        prof_parse.$(OBJEXT) \
@@ -23,7 +27,10 @@ LIBS = ../et/libcom_err.$(LIBEXT)
 all:: all-$(WHAT)
 
 all-max:: all-unix
-all-unix:: includes libprofile.a test_parse test_profile
+all-unix:: shared includes libprofile.a test_parse test_profile
+
+shared:
+       mkdir shared
 
 all-windows: $(OBJS)
 
@@ -58,12 +65,16 @@ prof_err.h: $(srcdir)/prof_err.et
 
 prof_err.c: $(srcdir)/prof_err.et
 
+prof_err.o: prof_err.c
+       $(CC) $(CFLAGS) -c prof_err.c
+@SHARED_RULE_LOCAL@
+
 clean:: clean-$(WHAT)
 
 clean-mac:: clean-unix
 clean-unix::
        rm -f $(PROGS) *.o *~ test_parse core libprofile.a prof_err.h \
-               prof_err.c test_profile profile.h
+               prof_err.c test_profile profile.h shared/*
 
 clean-windows::
        $(RM) profile.lib profile.bak test_parse.exe test_profile.exe
index 75842fb74fb5e96f54ec73cf9f72ef6c857dab15..63d3cf7e9443ff970f8066d682b2fea8f829d9ff 100644 (file)
@@ -7,6 +7,7 @@ AC_PROG_ARCHIVE
 AC_PROG_ARCHIVE_ADD
 AC_PROG_RANLIB
 ET_RULES
+V5_SHARED_LIB_OBJS
 CopyHeader(profile.h,$(BUILDTOP)/include)
 SubdirLibraryRule([$(OBJS)])
 V5_AC_OUTPUT_MAKEFILE