-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added makefiles to encode and decode, and new binary builds for encod…
…e (x64 & arm) and decode
- Loading branch information
Showing
12 changed files
with
71 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
CC = gcc | ||
CFLAGS = -Wall -Wextra | ||
LDFLAGS = -L. -ldecref | ||
RM = rm | ||
AR = ar | ||
|
||
.PHONY: all | ||
all: libdecref dec_usage | ||
|
||
dec_usage: libdecref dec_usage.c | ||
$(CC) dec_usage.c $(LDFLAGS) -o dec_usage | ||
|
||
libdecref: dec_ref.o rs/decode_rs.o viterbi/spiral-vit_v16-single.o | ||
$(AR) rcs libdecref.a dec_ref.o rs/decode_rs.o viterbi/spiral-vit_v16-single.o | ||
|
||
dec_ref.o: dec_ref.c | ||
$(CC) $(CFLAGS) -c -fPIC dec_ref.c -o dec_ref.o | ||
|
||
rs/decode_rs.o: rs/decode_rs.c | ||
$(CC) $(CFLAGS) -c -fPIC rs/decode_rs.c -o rs/decode_rs.o | ||
|
||
viterbi/spiral-vit_v16-single.o: viterbi/spiral-vit_v16-single.c | ||
$(CC) $(CFLAGS) -c -fPIC viterbi/spiral-vit_v16-single.c -o viterbi/spiral-vit_v16-single.o | ||
|
||
clean: clean-debug | ||
-$(RM) libdecref.a dec_ref.o rs/decode_rs.o viterbi/spiral-vit_v16-single.o | ||
-$(RM) dec_usage | ||
|
||
clean-debug: | ||
-$(RM) debug_* |
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
CC = gcc | ||
ARM = arm-none-eabi- | ||
|
||
CFLAGS = -Wall -Wextra | ||
CFLAGS_ARM_EXTRA = -Os -mcpu=cortex-m3 -mthumb --specs=nosys.specs | ||
|
||
LDFLAGS = -L. -lencref | ||
|
||
RM = rm | ||
AR = ar | ||
|
||
|
||
all: libencref enc_usage | ||
|
||
arm: libencref_arm | ||
|
||
libencref_arm: enc_ref_arm.o | ||
$(ARM)$(AR) rcs libencref_arm.a enc_ref_arm.o | ||
|
||
enc_ref_arm.o: enc_ref.c | ||
$(ARM)$(CC) $(CFLAGS) $(CFLAGS_ARM_EXTRA) -c -fPIC enc_ref.c -o enc_ref_arm.o | ||
|
||
enc_usage: libencref enc_usage.c | ||
$(CC) enc_usage.c $(LDFLAGS) -o enc_usage | ||
|
||
libencref: enc_ref.o | ||
$(AR) rcs libencref.a enc_ref.o | ||
|
||
enc_ref.o: enc_ref.c | ||
$(CC) $(CFLAGS) -c -fPIC enc_ref.c -o enc_ref.o | ||
|
||
clean: clean-test clean-arm | ||
-$(RM) libencref.a enc_ref.o enc_usage | ||
|
||
clean-test: | ||
-$(RM) test_* | ||
|
||
clean-arm: | ||
-$(RM) libencref_arm.a enc_ref_arm.o |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
This file was deleted.
Oops, something went wrong.