librlp

C library for the Recursive Length Prefix (RLP) serialization format
git clone git://git.defalsify.org/librlp.git
Log | Files | Refs | LICENSE

Makefile (1575B)


      1 build:
      2 	gcc -I./src $(CFLAGS) -c src/rlp.c -o src/rlp.o
      3 	gcc -I./src $(CFLAGS) -c src/encode.c -o src/encode.o
      4 	gcc -I./src $(CFLAGS) -c src/decode.c -o src/decode.o
      5 	gcc -I./src $(CFLAGS) -c src/bits.c -o src/bits.o
      6 	gcc -I./src $(CFLAGS) -c src/endian.c -o src/endian.o
      7 
      8 build_lib: build
      9 	gcc -I./src -fPIC -shared -o librlp.so -Wl,-soname,librlp.so.0.0.1 src/rlp.o src/encode.o src/decode.o src/bits.o src/endian.o
     10 
     11 
     12 build_test: build
     13 	gcc -I./src -g3 tests/check_rlp.c src/rlp.o src/bits.o src/encode.o src/decode.o src/endian.o -o tests/check_rlp -lcheck
     14 	gcc -I./src -g3 tests/check_encoder.c src/rlp.o src/bits.o src/encode.o src/decode.o src/endian.o -o tests/check_encoder -lcheck
     15 	gcc -I./src -g3 tests/check_bits.c src/rlp.o src/bits.o src/encode.o src/decode.o src/endian.o -o tests/check_bits -lcheck
     16 	gcc -I./src -g3 tests/check_vectors.c src/rlp.o src/bits.o src/encode.o src/decode.o src/endian.o -o tests/check_vectors -lcheck
     17 	gcc -I./src -g3 tests/check_decoder.c src/rlp.o src/bits.o src/encode.o src/decode.o src/endian.o -o tests/check_decoder -lcheck
     18 
     19 check: build_test
     20 	tests/check_rlp
     21 	tests/check_encoder
     22 	tests/check_decoder
     23 	tests/check_bits
     24 	tests/check_vectors
     25 
     26 .PHONY clean:
     27 	rm -vf tests/check_rlp
     28 	rm -vf tests/check_encoder
     29 	rm -vf tests/check_decoder
     30 	rm -vf tests/check_bits
     31 	rm -vf tests/check_vectors
     32 	rm -vf src/*.o
     33 	rm -vf src/lib*.so*
     34 
     35 dist: check
     36 	mkdir -vp dist
     37 	tar -zcvf dist/librlp-`cat VERSION`.tar.gz src/*.h src/*.c Makefile CONTRIBUTORS LICENSE VERSION CHANGELOG
     38 
     39 
     40 .PHONE distclean: clean
     41 	rm -rf dist/
     42 	
     43 
     44 .PHONY test: check