mirror of
https://github.com/paparazzi/paparazzi.git
synced 2026-05-09 22:49:53 +08:00
40 lines
941 B
Makefile
40 lines
941 B
Makefile
|
|
# Quiet compilation
|
|
Q=@
|
|
|
|
|
|
CC = gcc
|
|
CFLAGS = -std=c99 -I.. -I../../include -I../booz -I../../booz -Wall
|
|
LDFLAGS = -lm
|
|
|
|
|
|
test_matrix: test_matrix.c
|
|
$(CC) $(CFLAGS) -o $@ $^ $(LDFLAGS)
|
|
|
|
test_geodetic: test_geodetic.c ../math/pprz_geodetic_float.c ../math/pprz_geodetic_double.c ../math/pprz_geodetic_int.c ../math/pprz_trig_int.c
|
|
$(CC) $(CFLAGS) -o $@ $^ $(LDFLAGS)
|
|
|
|
test_algebra: test_algebra.c ../math/pprz_trig_int.c
|
|
$(CC) $(CFLAGS) -o $@ $^ $(LDFLAGS)
|
|
|
|
test_martin: test_martin.c ../math/pprz_trig_int.c
|
|
$(CC) $(CFLAGS) -o $@ $^ $(LDFLAGS)
|
|
|
|
test_bla: test_bla.c ../math/pprz_trig_int.c
|
|
$(CC) $(CFLAGS) -o $@ $^ $(LDFLAGS)
|
|
|
|
test_att: test_att.c ../math/pprz_trig_int.c
|
|
$(CC) $(CFLAGS) -o $@ $^ $(LDFLAGS)
|
|
|
|
test_sqrt: test_sqrt.c
|
|
$(CC) $(CFLAGS) -o $@ $^ $(LDFLAGS)
|
|
|
|
test_fmul: test_fmul.c
|
|
$(CC) $(CFLAGS) -o $@ $^ $(LDFLAGS)
|
|
|
|
%.exe : %.c
|
|
$(CC) $(CFLAGS) -o $@ $^ $(LDFLAGS)
|
|
|
|
clean:
|
|
$(Q)rm -f *~ test_geodetic test_algebra *.exe
|