paparazzi-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[paparazzi-commits] [6421] use fPIC flag for 64 bit and OSX include and


From: Eric
Subject: [paparazzi-commits] [6421] use fPIC flag for 64 bit and OSX include and lib folders
Date: Fri, 19 Nov 2010 08:38:20 +0000

Revision: 6421
          http://svn.sv.gnu.org/viewvc/?view=rev&root=paparazzi&revision=6421
Author:   lamestllama
Date:     2010-11-19 08:38:20 +0000 (Fri, 19 Nov 2010)
Log Message:
-----------
use fPIC flag for 64 bit and OSX include and lib folders

Modified Paths:
--------------
    paparazzi-software/trunk/sw/ground_segment/lpc21iap/Makefile

Modified: paparazzi-software/trunk/sw/ground_segment/lpc21iap/Makefile
===================================================================
--- paparazzi-software/trunk/sw/ground_segment/lpc21iap/Makefile        
2010-11-19 07:33:31 UTC (rev 6420)
+++ paparazzi-software/trunk/sw/ground_segment/lpc21iap/Makefile        
2010-11-19 08:38:20 UTC (rev 6421)
@@ -18,8 +18,23 @@
 RM             = rm
 TAR            = tar
 
-CFLAGS  = -Wall -g
+LBITS := $(shell getconf LONG_BIT)
+ifeq ($(LBITS),64)
+  FPIC=-fPIC
+else
+  FPIC=
+endif
 
+UNAME = $(shell uname -s)
+ifeq ("$(UNAME)","Darwin")
+  INCLUDES=-I/opt/local/include/
+  LIBRARYS=-L/opt/local/lib    
+endif
+
+
+
+CFLAGS  = -Wall -g $(FPIC) $(INCLUDES) $(LIBRARYS)
+
 SOURCES =      lpc21iap.c elf.c lpcusb.c
 
 all: $(APPNAME)




reply via email to

[Prev in Thread] Current Thread [Next in Thread]