1 # Makefile for Cross Interleaved Reed Solomon encoder/decoder
3 # (c) Henry Minsky, Universal Access 1991-1996
11 DIRNAME
= rscode-
$(VERSION
)
15 # OPTIMIZE_FLAGS = -O69
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
22 LIB_OBJS
= rs.o galois.o berlekamp.o crcgen.o
27 TARGETS
= $(TARGET_LIB
) $(TEST_PROGS
)
31 $(TARGET_LIB
): $(LIB_OBJS
)
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
40 rm -f
*.o example libecc.a
44 (cd ..
; tar -cvf rscode-
$(VERSION
).
tar $(DIRNAME
))
49 # DO NOT DELETE THIS LINE -- make depend depends on it.