From: bdemsky Date: Fri, 16 Jun 2017 00:36:45 +0000 (-0700) Subject: Configure Doxygen Better for C X-Git-Url: http://plrg.eecs.uci.edu/git/?p=satune.git;a=commitdiff_plain;h=a60327c3c9d0f6ad9365aa042162a6c042a62402 Configure Doxygen Better for C --- 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)