added doxgen in makefile

This commit is contained in:
2020-05-02 22:47:37 +02:00
parent 2779d69057
commit 0e5241719e
4 changed files with 2549 additions and 32 deletions

View File

@ -19,14 +19,8 @@ DCOMPILE_FLAGS = -D DEBUG
INCLUDES = include
# General linker settings
LINK_FLAGS =
# Additional release-specific linker settings
RLINK_FLAGS =
# Additional debug-specific linker settings
DLINK_FLAGS =
# Destination directory, like a jail or mounted system
DESTDIR = /
# Install path (bin/ is appended automatically)
INSTALL_PREFIX = usr/local
# Doc
DOCDIR = doc
#### END PROJECT SETTINGS ####
# Optionally you may move the section above to a separate config.mk file, and
@ -48,16 +42,6 @@ print-%: ; @echo $*=$($*)
SHELL = /bin/bash
# Clear built-in rules
.SUFFIXES:
# Programs for installation
INSTALL = install
INSTALL_PROGRAM = $(INSTALL)
INSTALL_DATA = $(INSTALL) -m 644
# Append pkg-config specific libraries if need be
ifneq ($(LIBS),)
COMPILE_FLAGS += $(shell pkg-config --cflags $(LIBS))
LINK_FLAGS += $(shell pkg-config --libs $(LIBS))
endif
# Verbose option, to output compile and link commands
export V := false
@ -175,18 +159,6 @@ dirs:
@mkdir -p $(dir $(OBJECTS))
@mkdir -p $(BIN_PATH)
# Installs to the set path
.PHONY: install
install:
@echo "Installing to $(DESTDIR)$(INSTALL_PREFIX)/bin"
@$(INSTALL_PROGRAM) $(BIN_PATH)/$(BIN_NAME) $(DESTDIR)$(INSTALL_PREFIX)/bin
# Uninstalls the program
.PHONY: uninstall
uninstall:
@echo "Removing $(DESTDIR)$(INSTALL_PREFIX)/bin/$(BIN_NAME)"
@$(RM) $(DESTDIR)$(INSTALL_PREFIX)/bin/$(BIN_NAME)
# Removes all build files
.PHONY: clean
clean:
@ -219,6 +191,14 @@ $(BIN_PATH)/$(BIN_NAME): $(OBJECTS)
$(BUILD_PATH)/%.o: $(SRC_PATH)/%.$(SRC_EXT)
@echo "Compiling: $< -> $@"
@$(START_TIME)
$(CMD_PREFIX)$(CXX) $(CXXFLAGS) $(INCLUDES) -MP -MMD -c $< -o $@
$(CMD_PREFIX)$(CXX) $(CXXFLAGS) -c $< -o $@
@echo -en "\t Compile time: "
@$(END_TIME)
.PHONY: docs
docs:
@$(RM) -r $(DOCDIR)/html
@doxygen $(DOCDIR)/doxyfile