From cf14957de89eb466460f81ebb73e3428767d693e Mon Sep 17 00:00:00 2001 From: Stephen Dwyer Date: Tue, 26 Mar 2013 14:06:42 -0600 Subject: [PATCH] [sim] need to include path to caml/*.h files for compiling c files on OS X --- sw/simulator/Makefile | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/sw/simulator/Makefile b/sw/simulator/Makefile index d12a3eb96c..8875deef01 100644 --- a/sw/simulator/Makefile +++ b/sw/simulator/Makefile @@ -48,6 +48,13 @@ AIRBORNE = ../airborne VARINCLUDE=$(PAPARAZZI_HOME)/var/include ACINCLUDE = $(PAPARAZZI_HOME)/var/$(AIRCRAFT) +UNAME = $(shell uname -s) +ifeq ("$(UNAME)","Darwin") + CAML_CFLAGS = -I/opt/local/lib/ocaml +else + CAML_CFLAGS = +endif + all : gaia sitl.cma simhitl @@ -81,7 +88,7 @@ diffusion : stdlib.cmo diffusion.cmo %.o : %.c @echo CC $< - $(Q)$(CC) $(FPIC) -c $< + $(Q)$(CC) $(FPIC) -c $< $(CAML_CFLAGS) %.cmx : %.ml @echo OOC $<