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
7 changes: 6 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -175,6 +175,11 @@ $(OUTDIRXX)/%$(OBJ): src/%$(ASM)
# other targets
# -------------------------------------

install: $(HLIB)
mkdir -p $(PREFIX)/lib $(PREFIX)/include
cp $(HLIB) $(PREFIX)/lib/
cp inc/*.h $(PREFIX)/include/

docs:

clean:
Expand Down Expand Up @@ -228,4 +233,4 @@ depend: init
sed -e "s|\(.*\.o\)|$(CONFIGDIR)/\$$(VARIANT)/\1|g" $(CONFIGDIR)/temp.depend >> $(CONFIGDIR)/makefile.depend
$(RM) $(CONFIGDIR)/temp.depend

include $(CONFIGDIR)/makefile.depend
include $(CONFIGDIR)/makefile.depend
8 changes: 7 additions & 1 deletion configure
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ asmflags=''
verbose=no
cxx=''
cxxflags=''
prefix='/usr/local'

# Parse command-line arguments
while : ; do
Expand Down Expand Up @@ -45,6 +46,8 @@ while : ; do
target_abi=$flag_arg;;
-os*|--os*)
target_os=$flag_arg;;
--prefix*)
prefix=$flag_arg;;
-h|--help|-\?|help|\?)
echo "./configure [options]"
echo " --cc=<ccomp> set the c-compiler (for example 'clang')"
Expand All @@ -55,6 +58,7 @@ while : ; do
echo " --asm-opts=<options> set extra assembler options (for example '-m32')"
echo " --abi=<abi> set target ABI (for example: 'x86' or 'amd64')"
echo " --os=<os> set target OS (for example: 'windows' or 'linux')"
echo " --prefix=<path> set install target prefix (default: /usr/local)"
echo " --verbose be verbose"
exit 0;;
*) echo "warning: unknown option \"$1\"." 1>&2
Expand Down Expand Up @@ -470,6 +474,8 @@ echo "CD=cd" >> makefile.inc
echo "RM=rm -f" >> makefile.inc
echo "MKDIR=mkdir -p" >> makefile.inc

echo "PREFIX=$prefix" >> makefile.inc

# clean up and go to root dir again

# rm -f tst$exe hasgot.c *$obj
Expand Down Expand Up @@ -506,4 +512,4 @@ echo "> make tests"
echo
echo "Test release version:"
echo "> make tests VARIANT=release"
echo
echo