~tim/lydia

c1b0312cd47bd8710daf9712594d2679d976259f — Tim Morgan 2 years ago 30ccd2e
Fix build process
2 files changed, 3 insertions(+), 2 deletions(-)

M Makefile
M README.md
M Makefile => Makefile +2 -2
@@ 21,9 21,9 @@ bin/lidija: ext/lib/libgc.so

ext/lib/libgc.so:
	mkdir -p ext
	if [ ! -f ext/gc.tar.gz ]; then curl -o ext/gc.tar.gz http://www.hpl.hp.com/personal/Hans_Boehm/gc/gc_source/gc-7.2b.tar.gz; fi
	if [ ! -f ext/gc.tar.gz ]; then curl -o ext/gc.tar.gz http://www.hboehm.info/gc/gc_source/gc-7.6.4.tar.gz; fi
	cd ext && tar xzf gc.tar.gz
	cd ext/gc-7.2 && ./configure --prefix=`pwd`/../ --enable-redirect-malloc && make && make install
	cd ext/gc-7.6.4 && ./configure --prefix=`pwd`/../ --enable-redirect-malloc && make && make install

debug: ext/lib/libgc.so
	${CC} src/bin/lidija.c -Isrc ${CFLAGS} -g ${ALL} ${DEPS} -o bin/lidija

M README.md => README.md +1 -0
@@ 81,6 81,7 @@ Things that are missing (for now):

Download the source and build:

    sudo apt install libatomic-ops-dev libgmp3-dev
    make build

The build task downloads and builds libgc -- if that fails, you may need to build libgc manually (see the Makefile) and move the shared libs into `ext/lib` and the headers into `ext/include`.