Skip to content

Commit

Permalink
enable doxygen documentation via make doc
Browse files Browse the repository at this point in the history
  • Loading branch information
fangq committed Jun 3, 2023
1 parent 8fec251 commit 980cc9f
Show file tree
Hide file tree
Showing 7 changed files with 1,876 additions and 129 deletions.
9 changes: 9 additions & 0 deletions src/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,11 @@
AR=g++
IOCC=ioc64
MEX=mex
DOXY=doxygen

BINARY=mcxcl
OUTPUT_DIR=../bin
DOCDIR=../doc
INCLUDEDIRS=-Izmat -Izmat/easylzma -I/usr/local/cuda/include -Iubj

CUCCOPT:=
Expand All @@ -25,6 +27,7 @@ XXD=xxd

ZMATLIB :=lib/libzmat.a
USERLINKOPT?=$(ZMATLIB) -lz
DOXYCFG=mcx_doxygen.cfg

# setup for amd
AMDAPPSDKROOT ?=/opt/AMDAPPSDK-3.0
Expand Down Expand Up @@ -159,6 +162,8 @@ all mex oct intelcpu static : $(OUTPUT_DIR)/$(BINARY)

makedirs:
@if test ! -d $(OUTPUT_DIR); then $(MKDIR) $(OUTPUT_DIR); fi
makedocdir:
@if test ! -d $(DOCDIR); then $(MKDIR) $(DOCDIR); fi

$(OUTPUT_DIR)/$(BINARY): makedirs $(CLSOURCE) $(ZMATLIB) $(OBJS)
$(AR) $(OBJS) $(LINKOPT) $(OUTPUTFLAG) $(OUTPUT_DIR)/$(BINARY) $(USERLINKOPT) $(EXTRALIB)
Expand All @@ -178,6 +183,10 @@ intelcpu:
$(ZMATLIB):
-$(MAKE) -C zmat lib AR=ar CPPOPT="-O3 $(DLLFLAG)" CCOPT="-O3 $(DLLFLAG)" USERLINKOPT=

## Documentation ##
doc: makedocdir
$(DOXY) $(DOXYCFG)

clean:
-$(MAKE) -C zmat clean
-rm -f $(OBJS) $(CLSOURCE) $(OUTPUT_DIR)/$(BINARY)$(EXESUFFIX) $(OUTPUT_DIR)/$(BINARY)_atomic$(EXESUFFIX) $(ZMATLIB)
Expand Down
Loading

0 comments on commit 980cc9f

Please sign in to comment.