Skip to content

Commit

Permalink
#315 Added sketch of a module-test that exercise the tdoa engine from…
Browse files Browse the repository at this point in the history
… pre-recorded data off-line
  • Loading branch information
krichardsson committed May 23, 2018
1 parent 37c9d35 commit 4095cd6
Show file tree
Hide file tree
Showing 9 changed files with 254,919 additions and 0 deletions.
22 changes: 22 additions & 0 deletions module-test/tdoa3/Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
-Wall -Wmissing-braces -fno-strict-aliasing -std=gnu11
# Fail on warnings
CFLAGS += -Os -g3 -Werror
# Prevent promoting floats to doubles
CFLAGS += -Wdouble-promotion

OUTDIR = ../../generated-test/module-test/tdoa3

$(OUTDIR)/tester.so : $(OUTDIR)/lpsTdoaTagEngine.o $(OUTDIR)/outlierFilter.o $(OUTDIR)/mocks.o
cc -shared -o $(OUTDIR)/tester.so $(OUTDIR)/lpsTdoaTagEngine.o $(OUTDIR)/outlierFilter.o $(OUTDIR)/mocks.o

$(OUTDIR)/lpsTdoaTagEngine.o : ../../src/deck/drivers/src/lpsTdoaTagEngine.c
cc -c -fPIC $(CFLAGS) -I ../../src/modules/interface -I ../../src/deck/drivers/interface -I ../../src/hal/interface -I ../../vendor/libdw1000/inc -I mocks -o $(OUTDIR)/lpsTdoaTagEngine.o ../../src/deck/drivers/src/lpsTdoaTagEngine.c

$(OUTDIR)/outlierFilter.o : ../../src/deck/drivers/src/outlierFilter.c
cc -c -fPIC $(CFLAGS) -I ../../src/modules/interface -I ../../src/deck/drivers/interface -I ../../src/hal/interface -I ../../vendor/libdw1000/inc -I mocks -o $(OUTDIR)/outlierFilter.o ../../src/deck/drivers/src/outlierFilter.c

$(OUTDIR)/mocks.o : mocks/mocks.c
cc -c -fPIC $(CFLAGS) -I ../../src/modules/interface -I ../../src/deck/drivers/interface -I ../../src/hal/interface -I ../../vendor/libdw1000/inc -I mocks -o $(OUTDIR)/mocks.o mocks/mocks.c

clean :
rm $(OUTDIR)/*
Loading

0 comments on commit 4095cd6

Please sign in to comment.