Add a clangd make target: $ make clangd This installs a .clangd file with configuration (includes/macros/compiler flags) for the clandg language server. Add a qtcreator make target: $ make qtcreator This installs a .qtcreator directory with QTCreator IDE project files. In the QTCreator you can open a project by selecting the .qtcreator/morm.creator file. You can use 'make qtcreator' again to refresh .qtcreator/morm.files, the rest of the project files will not be modified.
49 lines
798 B
Makefile
49 lines
798 B
Makefile
|
|
|
|
export CXX
|
|
export CXXFLAGS
|
|
export AR
|
|
|
|
|
|
all: src
|
|
|
|
|
|
src: FORCE
|
|
$(MAKE) -C src
|
|
|
|
|
|
samples: FORCE
|
|
$(MAKE) -C src
|
|
$(MAKE) -C samples
|
|
|
|
|
|
samples-gcc11: FORCE
|
|
env CXX=g++11 CXXFLAGS="-Wl,-rpath=/usr/local/lib/gcc11/ -Wall -pedantic -O0 -g -std=c++20 -fmax-errors=1 -I../src -I../../pikotools/src -I/usr/local/include" $(MAKE) -C src
|
|
env CXX=g++11 CXXFLAGS="-Wl,-rpath=/usr/local/lib/gcc11/ -Wall -pedantic -O0 -g -std=c++20 -fmax-errors=1 -I../src -I../../pikotools/src -I/usr/local/include" $(MAKE) -C samples
|
|
|
|
|
|
clean: FORCE
|
|
$(MAKE) -C src clean
|
|
$(MAKE) -C samples clean
|
|
|
|
|
|
cleanall: clean
|
|
$(MAKE) -C ../pikotools clean
|
|
|
|
|
|
depend: FORCE
|
|
$(MAKE) -C src depend
|
|
$(MAKE) -C samples depend
|
|
|
|
|
|
clangd: FORCE
|
|
@.templates/install_clangd.sh
|
|
|
|
|
|
qtcreator: clangd
|
|
@.templates/install_qtcreator.sh
|
|
|
|
|
|
FORCE:
|
|
|