blob: 693150fb77f6c081c88d54d906b93703407a7dd2 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
|
CFLAGS = -g -Wall -Werror -Os
TESTPROTOCOL = common
ALLPROTOCOLS = minimal test common pixhawk ardupilotmega slugs ualberta
all:
for p in ${ALLPROTOCOLS}; do make -f Makefile build TESTPROTOCOL=$$p; done
test:
for p in ${ALLPROTOCOLS}; do make -f Makefile testprogs TESTPROTOCOL=$$p || exit 1; done
valgrindtest:
for p in ${ALLPROTOCOLS}; do make -f Makefile valgrindprogs TESTPROTOCOL=$$p || exit 1; done
build: testmav0.9_${TESTPROTOCOL} testmav1.0_${TESTPROTOCOL}
testprogs: testmav0.9_${TESTPROTOCOL} testmav1.0_${TESTPROTOCOL}
./testmav0.9_${TESTPROTOCOL}
./testmav1.0_${TESTPROTOCOL}
valgrindprogs: testmav0.9_${TESTPROTOCOL} testmav1.0_${TESTPROTOCOL}
valgrind -q ./testmav0.9_${TESTPROTOCOL}
valgrind -q ./testmav1.0_${TESTPROTOCOL}
clean:
rm -rf *.o *~ testmav1.0* testmav0.9*
testmav1.0_${TESTPROTOCOL}: testmav.c
$(CC) $(CFLAGS) -I../../include_v1.0 -I../../include_v1.0/${TESTPROTOCOL} -o $@ testmav.c
testmav0.9_${TESTPROTOCOL}: testmav.c
$(CC) $(CFLAGS) -I../../include_v0.9 -I../../include_v0.9/${TESTPROTOCOL} -o $@ testmav.c
|