Skip to content

Commit

Permalink
Add makefile for minimal installation.
Browse files Browse the repository at this point in the history
  • Loading branch information
Tekki committed Nov 6, 2019
1 parent 1d0eefa commit 802a8dc
Show file tree
Hide file tree
Showing 5 changed files with 38 additions and 5 deletions.
6 changes: 5 additions & 1 deletion NEWS
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
Fri Nov 1, 2019: Released quickxor 0.01
...: Version 0.02

* Makefile for simple compilation

2019-11-01: Version 0.01

* First release
13 changes: 10 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,16 +30,23 @@ It was published by Microsoft in 2016 in form of a C\# script. The explanation d

# INSTALLATION

wget https://github.com/Tekki/quickxor-c/archive/v0.01.tar.gz -O quickxor-0.01.tar.gz
tar xvzf quickxor-0.01.tar.gz
cd quickxor-c-0.01
Requires `openssl`. For full installation additionally `automake` and `libtool`.

wget https://github.com/Tekki/quickxor-c/archive/v0.02.tar.gz -O quickxor-0.02.tar.gz
tar xvzf quickxor-0.02.tar.gz
cd quickxor-c-0.02
autoreconf --install
./configure
make
make check # optional
sudo make install
sudo ldconfig

If you just need a running binary you can compile it with

cd src
make -f Makefile.simple

# BINARY

## quickxorhash
Expand Down
7 changes: 7 additions & 0 deletions README.md.in
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,8 @@ It was published by Microsoft in 2016 in form of a C\# script. The explanation d

# INSTALLATION

Requires `openssl`. For full installation additionally `automake` and `libtool`.

wget https://github.com/Tekki/quickxor-c/archive/v@PACKAGE_VERSION@.tar.gz -O @PACKAGE_TARNAME@-@PACKAGE_VERSION@.tar.gz
tar xvzf @PACKAGE_TARNAME@-@PACKAGE_VERSION@.tar.gz
cd quickxor-c-@PACKAGE_VERSION@
Expand All @@ -40,6 +42,11 @@ It was published by Microsoft in 2016 in form of a C\# script. The explanation d
sudo make install
sudo ldconfig

If you just need a running binary you can compile it with

cd src
make -f Makefile.simple

# BINARY

## quickxorhash
Expand Down
2 changes: 1 addition & 1 deletion configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

# prelude
AC_PREREQ([2.69])
AC_INIT([QuickXor],[0.01],[tekki@tekki.ch])
AC_INIT([QuickXor],[0.02],[tekki@tekki.ch])
AM_PROG_AR

# unique source file --- primitive safety check
Expand Down
15 changes: 15 additions & 0 deletions src/Makefile.simple
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
CC = gcc
CFLAGS = -lm -lssl -lcrypto -g -Wall

quickxorhash: quickxor_bin.o quickxor.o
$(CC) $(CFLAGS) $^ -o $@

quickxor_bin.o: quickxor_bin.c
$(CC) -c $^ -o $@

quickxor.o: quickxor.c
$(CC) -c $^ -o $@

clean:
rm -f *.o
rm -f quickxorhash

0 comments on commit 802a8dc

Please sign in to comment.