瀏覽代碼

main makefile and example makefiles fixed, Extras are broken

Former-commit-id: e7d7411006a6530bed9db65e8c5bbeab75ac3d3d
Alec Jacobson 11 年之前
父節點
當前提交
831ee69608
共有 60 個文件被更改,包括 71 次插入71 次删除
  1. 24 24
      build/Makefile
  2. 0 0
      build/Makefile.conf
  3. 0 0
      build/Makefile_bbw
  4. 0 0
      build/Makefile_boost
  5. 0 0
      build/Makefile_cgal
  6. 0 0
      build/Makefile_embree
  7. 0 0
      build/Makefile_matlab
  8. 0 0
      build/Makefile_mosek
  9. 0 0
      build/Makefile_png
  10. 0 0
      build/Makefile_svd3x3
  11. 0 0
      build/Makefile_tetgen
  12. 0 0
      build/Makefile_viewer
  13. 0 0
      build/Makefile_xml
  14. 1 1
      examples/MatlabWorkspace/Makefile
  15. 1 1
      examples/ReAntTweakBar/Makefile
  16. 1 1
      examples/affine/Makefile
  17. 1 1
      examples/ambient-occlusion/Makefile
  18. 1 1
      examples/arap/Makefile
  19. 1 1
      examples/basic_topology/Makefile
  20. 1 1
      examples/bbw/Makefile
  21. 1 1
      examples/beach-balls/Makefile
  22. 1 1
      examples/camera/Makefile
  23. 1 1
      examples/cat/Makefile
  24. 1 1
      examples/colored-mesh/Makefile
  25. 1 1
      examples/dmat/Makefile
  26. 1 1
      examples/eigen-gotchas/Makefile
  27. 1 1
      examples/embree/Makefile
  28. 1 1
      examples/example_fun/Makefile
  29. 1 1
      examples/file_contents_as_string/Makefile
  30. 1 1
      examples/flare-eyes/Makefile
  31. 1 1
      examples/get_seconds/Makefile
  32. 1 1
      examples/glslversion/Makefile
  33. 1 1
      examples/glut_speed_test/Makefile
  34. 1 1
      examples/harwell_boeing/Makefile
  35. 1 1
      examples/intersections/Makefile
  36. 1 1
      examples/is_dir/Makefile
  37. 1 1
      examples/marching_cubes/Makefile
  38. 1 1
      examples/meshio/Makefile
  39. 1 1
      examples/mode/Makefile
  40. 1 1
      examples/multi-viewport/Makefile
  41. 1 1
      examples/patches/Makefile
  42. 1 1
      examples/path_tests/Makefile
  43. 1 1
      examples/pathinfo/Makefile
  44. 1 1
      examples/principal_curvature/Makefile
  45. 1 1
      examples/randomly-sample-mesh/Makefile
  46. 1 1
      examples/render_to_png/Makefile
  47. 1 1
      examples/rotate-widget/Makefile
  48. 1 1
      examples/scene-rotation/Makefile
  49. 1 1
      examples/shadow-mapping/Makefile
  50. 1 1
      examples/skeleton/Makefile
  51. 1 1
      examples/slice/Makefile
  52. 1 1
      examples/sort/Makefile
  53. 1 1
      examples/sortrows/Makefile
  54. 1 1
      examples/stdin_to_temp/Makefile
  55. 1 1
      examples/svd/Makefile
  56. 1 1
      examples/textured-mesh/Makefile
  57. 1 1
      examples/trackball/Makefile
  58. 1 1
      examples/transparency/Makefile
  59. 1 1
      examples/transpose_blocks/Makefile
  60. 1 1
      examples/upright/Makefile

+ 24 - 24
Makefile → build/Makefile

@@ -66,9 +66,9 @@ endif
 .PHONY: examples
 .PHONY: extras
 debug: lib extras
-lib: lib/libigl.a
+lib: ../lib/libigl.a
 examples: lib extras
-	make -C examples
+	make -C ../examples
 extras:
 	for p in  $(EXTRA_DIRS); \
 	do \
