summaryrefslogtreecommitdiff
path: root/Build/source/texk/web2c/pdftexdir/pdftexlib.mk
diff options
context:
space:
mode:
Diffstat (limited to 'Build/source/texk/web2c/pdftexdir/pdftexlib.mk')
-rw-r--r--Build/source/texk/web2c/pdftexdir/pdftexlib.mk14
1 files changed, 12 insertions, 2 deletions
diff --git a/Build/source/texk/web2c/pdftexdir/pdftexlib.mk b/Build/source/texk/web2c/pdftexdir/pdftexlib.mk
index 5b3f745385c..6c0b25956b4 100644
--- a/Build/source/texk/web2c/pdftexdir/pdftexlib.mk
+++ b/Build/source/texk/web2c/pdftexdir/pdftexlib.mk
@@ -58,6 +58,16 @@ clean:: md5lib-clean
md5lib-clean:
rm -f $(LIBMD5DEP)
+# obsdcompat
+LIBOBSDDIR=../../libs/obsdcompat
+LIBOBSDSRCDIR=$(srcdir)/$(LIBOBSDCOMPATDIR)
+LIBOBSDDEP=@LIBOBSDDEP@
+LDLIBOBSD=@LDLIBOBSD@
+
+$(LIBOBSDDIR)/libopenbsd-compat.a: $(LIBOBSDSRCDIR)/*.c $(LIBOBSDSRCDIR)/*.h
+# common_makeargs = $(MFLAGS) CC='$(CC)' CFLAGS='$(CFLAGS)' LDFLAGS='$(LDFLAGS)' $(XMAKEARGS)
+# CFLAGS setzt libopenbsd-compat selbst, nicht durchreichen!
+ cd $(LIBOBSDDIR); $(MAKE) $(MFLAGS) $(XMAKEARGS) libopenbsd-compat.a
# libpdf itself
pdflib = pdftexdir/libpdf.a
@@ -70,7 +80,7 @@ pdftexdir/libpdf.a: $(pdflib_sources) pdftexdir/pdftexextra.h
# Convenience variables.
-pdftexlibs = $(pdflib) $(LDLIBPNG) $(LDZLIB) $(LDLIBXPDF) $(LIBMD5DEP)
-pdftexlibsdep = $(pdflib) $(LIBPNGDEP) $(ZLIBDEP) $(LIBXPDFDEP) $(LIBMD5DEP)
+pdftexlibs = $(pdflib) $(LDLIBPNG) $(LDZLIB) $(LDLIBXPDF) $(LIBMD5DEP) $(LDLIBOBSD)
+pdftexlibsdep = $(pdflib) $(LIBPNGDEP) $(ZLIBDEP) $(LIBXPDFDEP) $(LIBMD5DEP) $(LIBOBSDDEP)
## end of pdftexlib.mk - Makefile fragment for libraries used by pdf[ex]tex.