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

  • 8c1238a
  • /
  • 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
content badge
swh:1:cnt:75b358a91219713737f0f97789c9a6d89c543e84
directory badge
swh:1:dir:8c1238a26a66d4aa249856bd78f67657060843a2

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
(requires biblatex-software package)
Generating citation ...
(requires biblatex-software package)
Generating citation ...
makefile
#-Wextra  -pedantic -Wno-unused-parameter -Wall -Wextra -ansi
CFLAGS =  -std=c++14 -O3 -Wall -DNDEBUG
EXEC = test

LIBS = `xml2-config --libs`
INC = `xml2-config --cflags`  -I../include
CPP_FILES := $(wildcard ../src/*.cc)
OBJ_FILES := $(addprefix ../obj/,$(notdir $(CPP_FILES:.cc=.o)))

all: main.cc $(OBJ_FILES)
	$(CXX)  $(CFLAGS) $(INC) -o $(EXEC) $^ $(LIBS)

../obj/%.o: ../src/%.cc
	@mkdir -p ../obj
	$(CXX) $(CFLAGS) $(INC) -c -o $@ $<

lib: $(OBJ_FILES) 
	@mkdir -p ../lib
	@ar rcsv ../lib/libparserxcsp3core.a $(OBJ_FILES)

testlib: main.cc
	$(CXX)  $(CFLAGS) $(INC) -o testlib main.cc -L ../lib $(LIBS) -lparserxcsp3core

testTree: testTree.cc
	$(CXX)  $(CFLAGS) $(INC) -o testTree testTree.cc -L ../lib $(LIBS) -lparserxcsp3core

testCanonization: testCanonization.cc $(OBJ_FILES)
	$(CXX)  $(CFLAGS) $(INC) -o testCanonization testCanonization.cc -L ../lib $(LIBS) -lparserxcsp3core

clean:
	rm -rf ../obj/*.o test ../lib/* testlib


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