Revert "REVONANO - Workaround for the SBUS issue (use oversample 8 instead of 16...
[librepilot.git] / flight / libraries / rscode / Makefile
blobdaa12624f352386e92856aac5f56c8006b043b51
1 # Makefile for Cross Interleaved Reed Solomon encoder/decoder
3 # (c) Henry Minsky, Universal Access 1991-1996
6 RANLIB = ranlib
7 AR = ar
10 VERSION = 1.0
11 DIRNAME= rscode-$(VERSION)
14 CC = gcc
15 # OPTIMIZE_FLAGS = -O69
16 DEBUG_FLAGS = -g
17 CFLAGS = -Wall -Wstrict-prototypes $(OPTIMIZE_FLAGS) $(DEBUG_FLAGS) -I..
18 LDFLAGS = $(OPTIMIZE_FLAGS) $(DEBUG_FLAGS)
20 LIB_CSRC = rs.c galois.c berlekamp.c crcgen.c
21 LIB_HSRC = ecc.h
22 LIB_OBJS = rs.o galois.o berlekamp.o crcgen.o
24 TARGET_LIB = libecc.a
25 TEST_PROGS = example
27 TARGETS = $(TARGET_LIB) $(TEST_PROGS)
29 all: $(TARGETS)
31 $(TARGET_LIB): $(LIB_OBJS)
32 $(RM) $@
33 $(AR) cq $@ $(LIB_OBJS)
34 if [ "$(RANLIB)" ]; then $(RANLIB) $@; fi
36 example: example.o galois.o berlekamp.o crcgen.o rs.o
37 gcc -o example example.o -L. -lecc
39 clean:
40 rm -f *.o example libecc.a
41 rm -f *~
43 dist:
44 (cd ..; tar -cvf rscode-$(VERSION).tar $(DIRNAME))
46 depend:
47 makedepend $(SRCS)
49 # DO NOT DELETE THIS LINE -- make depend depends on it.