Преглед изворни кода

opt flags

Former-commit-id: 1c78e3b21be9077401515b190277a24486d06277
Alec Jacobson пре 10 година
родитељ
комит
5935520524
1 измењених фајлова са 3 додато и 2 уклоњено
  1. 3 2
      examples/convertmesh/Makefile

+ 3 - 2
examples/convertmesh/Makefile

@@ -9,12 +9,13 @@ all: convertmesh
 
 INC=$(LIBIGL_INC) $(EIGEN3_INC) 
 LIB=$(LIBIGL_LIB) 
+OPTFLAGS+=-O3 -DNDEBUG $(OPENMP)
 
 convertmesh: convertmesh.o
-	g++ $(OPENMP) $(AFLAGS) $(CFLAGS) $(LIB) -o convertmesh convertmesh.o 
+	g++ $(OPTFLAGS) $(AFLAGS) $(CFLAGS) $(LIB) -o convertmesh convertmesh.o 
 
 convertmesh.o: convertmesh.cpp
-	g++ $(OPENMP) $(AFLAGS) $(CFLAGS) -c convertmesh.cpp -o convertmesh.o $(INC)
+	g++ $(OPTFLAGS) $(AFLAGS) $(CFLAGS) -c convertmesh.cpp -o convertmesh.o $(INC)
 clean:
 	rm -f convertmesh.o
 	rm -f convertmesh