diff --git a/conf/Makefile.sim b/conf/Makefile.sim index 9773b9431a..1bfb04866d 100644 --- a/conf/Makefile.sim +++ b/conf/Makefile.sim @@ -21,13 +21,6 @@ # Boston, MA 02111-1307, USA. # - -ifeq ($(SIM_TYPE),BOOZ) -sim.CFLAGS += `pkg-config glib-2.0 --cflags` -I /usr/include/meschach -sim.LDFLAGS += `pkg-config glib-2.0 --libs` -lm -lmeschach -lpcre -lglibivy -endif - - # # This is the common Makefile for the sim target. # diff --git a/conf/autopilot/conf_booz.makefile b/conf/autopilot/conf_booz.makefile index d1e7c05664..9f544c1314 100644 --- a/conf/autopilot/conf_booz.makefile +++ b/conf/autopilot/conf_booz.makefile @@ -155,6 +155,10 @@ sim.ARCH = sitl sim.TARGET = sim sim.TARGETDIR = sim + +sim.CFLAGS += `pkg-config glib-2.0 --cflags` -I /usr/include/meschach +sim.LDFLAGS += `pkg-config glib-2.0 --libs` -lm -lmeschach -lpcre -lglibivy + sim.CFLAGS += -I$(BOOZ) -I$(TL) sim.srcs = $(SIMDIR)/main_booz_sim.c \