]> git.mxchange.org Git - flightgear.git/blobdiff - Simulator/Makefile.am
Only build the Joystick lib if joystick support is available.
[flightgear.git] / Simulator / Makefile.am
index ed862d74577dc48ce214228e34b5dc8065153f2d..fad76f883b7307ee3b10b41caa2c0f7ee40ee9ed 100644 (file)
@@ -1,3 +1,9 @@
+if ENABLE_JOYSTICK_SUPPORT
+JOYSTICK_DIRS = Joystick
+else
+JOYSTICK_DIRS = 
+endif
+
 SUBDIRS = \
        Aircraft \
        Airports \
@@ -7,7 +13,7 @@ SUBDIRS = \
        Controls \
        Flight \
        GUI \
-       Joystick \
+       $(JOYSTICK_DIRS) \
        Objects \
        Scenery \
        Time \