@@ -80,12 +80,12 @@ extras:
 #############################################################################
 # SOURCE 
 #############################################################################
-CPP_FILES=$(wildcard include/igl/*.cpp)
-H_FILES=$(wildcard include/igl/*.h)
+CPP_FILES=$(wildcard ../include/igl/*.cpp)
+H_FILES=$(wildcard ../include/igl/*.h)
 OBJ_FILES=$(addprefix obj/,$(notdir $(CPP_FILES:.cpp=.o)))
 
 # include igl headers
-INC+=-Iinclude/
+INC+=-I../include/
 
 #############################################################################
 # DEPENDENCIES
@@ -100,7 +100,7 @@ INC+=$(EIGEN3_INC)
 
 # AntTweakBar dependency
 #ANTTWEAKBAR_INC=-I$(DEFAULT_PREFIX)/include
-ANTTWEAKBAR_INC=-Iexternal/AntTweakBar/include
+ANTTWEAKBAR_INC=-I../external/AntTweakBar/include
 INC+=$(ANTTWEAKBAR_INC)
 
 ## OpenGL dependency
@@ -112,34 +112,34 @@ INC+=$(ANTTWEAKBAR_INC)
 obj: 
 	mkdir -p obj
 
-lib/libigl.a: obj $(OBJ_FILES)
+../lib/libigl.a: obj $(OBJ_FILES)
 	mkdir -p lib
 	rm -f $@
 	ar cqs $@ $(OBJ_FILES)
 
-obj/%.o: include/igl/%.cpp include/igl/%.h
+obj/%.o: ../include/igl/%.cpp ../include/igl/%.h
 	$(GG) $(CFLAGS) $(AFLAGS) -c -o $@ $< $(INC)
 
-lib/igl.framework/:
-	mkdir -p $@
-	cp lib/*.a $@
-	mv $@/libigl.a $@/igl
-	mkdir -p $@/Libraries
-	mv $@/*.a $@/Libraries
-	mkdir -p $@/Headers
-	cp $(H_FILES) $@/Headers
-	for p in $(EXTRAS); \
-	do \
-	mkdir $@/Headers/$$p; \
-	cp include/igl/$$p/*.h $@/Headers/$$p; \
-	done
+#lib/igl.framework/:
+#	mkdir -p $@
+#	cp lib/*.a $@
+#	mv $@/libigl.a $@/igl
+#	mkdir -p $@/Libraries
+#	mv $@/*.a $@/Libraries
+#	mkdir -p $@/Headers
+#	cp $(H_FILES) $@/Headers
+#	for p in $(EXTRAS); \
+#	do \
+#	mkdir $@/Headers/$$p; \
+#	cp include/igl/$$p/*.h $@/Headers/$$p; \
+#	done
 
 
 clean:
-	rm -rf lib/igl.framework/
+	rm -rf ../lib/igl.framework/
 	rm -f obj/*.o
-	rm -f lib/libigl.a
-	make -C examples clean
+	rm -f ../lib/libigl.a
+	make -C ../examples clean
 	for p in  $(EXTRA_DIRS); \
 	do \
 	echo "cd $$p" ; \

+ 0 - 0
Makefile.conf → build/Makefile.conf


+ 0 - 0
include/igl/bbw/Makefile → build/Makefile_bbw


+ 0 - 0
include/igl/boost/Makefile → build/Makefile_boost


+ 0 - 0
include/igl/cgal/Makefile → build/Makefile_cgal


+ 0 - 0
include/igl/embree/Makefile → build/Makefile_embree


+ 0 - 0
include/igl/matlab/Makefile → build/Makefile_matlab


+ 0 - 0
include/igl/mosek/Makefile → build/Makefile_mosek


+ 0 - 0
include/igl/png/Makefile → build/Makefile_png


+ 0 - 0
include/igl/svd3x3/Makefile → build/Makefile_svd3x3


+ 0 - 0
include/igl/tetgen/Makefile → build/Makefile_tetgen


+ 0 - 0
include/igl/viewer/Makefile → build/Makefile_viewer


+ 0 - 0
include/igl/xml/Makefile → build/Makefile_xml


+ 1 - 1
examples/MatlabWorkspace/Makefile

@@ -1,7 +1,7 @@
 .PHONY: all
 
 # Shared flags etc.
-include ../../Makefile.conf
+include ../../build/Makefile.conf
 
 IGL=../../
 IGL_LIB=-L$(IGL)/lib -ligl

+ 1 - 1
examples/ReAntTweakBar/Makefile

@@ -2,7 +2,7 @@
 .PHONY: all
 
 # Shared flags etc.
-include ../../Makefile.conf
+include ../../build/Makefile.conf
 
 all: example
 

+ 1 - 1
examples/affine/Makefile

@@ -4,7 +4,7 @@
 all: example
 
 # Shared flags etc.
-include ../../Makefile.conf
+include ../../build/Makefile.conf
 
 .PHONY: example
 

+ 1 - 1
examples/ambient-occlusion/Makefile

@@ -2,7 +2,7 @@
 .PHONY: all
 
 # Shared flags etc.
-include ../../Makefile.conf
+include ../../build/Makefile.conf
 
 all: example
 

+ 1 - 1
examples/arap/Makefile

@@ -2,7 +2,7 @@
 .PHONY: all
 
 # Shared flags etc.
-include ../../Makefile.conf
+include ../../build/Makefile.conf
 
 all: example
 

+ 1 - 1
examples/basic_topology/Makefile

@@ -2,7 +2,7 @@
 all: example1
 
 # Shared flags etc.
-include ../../Makefile.conf
+include ../../build/Makefile.conf
 
 igl_lib=../../
 eigen_lib=$(DEFAULT_PREFIX)/include/eigen3/

+ 1 - 1
examples/bbw/Makefile

@@ -1,4 +1,4 @@
-include ../../Makefile.conf
+include ../../build/Makefile.conf
 
 CXX=g++
 

+ 1 - 1
examples/beach-balls/Makefile

@@ -2,7 +2,7 @@
 .PHONY: all
 
 # Shared flags etc.
-include ../../Makefile.conf
+include ../../build/Makefile.conf
 
 all: obj example
 

+ 1 - 1
examples/camera/Makefile

@@ -2,7 +2,7 @@
 .PHONY: all
 
 # Shared flags etc.
-include ../../Makefile.conf
+include ../../build/Makefile.conf
 
 all: obj example
 

+ 1 - 1
examples/cat/Makefile

@@ -2,7 +2,7 @@
 .PHONY: all
 
 # Shared flags etc.
-include ../../Makefile.conf
+include ../../build/Makefile.conf
 
 all: example
 

+ 1 - 1
examples/colored-mesh/Makefile

@@ -2,7 +2,7 @@
 .PHONY: all
 
 # Shared flags etc.
-include ../../Makefile.conf
+include ../../build/Makefile.conf
 
 all: example
 

+ 1 - 1
examples/dmat/Makefile

@@ -2,7 +2,7 @@
 .PHONY: all
 
 # Shared flags etc.
-include ../../Makefile.conf
+include ../../build/Makefile.conf
 
 all: example
 

+ 1 - 1
examples/eigen-gotchas/Makefile

@@ -2,7 +2,7 @@
 .PHONY: all
 
 # Shared flags etc.
-include ../../Makefile.conf
+include ../../build/Makefile.conf
 
 all: example
 

+ 1 - 1
examples/embree/Makefile

@@ -2,7 +2,7 @@
 .PHONY: all
 
 # Shared flags etc.
-include ../../Makefile.conf
+include ../../build/Makefile.conf
 
 all: example
 

+ 1 - 1
examples/example_fun/Makefile

@@ -3,7 +3,7 @@
 all: example_static example_header_only
 
 # Shared flags etc.
-include ../../Makefile.conf
+include ../../build/Makefile.conf
 
 igl_lib=../../
 

+ 1 - 1
examples/file_contents_as_string/Makefile

@@ -2,7 +2,7 @@
 .PHONY: all
 
 # Shared flags etc.
-include ../../Makefile.conf
+include ../../build/Makefile.conf
 
 all: example
 

+ 1 - 1
examples/flare-eyes/Makefile

@@ -2,7 +2,7 @@
 .PHONY: all
 
 # Shared flags etc.
-include ../../Makefile.conf
+include ../../build/Makefile.conf
 
 all: obj example
 

+ 1 - 1
examples/get_seconds/Makefile

@@ -2,7 +2,7 @@
 .PHONY: all
 
 # Shared flags etc.
-include ../../Makefile.conf
+include ../../build/Makefile.conf
 
 all: example
 

+ 1 - 1
examples/glslversion/Makefile

@@ -2,7 +2,7 @@
 .PHONY: all
 
 # Shared flags etc.
-include ../../Makefile.conf
+include ../../build/Makefile.conf
 
 all: example
 

+ 1 - 1
examples/glut_speed_test/Makefile

@@ -4,7 +4,7 @@
 all: example
 
 # Shared flags etc.
-include ../../Makefile.conf
+include ../../build/Makefile.conf
 
 .PHONY: example
 

+ 1 - 1
examples/harwell_boeing/Makefile

@@ -2,7 +2,7 @@
 .PHONY: all
 
 # Shared flags etc.
-include ../../Makefile.conf
+include ../../build/Makefile.conf
 
 all: example
 

+ 1 - 1
examples/intersections/Makefile

@@ -2,7 +2,7 @@
 .PHONY: all
 
 # Shared flags etc.
-include ../../Makefile.conf
+include ../../build/Makefile.conf
 
 all: example
 

+ 1 - 1
examples/is_dir/Makefile

@@ -2,7 +2,7 @@
 .PHONY: all
 
 # Shared flags etc.
-include ../../Makefile.conf
+include ../../build/Makefile.conf
 
 all: example
 

+ 1 - 1
examples/marching_cubes/Makefile

@@ -6,7 +6,7 @@ all: example
 .PHONY: example
 
 # Shared flags etc.
-include ../../Makefile.conf
+include ../../build/Makefile.conf
 
 igl_lib=../../
 eigen=-I$(DEFAULT_PREFIX)/include/eigen3

+ 1 - 1
examples/meshio/Makefile

@@ -2,7 +2,7 @@
 .PHONY: all
 
 # Shared flags etc.
-include ../../Makefile.conf
+include ../../build/Makefile.conf
 
 all: example
 

+ 1 - 1
examples/mode/Makefile

@@ -2,7 +2,7 @@
 .PHONY: all
 
 # Shared flags etc.
-include ../../Makefile.conf
+include ../../build/Makefile.conf
 
 all: example
 

+ 1 - 1
examples/multi-viewport/Makefile

@@ -8,7 +8,7 @@ all: example
 .PHONY:  example
 
 LIBIGL=/usr/local/igl/libigl/
-include $(LIBIGL)/Makefile.conf
+include $(LIBIGL)/build/Makefile.conf
 LIBIGL_INC=-I$(LIBIGL)/include
 LIBIGL_LIB=-L$(LIBIGL)/lib -ligl -liglembree
 

+ 1 - 1
examples/patches/Makefile

@@ -2,7 +2,7 @@
 .PHONY: all
 
 # Shared flags etc.
-include ../../Makefile.conf
+include ../../build/Makefile.conf
 
 all: obj example
 

+ 1 - 1
examples/path_tests/Makefile

@@ -2,7 +2,7 @@
 .PHONY: all
 
 # Shared flags etc.
-include ../../Makefile.conf
+include ../../build/Makefile.conf
 
 all: example
 

+ 1 - 1
examples/pathinfo/Makefile

@@ -4,7 +4,7 @@
 all: example
 
 # Shared flags etc.
-include ../../Makefile.conf
+include ../../build/Makefile.conf
 
 .PHONY: example
 

+ 1 - 1
examples/principal_curvature/Makefile

@@ -2,7 +2,7 @@
 .PHONY: all
 
 # Shared flags etc.
-include ../../Makefile.conf
+include ../../build/Makefile.conf
 
 all: curvature
 

+ 1 - 1
examples/randomly-sample-mesh/Makefile

@@ -2,7 +2,7 @@
 .PHONY: all
 
 # Shared flags etc.
-include ../../Makefile.conf
+include ../../build/Makefile.conf
 
 all: obj example
 

+ 1 - 1
examples/render_to_png/Makefile

@@ -2,7 +2,7 @@
 .PHONY: all
 
 # Shared flags etc.
-include ../../Makefile.conf
+include ../../build/Makefile.conf
 
 # YIMG dependency
 YIMG=../../external/yimg

+ 1 - 1
examples/rotate-widget/Makefile

@@ -2,7 +2,7 @@
 .PHONY: all
 
 # Shared flags etc.
-include ../../Makefile.conf
+include ../../build/Makefile.conf
 
 all: obj example
 

+ 1 - 1
examples/scene-rotation/Makefile

@@ -2,7 +2,7 @@
 .PHONY: all
 
 # Shared flags etc.
-include ../../Makefile.conf
+include ../../build/Makefile.conf
 
 all: obj example
 

+ 1 - 1
examples/shadow-mapping/Makefile

@@ -2,7 +2,7 @@
 .PHONY: all
 
 # Shared flags etc.
-include ../../Makefile.conf
+include ../../build/Makefile.conf
 
 all: obj example
 

+ 1 - 1
examples/skeleton/Makefile

@@ -2,7 +2,7 @@
 .PHONY: all
 
 # Shared flags etc.
-include ../../Makefile.conf
+include ../../build/Makefile.conf
 
 all: obj example
 

+ 1 - 1
examples/slice/Makefile

@@ -2,7 +2,7 @@
 .PHONY: all
 
 # Shared flags etc.
-include ../../Makefile.conf
+include ../../build/Makefile.conf
 
 all: example
 

+ 1 - 1
examples/sort/Makefile

@@ -2,7 +2,7 @@
 .PHONY: all
 
 # Shared flags etc.
-include ../../Makefile.conf
+include ../../build/Makefile.conf
 
 all: example
 

+ 1 - 1
examples/sortrows/Makefile

@@ -2,7 +2,7 @@
 .PHONY: all
 
 # Shared flags etc.
-include ../../Makefile.conf
+include ../../build/Makefile.conf
 
 all: example
 

+ 1 - 1
examples/stdin_to_temp/Makefile

@@ -2,7 +2,7 @@
 .PHONY: all
 
 # Shared flags etc.
-include ../../Makefile.conf
+include ../../build/Makefile.conf
 
 all: example
 

+ 1 - 1
examples/svd/Makefile

@@ -2,7 +2,7 @@
 .PHONY: all
 
 # Shared flags etc.
-include ../../Makefile.conf
+include ../../build/Makefile.conf
 
 all: example
 

+ 1 - 1
examples/textured-mesh/Makefile

@@ -2,7 +2,7 @@
 .PHONY: all
 
 # Shared flags etc.
-include ../../Makefile.conf
+include ../../build/Makefile.conf
 
 all: example
 

+ 1 - 1
examples/trackball/Makefile

@@ -4,7 +4,7 @@
 all: example
 
 # Shared flags etc.
-include ../../Makefile.conf
+include ../../build/Makefile.conf
 
 .PHONY: example
 

+ 1 - 1
examples/transparency/Makefile

@@ -2,7 +2,7 @@
 .PHONY: all
 
 # Shared flags etc.
-include ../../Makefile.conf
+include ../../build/Makefile.conf
 
 all: example
 

+ 1 - 1
examples/transpose_blocks/Makefile

@@ -2,7 +2,7 @@
 .PHONY: all
 
 # Shared flags etc.
-include ../../Makefile.conf
+include ../../build/Makefile.conf
 
 all: example
 

+ 1 - 1
examples/upright/Makefile

@@ -8,7 +8,7 @@ all: upright
 .PHONY: upright
 
 LIBIGL=/usr/local/igl/libigl/
-include $(LIBIGL)/Makefile.conf
+include $(LIBIGL)/build/Makefile.conf
 LIBIGL_INC=-I$(LIBIGL)/include
 LIBIGL_LIB=-L$(LIBIGL)/lib -ligl