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

  • b41dddd
  • /
  • Makefile.schema
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:14ccf3ea1acd3843b79b5eb169ec1749ed71e0cb
directory badge Iframe embedding
swh:1:dir:b41dddd2eb7b13f8b7199d566241be68c78a83ab
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.schema

TOP = ../../..

#include "../../../Makefile.include"

.SUFFIXES: .o .cpp .c
.cpp.o:
        $(CXX) $(CXXFLAGS) $(LCFLAGS) $(INCFLAGS) -c $<

EXPORTED_INCS = cmm.h tempheap.h msw.h machine.h
EXPORTED_LIBS = libCmm.a

HFILES = machine.h cmm.h

OBJS = 	cmm.o tempheap.o msw.o memory.o

TESTS = test2 test3 test4 test5 test6 test7 testmsw1 testmsw2 testmsw3

all: libCmm.a

library:
	@echo Making nothing.....
	@echo "Sorry, your Posso library is not in the expected place ;}."

test : ${TESTS}
	 @for i in ${TESTS}; do  \
	   ( echo "Running " ./$$i "..."; \
	     ./$$i >tests.out 2>&1 ;  \
	   )                    \
	done

libCmm.a: $(OBJS)
	ar ru libCmm.a $(OBJS)
	$(RANLIB) libCmm.a

cmm.o: cmm.cpp $(HFILES)

memory.o: memory.cpp $(HFILES)

tempheap.o: tempheap.cpp tempheap.h $(HFILES)

msw.o: msw.cpp msw.h $(HFILES)

stamp:
	sed -e s:'"CMM .*"':\\\"CMM `date +%D`\\\": cmm.cpp > tmp.cpp
	mv tmp.cpp cmm.cpp

test2:	test2.cpp libCmm.a
	${CPP} -o test2 ${CFLAGS} test2.cpp libCmm.a

test3:	test3.cpp libCmm.a
	${CPP} -o test3 ${CFLAGS} test3.cpp libCmm.a

test4:	test4.cpp libCmm.a
	${CPP} -o test4 ${CFLAGS} test4.cpp libCmm.a 

test5:	test5.cpp libCmm.a
	${CPP} -o test5 ${CFLAGS} test5.cpp libCmm.a 

test6:	test6.cpp libCmm.a
	${CPP} -o test6 ${CFLAGS} test6.cpp libCmm.a 

test7:	test7.cpp libCmm.a
	${CPP} -o test7 ${CFLAGS} test7.cpp libCmm.a 

testmsw1: testmsw1.c libCmm.a
	${CPP} -g -o testmsw1 ${CFLAGS} testmsw1.c libCmm.a

testmsw2: testmsw2.c libCmm.a
	${CPP} -g -o testmsw2 ${CFLAGS} testmsw2.c libCmm.a

testmsw3: testmsw3.cpp libCmm.a
	${CPP} ${OPTS} -o testmsw3 ${CFLAGS} testmsw3.cpp libCmm.a

.Makefile:
	set DIR=`pwd`; cd $(TOP); make SUBDIRS=$$DIR Makefiles

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