Commit a2164899 authored by Luis Kornblueh's avatar Luis Kornblueh Committed by Thomas Jahns
Browse files

Added automake/autoconf preliminary version.

parent 4ba62304
CC = gcc
#CFLAGS = -g -pg -lc -O0 -Wall -fprofile-arcs -ftest-coverage
CFLAGS = -g -O3 -Wall -std=c99
CXXFLAGS = -O3 -Wall
OBJS = aee.o aee_accessors.o aed.o sz_compat.o
.PHONY : all clean check
all: libae.a
encode: encode.o libae.a
$(CC) $(CFLAGS) -o $@ $< -L. -lae
decode: decode.o libae.a
$(CC) $(CFLAGS) -o $@ $< -L. -lae
test_szcomp: test_szcomp.o libae.a
$(CC) $(CFLAGS) -o $@ $< -L. -lae
pnoise: pnoise.o
$(CXX) -o $@ $< -lnoise
libae.a: $(OBJS)
$(AR) $(ARFLAGS) $@ $(OBJS)
-@ ($(RANLIB) $@ || true) >/dev/null 2>&1
aed.o: libae.h
aee.o: aee_accessors.h aee.h libae.h
aee_accessors.o: aee.h libae.h
sz_compat.o: libae.h
install: libae.a
mkdir -p ../lib ../include
ln -sfT ../src/szlib.h ../include/szlib.h
ln -sfT ../src/libae.h ../include/libae.h
ln -sfT ../src/libae.a ../lib/libsz.a
rm -f $(OBJS) encode.o decode.o \
encode decode libae.a \
test_szcomp test_szcomp.o \
../data/ ../data/test \
*.gcno *.gcda *.gcov gmon.out \
pnoise.o pnoise
check: encode decode test_szcomp
./encode -c -b4 -B32 -R128 -J8 ../data/example_data > ../data/test.aee
./decode -b4 -B32 -R128 -J8 ../data/test.aee
cmp ../data/test ../data/example_data
./encode -c -s -b4 -B32 -R128 -J8 ../data/example_data > ../data/test.aee
./decode -s -b4 -B32 -R128 -J8 ../data/test.aee
cmp ../data/test ../data/example_data
./encode -c -b 512 -B8 -R128 -J8 ../data/example_data > ../data/test.aee
./decode -b 512 -B8 -R128 -J8 ../data/test.aee
cmp ../data/test ../data/example_data
./test_szcomp 65536 ../data/example_data_16
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment