X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=simgear%2FMakefile.am;h=9bd77efc97dff0fb92b24c5ade92d93e2e20d483;hb=e4a8896fdc98d29bc0af16bda19599e53f259d1c;hp=de98c035aaa3db6359633d213f2427eb13703ced;hpb=3dcffc7df821bd8dfc4f4324b14f2af86305960f;p=simgear.git diff --git a/simgear/Makefile.am b/simgear/Makefile.am index de98c035..9bd77efc 100644 --- a/simgear/Makefile.am +++ b/simgear/Makefile.am @@ -1,13 +1,23 @@ -# METAR_DIRS = -METAR_DIRS = environment - EXTRA_DIST = simgear_config.h.vc5 simgear_config.h-msvc71 version.h.in include_HEADERS = \ compiler.h constants.h sg_inlines.h version.h -SUBDIRS = \ - $(compatibility_DIR) \ +if WANT_HEADLESS +SG_EXTRA_DIRS = +METAR_DIRS = +else +SG_EXTRA_DIRS = scene sound screen +METAR_DIRS = environment +endif + +if HAVE_THREADS +SGTHREAD_DIR = threads +else +SGTHREAD_DIR = +endif + +SUBDIRS_ALWAYS = \ xml \ debug \ misc \ @@ -17,15 +27,17 @@ SUBDIRS = \ io \ magvar \ math \ - $(METAR_DIRS) \ nasal \ props \ route \ - scene \ - screen \ serial \ - sound \ - threads \ timing -DIST_SUBDIRS = $(SUBDIRS) compatibility +SUBDIRS = $(SUBDIRS_ALWAYS) \ + $(compatibility_DIR) \ + $(METAR_DIRS) \ + $(SG_EXTRA_DIRS) \ + $(SGTHREAD_DIR) + +DIST_SUBDIRS = $(SUBDIRS_ALWAYS) compatibility scene sound screen environment threads +