2013-10-12 15:19:34 -03:00
|
|
|
|
|
|
|
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))
|
|
|
|
|
2013-10-13 06:44:42 -03:00
|
|
|
_OBJ = mixer_test.o test_mixer.o mixer_simple.o mixer_multirotor.o mixer.o mixer_group.o mixer_load.o
|
2013-10-12 15:19:34 -03:00
|
|
|
OBJ = $(patsubst %,$(ODIR)/%,$(_OBJ))
|
|
|
|
|
|
|
|
#$(DEPS)
|
|
|
|
$(ODIR)/%.o: %.cpp
|
|
|
|
$(CC) -c -o $@ $< $(CFLAGS)
|
|
|
|
|
2013-10-13 06:44:42 -03:00
|
|
|
$(ODIR)/%.o: ../../src/systemcmds/tests/%.cpp
|
2013-10-12 15:19:34 -03:00
|
|
|
$(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)
|
|
|
|
|
2013-10-13 06:44:42 -03:00
|
|
|
$(ODIR)/%.o: ../../src/modules/systemlib/mixer/%.c
|
|
|
|
$(CC) -c -o $@ $< $(CFLAGS)
|
|
|
|
|
2013-10-12 15:19:34 -03:00
|
|
|
#
|
|
|
|
mixer_test: $(OBJ)
|
|
|
|
g++ -o $@ $^ $(CFLAGS) $(LIBS)
|
|
|
|
|
|
|
|
.PHONY: clean
|
|
|
|
|
|
|
|
clean:
|
|
|
|
rm -f $(ODIR)/*.o *~ core $(INCDIR)/*~
|