]> git.mxchange.org Git - flightgear.git/commitdiff
forgotten ones from Tat's patch to enable make builds on Macs
authortorsten <torsten>
Thu, 17 Sep 2009 17:03:26 +0000 (17:03 +0000)
committerTim Moore <timoore@redhat.com>
Fri, 18 Sep 2009 08:32:42 +0000 (10:32 +0200)
utils/GPSsmooth/Makefile.am
utils/Makefile.am
utils/TerraSync/Makefile.am
utils/js_server/Makefile.am

index db6c26365f84ace8f988976652f68a3c144df87b..c0d4edebd4767d1f0514166a2e087a384ececf0f 100644 (file)
@@ -1,11 +1,22 @@
 noinst_PROGRAMS = GPSsmooth MIDGsmooth UGsmooth
 
+if HAVE_FRAMEWORK_PLIB
+GPSsmooth_LDFLAGS = $(plib_FRAMEWORK)
+MIDGsmooth_LDFLAGS = $(plib_FRAMEWORK)
+UGsmooth_LDFLAGS = $(plib_FRAMEWORK)
+else
+GPSsmooth_PLIB_LIBS = -lplibnet -lplibul
+MIDGsmooth_PLIB_LIBS = -lplibnet -lplibul
+UGsmooth_PLIB_LIBS = -lplibnet -lplibul
+endif
+
+
 GPSsmooth_SOURCES = \
        gps.cxx gps.hxx \
        gps_main.cxx
 
 GPSsmooth_LDADD = \
-       -lsgtiming -lsgmisc -lsgdebug -lplibnet -lplibul \
+        $(GPSsmooth_PLIB_LIBS) -lsgtiming -lsgmisc -lsgdebug \
        $(joystick_LIBS) $(network_LIBS) $(base_LIBS) -lz
 
 MIDGsmooth_SOURCES = \
@@ -13,9 +24,8 @@ MIDGsmooth_SOURCES = \
        MIDG_main.cxx
 
 MIDGsmooth_LDADD = \
-       -lsgio -lsgserial -lsgtiming -lsgmath -lsgbucket -lsgmisc -lsgdebug \
-        -lsgstructure \
-       -lplibnet -lplibul \
+        $(MIDGsmooth_PLIB_LIBS) -lsgio -lsgserial -lsgtiming \
+        -lsgmath -lsgbucket -lsgmisc -lsgdebug -lsgstructure \
        $(joystick_LIBS) $(network_LIBS) $(base_LIBS) -lz
 
 UGsmooth_SOURCES = \
@@ -26,9 +36,8 @@ UGsmooth_SOURCES = \
        UGear_telnet.cxx UGear_telnet.hxx
 
 UGsmooth_LDADD = \
-        -lsgio -lsgserial -lsgtiming -lsgmath -lsgbucket -lsgmisc -lsgdebug \
-        -lplibnet -lplibul \
+        $(UGsmooth_PLIB_LIBS) -lsgio -lsgserial -lsgtiming \
+        -lsgmath -lsgbucket -lsgmisc -lsgdebug \
         $(joystick_LIBS) $(network_LIBS) $(base_LIBS) -lz
 
-
 INCLUDES = -I$(top_srcdir)/src
index 1f183fec5e438cff82fa7a2efc12176b1e4cb7a8..eef564a8f9006aa853910f3b12fa7ad09e9f12fe 100644 (file)
@@ -1,4 +1,4 @@
-DIST_SUBDIRS = GPSsmooth TerraSync Modeller js_server fgadmin xmlgrep propmerge
+DIST_SUBDIRS = GPSsmooth TerraSync Modeller js_server fgadmin xmlgrep propmerge fgpanel
 
-SUBDIRS = GPSsmooth TerraSync Modeller js_server propmerge fgviewer
+SUBDIRS = GPSsmooth TerraSync Modeller js_server propmerge fgviewer fgpanel
 
index aebd959607c36bbba633a0ea33ebb637e975e0bf..0b71b9ea4979b7932603235f361cced534d6033e 100644 (file)
@@ -6,4 +6,10 @@ terrasync_SOURCES = terrasync.cxx
 
 AM_CPPFLAGS = $(svn_CPPFLAGS)
 
-terrasync_LDADD = -lplibnet -lplibul -lsgmisc -lsgdebug $(network_LIBS) $(svn_LIBS)
+if HAVE_FRAMEWORK_PLIB
+terrasync_LDFLAGS = $(plib_FRAMEWORK)
+else
+terrasync_PLIB_LIBS = -lplibnet -lplibul  
+endif
+
+terrasync_LDADD = $(terrasync_PLIB_LIBS) -lsgmisc -lsgdebug $(network_LIBS) $(svn_LIBS)
index d4ca0a49e1eafcb3b4c28a9d1406b5ad28269736..a21dc380e14d09f0a7b41a33dc761c0b64b2a395 100644 (file)
@@ -1,4 +1,10 @@
 noinst_PROGRAMS = js_server
 
+if HAVE_FRAMEWORK_PLIB
+js_server_LDFLAGS = $(plib_FRAMEWORK)
+else
+js_server_PLIB_LIBS = -lplibjs -lplibnet -lplibul  
+endif
+
 js_server_SOURCES = js_server.cxx
-js_server_LDADD = -lplibjs -lplibnet -lplibul $(base_LIBS) $(joystick_LIBS) $(network_LIBS)
+js_server_LDADD = $(js_server_PLIB_LIBS) $(base_LIBS) $(joystick_LIBS) $(network_LIBS)