From 3f5348c717ea2d0cd9eaff7e4c1090c99b5405f0 Mon Sep 17 00:00:00 2001 From: Theodore Tso Date: Sat, 27 May 1995 00:08:01 +0000 Subject: [PATCH] Add support for building shared libraries git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@5903 dc483132-0cff-0310-8789-dd5450dbe970 --- src/util/profile/ChangeLog | 4 ++++ src/util/profile/Makefile.in | 15 +++++++++++++-- src/util/profile/configure.in | 1 + 3 files changed, 18 insertions(+), 2 deletions(-) diff --git a/src/util/profile/ChangeLog b/src/util/profile/ChangeLog index d90d6c11e..c76957e57 100644 --- a/src/util/profile/ChangeLog +++ b/src/util/profile/ChangeLog @@ -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 * test_parse.c: Include prof_int.h - this program relies on diff --git a/src/util/profile/Makefile.in b/src/util/profile/Makefile.in index 0d36b16aa..4247fe3de 100644 --- a/src/util/profile/Makefile.in +++ b/src/util/profile/Makefile.in @@ -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 diff --git a/src/util/profile/configure.in b/src/util/profile/configure.in index 75842fb74..63d3cf7e9 100644 --- a/src/util/profile/configure.in +++ b/src/util/profile/configure.in @@ -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 -- 2.26.2