]> git.mxchange.org Git - flightgear.git/blobdiff - src/Input/Makefile.am
Different approach to handling the paired-ILS-on-opposite-runways situation. This...
[flightgear.git] / src / Input / Makefile.am
index c6f939a17e18c45b6875ce917c9d3d0319ec72a7..cea5f627fc0a484f4e04898549b07306ab153bd3 100644 (file)
@@ -1,15 +1,33 @@
+AM_CXXFLAGS = -DPKGLIBDIR=\"$(pkgdatadir)\"
+
 noinst_LIBRARIES = libInput.a
 
-libInput_a_SOURCES = input.cxx input.hxx
+if WITH_EVENTINPUT
+libInput_Event_SOURCES = FGEventInput.cxx FGEventInput.hxx FGLinuxEventInput.cxx FGLinuxEventInput.hxx
+libInput_Event_INCLUDES = -I/usr/include/dbus-1.0 -I/usr/lib64/dbus-1.0/include -I/usr/lib/dbus-1.0/include 
+else
+libInput_Event_SOURCES = 
+libInput_Event_INCLUDES = 
+endif
+
+libInput_a_SOURCES = input.cxx input.hxx FGCommonInput.cxx FGCommonInput.hxx \
+       FGDeviceConfigurationMap.cxx FGDeviceConfigurationMap.hxx \
+       FGButton.cxx FGButton.hxx \
+       FGMouseInput.cxx FGMouseInput.hxx \
+       FGKeyboardInput.cxx FGKeyboardInput.hxx \
+       FGJoystickInput.cxx FGJoystickInput.hxx \
+        $(libInput_Event_SOURCES)
 
 bin_PROGRAMS = js_demo fgjs
 
 js_demo_SOURCES = js_demo.cxx
 
-js_demo_LDADD = $(audio_LIBS)
+js_demo_LDADD = -lplibjs $(base_LIBS) $(joystick_LIBS) -lplibul
 
-fgjs_SOURCES = fgjs.cxx jsinput.cxx jsinput.h jssuper.cxx jssuper.h
+fgjs_SOURCES = fgjs.cxx jsinput.cxx jsinput.h jssuper.cxx jssuper.h
 
-# fgjs_LDADD = $(audio_LIBS)
+fgjs_LDADD = -lplibjs -lplibul $(base_LIBS) $(joystick_LIBS) \
+       -lsgprops -lsgmisc -lsgio -lsgdebug -lsgstructure -lsgxml -lz
 
-INCLUDES += -I$(top_srcdir) -I$(top_srcdir)/src
+INCLUDES = -I$(top_srcdir) -I$(top_srcdir)/src -I$(top_srcdir)/src/Main \
+       $(libInput_Event_INCLUDES)