VPATH = ../../motion
-CXXFLAGS += -I$(VPATH) -I.. -I../../robomath -I../../laser-nav -I../../robodim/eb2008 -g
+CXXFLAGS += -I$(VPATH) -L$(PWD)/../../../build/linux/_compiled/lib -I$(PWD)/../../../build/linux/_compiled/include
all: sf_posreg.mexglx sf_trgen.mexglx sf_mcl.mexglx
sf_trgen.mexglx: sf_trgen.cc trgen.cc
mex $(CXXFLAGS) $^
-sf_mcl.mexglx: sf_mcl.c ../mcl.c ../../robomath/robomath.c ../../laser-nav/laser-nav.c
- mex $(CXXFLAGS) $^
+sf_mcl.mexglx: sf_mcl.c
+ mex $(CXXFLAGS) $^ -lmcl -lrobomath
clean:
int frequency;
};
-/* FIXME: this definition cause strange compile errors of QT applications
- * where OpenGL is used. This is just a hack to be able to compile C++ apps.
- * Need to be tested more. */
-#ifndef __cplusplus
-#ifdef __NO_INLINE__
+#ifdef MATLAB_MEX_FILE
#define inline
#endif
-#endif
/**
* FUNCTION PROTOTYPES