-if ENABLE_UNIX_SERIAL
-SERIAL_DIRS = serial
+if ENABLE_HLA
+HLA_DIR = hla
else
-SERIAL_DIRS =
+HLA_DIR =
endif
-# if HAVE_GDBM
-# GDBM_DIRS =
-# else
-# GDBM_DIRS = gdbm
-# endif
+EXTRA_DIST = hla simgear_config.h-msvc90 version.h.in
-if HAVE_ZLIB
-ZLIB_DIRS =
+include_HEADERS = \
+ compiler.h constants.h sg_inlines.h version.h
+
+if WANT_HEADLESS
+SG_EXTRA_DIRS =
+METAR_DIRS =
else
-ZLIB_DIRS = zlib
+SG_EXTRA_DIRS = scene sound screen
+METAR_DIRS = environment
endif
-# METAR_DIRS =
-METAR_DIRS = metar
-
-EXTRA_DIST = version.h.in
-
-include_HEADERS = \
- compiler.h constants.h sg_inlines.h sg_traits.hxx sg_zlib.h version.h
+if HAVE_THREADS
+SGTHREAD_DIR = threads
+else
+SGTHREAD_DIR =
+endif
-SUBDIRS = \
- bucket \
+SUBDIRS_ALWAYS = \
+ xml \
debug \
+ misc \
+ structure \
+ bucket \
ephemeris \
+ $(HLA_DIR) \
io \
magvar \
math \
- $(METAR_DIRS) \
- xml \
- misc \
+ nasal \
+ props \
route \
- screen \
- $(SERIAL_DIRS) \
- sky \
- threads \
- timing \
- xgl \
- $(ZLIB_DIRS)
+ serial \
+ timing
+
+SUBDIRS = $(SUBDIRS_ALWAYS) \
+ $(compatibility_DIR) \
+ $(METAR_DIRS) \
+ $(SG_EXTRA_DIRS) \
+ $(SGTHREAD_DIR)
+
+DIST_SUBDIRS = $(SUBDIRS_ALWAYS) compatibility scene sound screen environment threads