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

https://doi.org/10.5201/ipol.2022.215
11 April 2026, 15:45:18 UTC
  • Code
  • Branches (0)
  • Releases (2)
  • Visits
    • Branches
    • Releases
      • 2
      • 2
      • 1
    • c530314
    • /
    • paraws
    • /
    • Makefile
    Raw File Download

    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
    • snapshot
    • release
    origin badgecontent badge
    swh:1:cnt:0f176b0646483432e1b6db0be59a5f509df8231a
    origin badgedirectory badge
    swh:1:dir:bb309b6c220124321a1ac969488a1621c674679d
    origin badgesnapshot badge
    swh:1:snp:78d18a3e9f4a56ecaf1e6817d370abae618d0a7c
    origin badgerelease badge
    swh:1:rel:f3a4320e8346f38185539583336571c1b856fc47

    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
    • snapshot
    • release
    (requires biblatex-software package)
    Generating citation ...
    (requires biblatex-software package)
    Generating citation ...
    (requires biblatex-software package)
    Generating citation ...
    (requires biblatex-software package)
    Generating citation ...
    Makefile
    BIN = paraws
    LIB = src/libparaws.a
    TESTS = tests/unit_tests
    
    
    # default: build paraws binary
    .PHONY: all
    all: $(BIN)
    
    # since it contains a 'common-clean' rule, common.mk should be
    # included after the 'all' rule to keep it as the default rule
    include common.mk
    
    # to build paraws binary
    $(BIN) : $(BIN).o $(LIB)
    	$(CXX) -o $@ $^ $(CXXFLAGS) $(LDFLAGS) $(LDLIBS)
    
    # to build libparaws.a
    $(LIB):
    	$(MAKE) -C src
    
    # to build and run tests
    .PHONY: test
    test: $(LIB)
    	$(MAKE) -C tests run
    
    # to run paraws binary
    .PHONY: run
    run: $(BIN)
    	./$^
    
    # what does this rule means?
    print-% : ; @echo $* = $($*)
    
    .PHONY: clean
    clean: common-clean
    	$(RM) paraws.o paraws
    	$(MAKE) -C src $@
    	$(MAKE) -C tests $@
    
    .PHONY: tags
    tags:
    	ctags -e --file-scope=no -R
    
    TIDY = clang-tidy
    CHECK = clang-check
    FORMAT = clang-format
    SRCS = $(shell find . -type f -name '*.cpp')
    HDRS = $(shell find . -type f -name '*.hpp')
    CCMD = build
    ARGS = -extra-arg=-std=c++11
    
    .PHONY: tidy
    tidy:
    	$(TIDY) -p $(CCMD) $(ARG) $(SRCS)
    
    .PHONY: check
    check:
    	$(CHECK) -p $(CCMD) $(ARGS) $(SRCS)
    
    .PHONY: format
    format:
    	$(FORMAT) -i $(SRCS) $(HDRS)
    

    back to top

    Software Heritage — Copyright (C) 2015–2026, 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— Content policy— Contact— JavaScript license information— Web API