X-Git-Url: https://deadsoftware.ru/gitweb?a=blobdiff_plain;f=Makefile;h=656105b1c1de1d9709988bf77591889dabe78111;hb=0c3c99510dbda9c562787b5d08f69b68a969f561;hp=94be64aa62d6a2830bc12d153a9f158d43aeafb6;hpb=7c27903f08ee6069172f92415888a825512cba01;p=odcread.git diff --git a/Makefile b/Makefile index 94be64a..656105b 100644 --- a/Makefile +++ b/Makefile @@ -1,7 +1,12 @@ -MODULES := reader store alien typeregister textmodel fold +# Modules, each containing: +# * $(MODULE)/Make.inc -- makefile include +# * $(MODULE)/$(MODULE).h -- minimal "interface" header file +# * $(MODULE)/$(MODULE).ih -- internal/implementation header file +# (only to be included by sources within the module) +# * $(MODULE)/*.cc -- module source files +MODULES := reader store alien typeregister textmodel fold typepath -# Add module directories to the include path -CFLAGS += -I. $(patsubst %,-I%,$(MODULES)) +CFLAGS += -I. # Variables for the modules to write to SRCS := odcread.cc @@ -32,3 +37,9 @@ clean: # Include the generated dependency files (if they exist) -include $(SRCS:.cc=.d) + + +# TODO: +# Each module has a .ih file that should be *the only* include from the .cc +# files. These .ih files should be pre-compiled, and dependency caching should +# be based on the .ih files, not the .cc files.