Skip to content

Commit

Permalink
update makefile and readme
Browse files Browse the repository at this point in the history
  • Loading branch information
chrismoos committed Jun 4, 2011
1 parent 11fc5fe commit 67220de
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 5 deletions.
8 changes: 6 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ OBJECTS = build/hash_ring.o build/sha1.o build/sort.o build/md5.o
TEST_OBJECTS = build/hash_ring_test.o
SHARED_LIB = build/libhashring.so

lib: bindings $(OBJECTS)
lib: $(OBJECTS)
$(CC) $(CFLAGS) $(LDFLAGS) $(OBJECTS) -o $(SHARED_LIB) -shared

test : lib $(TEST_OBJECTS)
Expand All @@ -22,4 +22,8 @@ build/%.o : %.c
$(CC) $(CFLAGS) -c $< -o $@

clean:
rm -rf $(OBJECTS) $(TEST_OBJECTS) $(SHARED_LIB)
rm -rf $(OBJECTS) $(TEST_OBJECTS) $(SHARED_LIB)

install: lib
cp -f build/libhashring.so /usr/local/lib/
cp hash_ring.h /usr/local/include/
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -53,11 +53,11 @@ The high **64-bits** of the digest are used to retrieve the number.

## Compiling

Compile the library with:
Compile the library and install with:

make
sudo make install

This will produce a shared library in **build/libhashring.so**.
This will install the library to **/usr/local/lib/libhashring.so**. The header file *hash_ring.h* is copied to **/usr/local/include/hash_ring.h**.

## Running the tests

Expand Down

0 comments on commit 67220de

Please sign in to comment.