From a60327c3c9d0f6ad9365aa042162a6c042a62402 Mon Sep 17 00:00:00 2001 From: bdemsky Date: Thu, 15 Jun 2017 17:36:45 -0700 Subject: [PATCH] Configure Doxygen Better for C --- src/Doxyfile | 4 ++-- src/Makefile | 9 ++++++--- 2 files changed, 8 insertions(+), 5 deletions(-) diff --git a/src/Doxyfile b/src/Doxyfile index 6229615..53da459 100644 --- a/src/Doxyfile +++ b/src/Doxyfile @@ -355,7 +355,7 @@ LOOKUP_CACHE_SIZE = 0 # Private class members and static file members will be hidden unless # the EXTRACT_PRIVATE and EXTRACT_STATIC tags are set to YES -EXTRACT_ALL = NO +EXTRACT_ALL = YES # If the EXTRACT_PRIVATE tag is set to YES all private members of a class # will be included in the documentation. @@ -686,7 +686,7 @@ FILE_PATTERNS = # should be searched for input files as well. Possible values are YES and NO. # If left blank NO is used. -RECURSIVE = NO +RECURSIVE = YES # The EXCLUDE tag can be used to specify files and/or directories that should be # excluded from the INPUT source files. This way you can easily exclude a diff --git a/src/Makefile b/src/Makefile index 1358986..366cfd5 100644 --- a/src/Makefile +++ b/src/Makefile @@ -4,11 +4,13 @@ PHONY += directories MKDIR_P = mkdir -p OBJ_DIR = bin -C_SOURCES := $(wildcard *.c) $(wildcard AST/*.c) $(wildcard Collections/*.c) $(wildcard Backend/*.c) +C_SOURCES := $(wildcard *.c) $(wildcard AST/*.c) $(wildcard Collections/*.c) $(wildcard Backend/*.c) $(wildcard Encoders/*.c) + +HEADERS := $(wildcard *.h) $(wildcard AST/*.h) $(wildcard Collections/*.h) $(wildcard Backend/*.h) $(wildcard Encoders/*.h) OBJECTS := $(CPP_SOURCES:%.cc=$(OBJ_DIR)/%.o) $(C_SOURCES:%.c=$(OBJ_DIR)/%.o) -CFLAGS += -IAST -ICollections -IBackend -I. +CFLAGS += -IAST -ICollections -IBackend -I. -IEncoders LDFLAGS := -ldl -lrt -rdynamic SHARED := -shared @@ -29,12 +31,13 @@ ${OBJ_DIR}: ${MKDIR_P} ${OBJ_DIR}/AST ${MKDIR_P} ${OBJ_DIR}/Collections ${MKDIR_P} ${OBJ_DIR}/Backend + ${MKDIR_P} ${OBJ_DIR}/Encoders debug: CFLAGS += -DCONFIG_DEBUG debug: all PHONY += docs -docs: *.c *.cc *.h +docs: $(C_SOURCES) $(HEADERS) doxygen $(LIB_SO): $(OBJECTS) -- 2.34.1