2
0

Makefile.build 929 B

123456789101112131415161718192021222324252627282930313233
  1. # This Makefile is copied from the cgreen top directory (where it is
  2. # named Makefile.build) and put in a subdirectory called 'build' where
  3. # builds are made This Makefile then automatically creates
  4. # subdirectories for C and C++ builds configuring them using the cmake
  5. # command. Once created you can always tweak the cmake setup as with
  6. # any cmake build directory
  7. all: build-c build-c++
  8. for d in build-* ; do cd $$d; make ; cd .. ; done
  9. clean:
  10. for d in build-* ; do cd $$d; make clean ; cd .. ; done
  11. check test:
  12. for d in build-* ; do cd $$d; make check ; cd .. ; done
  13. package:
  14. for d in build-* ; do cd $$d; make package ; cd .. ; done
  15. install:
  16. for d in build-* ; do cd $$d; make install ; cd .. ; done
  17. ############ Internal
  18. build-c:
  19. mkdir build-c
  20. cd build-c; cmake -G "Unix Makefiles" $(CGREEN_DIR)
  21. build-c++:
  22. mkdir build-c++
  23. cd build-c++; cmake -G "Unix Makefiles" -DWITH_CXX:bool=ON $(CGREEN_DIR)
  24. .SILENT: