summaryrefslogtreecommitdiffstats
path: root/src/config/libobj.in
diff options
context:
space:
mode:
authorTom Yu <tlyu@mit.edu>1997-02-09 17:43:52 +0000
committerTom Yu <tlyu@mit.edu>1997-02-09 17:43:52 +0000
commit561f2cdd8613f26d7de48c567b603e8c06fe7e5a (patch)
tree4165fe26da185697068044d1fba17cb15d5b19bc /src/config/libobj.in
parent647d10f2b8efd96a47ce5864f685b17cc7705f9f (diff)
downloadkrb5-561f2cdd8613f26d7de48c567b603e8c06fe7e5a.tar.gz
krb5-561f2cdd8613f26d7de48c567b603e8c06fe7e5a.tar.xz
krb5-561f2cdd8613f26d7de48c567b603e8c06fe7e5a.zip
Merge of libhack_branch
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@9831 dc483132-0cff-0310-8789-dd5450dbe970
Diffstat (limited to 'src/config/libobj.in')
-rw-r--r--src/config/libobj.in72
1 files changed, 72 insertions, 0 deletions
diff --git a/src/config/libobj.in b/src/config/libobj.in
new file mode 100644
index 0000000000..bbff258f9e
--- /dev/null
+++ b/src/config/libobj.in
@@ -0,0 +1,72 @@
+### config/libobj.in
+#
+# Makefile fragment that builds object files for libraries.
+#
+# The following variables must be set in Makefile.in:
+#
+# STLIBOBJS list of .o objects; this must not contain variable
+# references.
+
+# Set to "OBJS.ST OBJS.SH OBJS.PF" or some subset thereof by
+# configure; determines which types of object files get built.
+OBJLISTS=@OBJLISTS@
+
+# Note that $(LIBSRCS) *cannot* contain any variable references, or
+# the suffix substitution will break on some platforms!
+SHLIBOBJS=$(STLIBOBJS:.o=@SHOBJEXT@)
+PFLIBOBJS=$(STLIBOBJS:.o=@PFOBJEXT@)
+
+# "$(CC) -G", "$(LD) -Bshareable", etc.
+LDCOMBINE=@LDCOMBINE@
+
+# "-h $@", "-h lib$(LIBNAME).$(LIBMAJOR)", etc.
+SONAME=@SONAME@
+
+#
+# rules to make various types of object files
+#
+PICFLAGS=@PICFLAGS@
+PROFFLAGS=@PROFFLAGS@
+.SUFFIXES: .c .o .so .po
+.c.o:
+ $(CC) $(CFLAGS) -c $<
+.c.so:
+ $(CC) $(PICFLAGS) $(CFLAGS) -c $< -o $*.so
+.c.po:
+ $(CC) $(PROFFLAGS) $(CFLAGS) -c $< -o $*.po
+
+# rules to generate object file lists
+#
+# The "STAMP.*" files are there in case the object list happens to be
+# empty.
+OBJS.ST: STAMP.ST
+STAMP.ST: $(STLIBOBJS)
+ @echo $(STLIBOBJS) > OBJS.ST
+ touch $@
+
+OBJS.SH: STAMP.SH
+STAMP.SH: $(SHLIBOBJS)
+ @echo $(SHLIBOBJS) > OBJS.SH
+ touch $@
+
+OBJS.PF: STAMP.PF
+STAMP.PF: $(PFLIBOBJS)
+ @echo $(PFLIBOBJS) > OBJS.PF
+ touch $@
+
+all-libobjs: $(OBJLISTS)
+
+clean-libobjs:
+ $(RM) OBJS.ST OBJS.SH OBJS.PF
+ $(RM) STAMP.ST STAMP.SH STAMP.PF
+ $(RM) $(STLIBOBJS)
+ $(RM) $(SHLIBOBJS)
+ $(RM) $(PFLIBOBJS)
+
+Makefile: $(SRCTOP)/config/libobj.in
+
+# clean-unix:: clean-libobjs
+# all-unix:: all-libobjs
+
+###
+### end config/libobj.in