Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,18 @@

# $Id: Makefile 2015-06-05 22:54:18 nineties $

LIBDIR = /usr/lib
include config.mk

BINDIR = ${PREFIX}/usr/bin
LIBDIR = ${PREFIX}/usr/lib

all:
cd rowl0; $(MAKE)
cd amber; $(MAKE)

install:
cd amber; $(MAKE) install_binaries install_libraries
sed -i -e "s|PREFIX|$(PREFIX)|g" $(BINDIR)/amber
mkdir -p $(LIBDIR)/amber
cp -ur lib/* $(LIBDIR)/amber
@echo exit | amber --preparse > /dev/null
Expand Down
6 changes: 6 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,12 @@ Amber can be compiled only in Linux environment now.
% make
% make install

Alternatively, if you would like to install it to a local prefix:

* Set `PREFIX` in config.mk to the desired location
* `export PATH=$PREFIX/usr/bin:$PREFIX/amber/usr/lib/amber/bin:$PATH`
* `export LD_LIBRARY_PATH=$PREFIX/usr/lib/`

License
-------
Amber is published under the MIT License. See COPYING for the details of this
Expand Down
6 changes: 4 additions & 2 deletions amber/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,12 @@

# $Id: Makefile 2015-06-10 18:51:57 nineties $

include ../config.mk

TOPDIR = ..
ROWL0DIR = $(TOPDIR)/rowl0
BINDIR = /usr/bin
LIBDIR = /usr/lib
BINDIR = $(PREFIX)/usr/bin
LIBDIR = $(PREFIX)/usr/lib

AS = as
ASFLAGS = --32
Expand Down
2 changes: 1 addition & 1 deletion amber/amber
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
#!/bin/sh
/usr/lib/amber/bin/rlvm /usr/lib/amber/bin/amberi ${@+"$@"}
PREFIX/usr/lib/amber/bin/rlvm PREFIX/usr/lib/amber/bin/amberi ${@+"$@"}
1 change: 1 addition & 0 deletions config.mk
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
PREFIX=/