diff options
author | Keith Packard <keithp@keithp.com> | 2017-11-16 18:47:34 -0800 |
---|---|---|
committer | Keith Packard <keithp@keithp.com> | 2017-11-16 18:54:13 -0800 |
commit | cc76030d669600051fbb42a8cf85701aaaf5f5b7 (patch) | |
tree | d4e2a46957e3e930852444bf1027d1afb211638d /src/test | |
parent | 2e58b6c380bc6440490c47650fbf11d45b3f2e72 (diff) |
altos/test: Get lisp test building using Makefile-inc
Instead of re-defining all of the lisp sources and headers
Signed-off-by: Keith Packard <keithp@keithp.com>
Diffstat (limited to 'src/test')
-rw-r--r-- | src/test/Makefile | 21 |
1 files changed, 14 insertions, 7 deletions
diff --git a/src/test/Makefile b/src/test/Makefile index 08808430..8d8740e4 100644 --- a/src/test/Makefile +++ b/src/test/Makefile @@ -1,4 +1,7 @@ -vpath % ..:../kernel:../drivers:../util:../micropeak:../aes:../product:../lisp +vpath %.o . +vpath %.c ..:../kernel:../drivers:../util:../micropeak:../aes:../product:../lisp +vpath %.h ..:../kernel:../drivers:../util:../micropeak:../aes:../product:../lisp +vpath make-kalman ..:../kernel:../drivers:../util:../micropeak:../aes:../product:../lisp PROGS=ao_flight_test ao_flight_test_baro ao_flight_test_accel ao_flight_test_noisy_accel ao_flight_test_mm \ ao_flight_test_metrum ao_flight_test_mini \ @@ -17,7 +20,7 @@ CFLAGS=-I.. -I. -I../kernel -I../drivers -I../micropeak -I../product -I../lisp - all: $(PROGS) ao_aprs_data.wav -clean: +clean:: rm -f $(PROGS) ao_aprs_data.wav run-out.baro run-out.full install: @@ -94,12 +97,16 @@ ao_ms5607_convert_test: ao_ms5607_convert_test.c ao_ms5607_convert_8051.c ao_int ao_quaternion_test: ao_quaternion_test.c ao_quaternion.h cc $(CFLAGS) -o $@ ao_quaternion_test.c -lm -AO_LISP_OBJS = ao_lisp_test.o ao_lisp_mem.o ao_lisp_cons.o ao_lisp_string.o \ - ao_lisp_atom.o ao_lisp_int.o ao_lisp_eval.o ao_lisp_poly.o \ - ao_lisp_builtin.o ao_lisp_read.o ao_lisp_rep.o ao_lisp_frame.o \ - ao_lisp_lambda.o ao_lisp_error.o ao_lisp_save.o ao_lisp_stack.o +include ../lisp/Makefile-inc + +AO_LISP_SRCS=$(LISP_SRCS) ao_lisp_test.c + +AO_LISP_OBJS=$(AO_LISP_SRCS:.c=.o) ao_lisp_test: $(AO_LISP_OBJS) cc $(CFLAGS) -o $@ $(AO_LISP_OBJS) -$(AO_LISP_OBJS): ao_lisp.h ao_lisp_const.h ao_lisp_os.h +$(AO_LISP_OBJS): $(LISP_HDRS) + +clean:: + rm -f $(AO_LISP_OBJS) |