build_shell.mk 769 B

12345678910111213141516171819202122232425262728293031
  1. src=../common/shell.cpp
  2. # override with environment variable
  3. CXX ?= g++
  4. # Path to perl header files
  5. INCLUDEDIR ?= ${HOME}/perl5/perlbrew/perls/slic3r-perl/lib/5.24.0/x86_64-linux-thread-multi/CORE
  6. # path to library files for perl
  7. LIBDIR ?= ${HOME}/perl5/perlbrew/perls/slic3r-perl/lib/5.24.0/x86_64-linux-thread-multi/CORE
  8. LIBS += -lperl -lpthread -lcrypt
  9. CXXFLAGS += -std=c++11 -static-libgcc -static-libstdc++ -I${INCLUDEDIR}
  10. LDFLAGS += -L${LIBDIR}
  11. .PHONY: all clean
  12. all: Slic3r Slic3r-console
  13. Slic3r: slic3r.o
  14. ${CXX} ${LDFLAGS} -o $@ $< ${LIBS}
  15. Slic3r-console: slic3r-console.o
  16. ${CXX} ${LDFLAGS} -o $@ $< ${LIBS}
  17. slic3r-console.o: ${src}
  18. ${CXX} -c ${CXXFLAGS} -o $@ $<
  19. slic3r.o: ${src}
  20. ${CXX} -c -DFORCE_GUI ${CXXFLAGS} -o $@ $<
  21. clean:
  22. rm *.o Slic3r*