瀏覽代碼

compiles without error on jalec_linux

Former-commit-id: a6fc0c28122a9b7ffec9c4a0eae45d376b94f6b3
Alec Jacobson (jalec 12 年之前
父節點
當前提交
df539525b3
共有 1 個文件被更改,包括 6 次插入2 次删除
  1. 6 2
      examples/MatlabWorkspace/Makefile

+ 6 - 2
examples/MatlabWorkspace/Makefile

@@ -15,10 +15,14 @@ MATLAB_LIB=-L$(MATLAB)/bin/maci64 -lmx -lmat
 LIB+=$(IGL_LIB) $(MATLAB_LIB)
 INC+=$(IGL_INC) $(EIGEN3_INC) $(MATLAB_INC)
 
-all: example 
-
 CFLAGS += -g
 
+ifeq ($(IGL_WITH_MATLAB),1)
+	EXAMPLE=example
+endif
+
+all: $(EXAMPLE)
+
 example: example.o
 	g++ -o example example.o $(LIB)