Skip to main content
  • Home
  • Development
  • Documentation
  • Donate
  • Operational login
  • Browse the archive

swh logo
SoftwareHeritage
Software
Heritage
Archive
Features
  • Search

  • Downloads

  • Save code now

  • Add forge now

  • Help

  • bd626d3
  • /
  • Makefile.in
Raw File Download
Permalinks

To reference or cite the objects present in the Software Heritage archive, permalinks based on SoftWare Hash IDentifiers (SWHIDs) must be used.
Select below a type of object currently browsed in order to display its associated SWHID and permalink.

  • content
  • directory
content badge Iframe embedding
swh:1:cnt:827a0721c73099003f7192f255ea4e94cd065f6c
directory badge Iframe embedding
swh:1:dir:bd626d3a844a9e0d01c649d4e255fa860c0587ab
Citations

This interface enables to generate software citations, provided that the root directory of browsed objects contains a citation.cff or codemeta.json file.
Select below a type of object currently browsed in order to generate citations for them.

  • content
  • directory
Generate software citation in BibTex format (requires biblatex-software package)
Generating citation ...
Generate software citation in BibTex format (requires biblatex-software package)
Generating citation ...
Makefile.in
VERSION=@PACKAGE_VERSION@
NAME=@PACKAGE_NAME@

CFLAGS=@CFLAGS@ -fPIC -Wall -pedantic -Werror -Wno-long-long
CPPFLAGS=@CPPFLAGS@
LDFLAGS=@LDFLAGS@

OCAMLFIND=@OCAMLFIND@
OCAMLBUILD=@OCAMLBUILD@

datarootdir = @datarootdir@
prefix = @prefix@
exec_prefix = @exec_prefix@

ifeq ($(DESTDIR),)
LIBDIR=$(shell ocamlfind printconf destdir)
BINDIR=@bindir@
MANDIR=@mandir@/man3
INSTALL = $(OCAMLFIND) install
UNINSTALL = $(OCAMLFIND) remove
else
export OCAMLLIBDIR := lib/ocaml
LIBDIR=$(DESTDIR)/$(OCAMLLIBDIR)
BINDIR=$(DESTDIR)/bin
MANDIR=$(DESTDIR)/man/man3
INSTALL = $(OCAMLFIND) install -destdir $(LIBDIR)
UNINSTALL = $(OCAMLFIND) remove -destdir $(LIBDIR)
endif


ifeq ("@OCAMLBEST@","opt")
  OCAMLBEST=native
else
  OCAMLBEST=byte
endif

DIST_DIR = $(NAME)-$(VERSION)
DIST_TARBALL = $(DIST_DIR).tar.gz

OBFLAGS = -j 10 -use-ocamlfind #-classic-display
#OBFLAGS += $(OBFLAGS) -tag debug -tag profile

BYTELIBS = parmap.cma
OPTLIBS=
CMXSLIBS=
ALIBS=

ifeq ("@OCAMLBEST@","opt")
  ALIBS = $(BYTELIBS:%.cma=%.a)
  OPTLIBS += $(BYTELIBS:%.cma=%.cmxa)
endif

ifeq ("@OCAMLNATDYNLINK@", "yes")
  CMXSLIBS += $(BYTELIBS:%.cma=%.cmxs)
endif

all:
	$(OCAMLBUILD) $(OBFLAGS) $(BYTELIBS) $(OPTLIBS) $(CMXSLIBS) $(ALIBS)

fast: 
	$(OCAMLBUILD) $(OBFLAGS) $(OPTLIBS)

TESTS = \
  tests/simplescale.$(OCAMLBEST) \
  tests/floatscale.$(OCAMLBEST) \
  tests/simplescale_array.$(OCAMLBEST) \
  tests/simplescalefold.$(OCAMLBEST) \
  tests/simplescalemapfold.$(OCAMLBEST)

tests:
	$(OCAMLBUILD) $(OBFLAGS) $(TESTS)

EXAMPLES = \
  example/mandels.$(OCAMLBEST)

examples:
	$(OCAMLBUILD) $(OBFLAGS) $(EXAMPLES)


INSTALL_STUFF = META 
INSTALL_STUFF += $(wildcard _build/*.cma _build/*.cmx _build/*.cmxa _build/*.cmxs)
INSTALL_STUFF += $(filter-out $(wildcard _build/myocamlbuild.*),$(wildcard _build/*.mli _build/*.cmi))
INSTALL_STUFF += $(wildcard _build/*.so _build/*.a)

install: $(LIBS) META
	test -d $(LIBDIR) || mkdir -p $(LIBDIR)
	test -d $(LIBDIR)/stublibs || mkdir -p $(LIBDIR)/stublibs
	$(INSTALL) -patch-version $(VERSION) $(NAME) $(INSTALL_STUFF)
	(cd _build; ocamldoc -man -man-mini parmap.ml parmap.mli)
	test -d $(MANDIR) || mkdir -p $(MANDIR)
	cp -p _build/Parmap.3o $(MANDIR)

uninstall:
	$(UNINSTALL) $(NAME)
	rm -f $(MANDIR)/Parmap.3o

doc:
	$(OCAMLBUILD) $(OBFLAGS) $(NAME).docdir/index.html $(NAME).docdir/index.dot
	dot -Grotate=0 -Tsvg -o $(NAME).docdir/index.svg $(NAME).docdir/index.dot

clean:
	$(OCAMLBUILD) -clean

dist: ./$(DIST_TARBALL)
./$(DIST_TARBALL):
	if [ -d ./$(DIST_DIR)/ ] ; then rm -rf ./$(DIST_DIR)/ ; fi
	if [ -d ./$(DIST_TARBALL) ] ; then rm -f ./$(DIST_TARBALL) ; fi
	if [ -d .svn ]; then \
          svn export . ./$(DIST_DIR) ; \
        else \
          mkdir ./$(DIST_DIR)/ ;\
	  git archive --format=tar HEAD | \
	  tar -x -C ./$(DIST_DIR)/ ; \
        fi
	for f in $(DIST_EXCLUDE) ; do rm -rf ./$(DIST_DIR)/$$f; done
	tar cvzf ./$(DIST_TARBALL) ./$(DIST_DIR)
	rm -rf ./$(DIST_DIR)
	@echo "Distribution tarball: ./$(DIST_TARBALL)"

.PHONY: all fast install clean dist examples tests

Software Heritage — Copyright (C) 2015–2025, The Software Heritage developers. License: GNU AGPLv3+.
The source code of Software Heritage itself is available on our development forge.
The source code files archived by Software Heritage are available under their own copyright and licenses.
Terms of use: Archive access, API— Contact— JavaScript license information— Web API

back to top