diff options
author | Lorenz Meier <lm@inf.ethz.ch> | 2013-10-12 20:19:34 +0200 |
---|---|---|
committer | Lorenz Meier <lm@inf.ethz.ch> | 2013-10-12 20:19:34 +0200 |
commit | 42b75ae8963b2f711a72ac1cb6cfd1b44bd826b2 (patch) | |
tree | 8274013af87a38e890f1b5803efcf7174877b08f /Tools/tests-host/Makefile | |
parent | 7d6a4ece6b1875bab62c4dbcb95fcc9fa5661674 (diff) | |
download | px4-firmware-42b75ae8963b2f711a72ac1cb6cfd1b44bd826b2.tar.gz px4-firmware-42b75ae8963b2f711a72ac1cb6cfd1b44bd826b2.tar.bz2 px4-firmware-42b75ae8963b2f711a72ac1cb6cfd1b44bd826b2.zip |
Added host-building mixer test
Diffstat (limited to 'Tools/tests-host/Makefile')
-rw-r--r-- | Tools/tests-host/Makefile | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/Tools/tests-host/Makefile b/Tools/tests-host/Makefile new file mode 100644 index 000000000..c603b2aa2 --- /dev/null +++ b/Tools/tests-host/Makefile @@ -0,0 +1,36 @@ + +CC=g++ +CFLAGS=-I. -I../../src/modules -I ../../src/include -I../../src/drivers -I../../src -D__EXPORT="" -Dnullptr="0" + +ODIR=obj +LDIR =../lib + +LIBS=-lm + +#_DEPS = test.h +#DEPS = $(patsubst %,$(IDIR)/%,$(_DEPS)) + +_OBJ = mixer_test.o test_mixer.o mixer_simple.o mixer_multirotor.o mixer.o mixer_group.o +OBJ = $(patsubst %,$(ODIR)/%,$(_OBJ)) + +#$(DEPS) +$(ODIR)/%.o: %.cpp + $(CC) -c -o $@ $< $(CFLAGS) + +$(ODIR)/%.o: ../../src/systemcmds/tests/%.c + $(CC) -c -o $@ $< $(CFLAGS) + +$(ODIR)/%.o: ../../src/modules/systemlib/%.cpp + $(CC) -c -o $@ $< $(CFLAGS) + +$(ODIR)/%.o: ../../src/modules/systemlib/mixer/%.cpp + $(CC) -c -o $@ $< $(CFLAGS) + +# +mixer_test: $(OBJ) + g++ -o $@ $^ $(CFLAGS) $(LIBS) + +.PHONY: clean + +clean: + rm -f $(ODIR)/*.o *~ core $(INCDIR)/*~
\ No newline at end of file |