[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[paparazzi-commits] [4540] Fix up multimon makefile for non-IA32 build (
From: |
Allen Ibara |
Subject: |
[paparazzi-commits] [4540] Fix up multimon makefile for non-IA32 build (build tested only) |
Date: |
Fri, 05 Feb 2010 18:08:04 +0000 |
Revision: 4540
http://svn.sv.gnu.org/viewvc/?view=rev&root=paparazzi&revision=4540
Author: aibara
Date: 2010-02-05 18:08:04 +0000 (Fri, 05 Feb 2010)
Log Message:
-----------
Fix up multimon makefile for non-IA32 build (build tested only)
Modified Paths:
--------------
paparazzi3/trunk/sw/ground_segment/multimon/Makefile
Modified: paparazzi3/trunk/sw/ground_segment/multimon/Makefile
===================================================================
--- paparazzi3/trunk/sw/ground_segment/multimon/Makefile 2010-02-05
18:06:55 UTC (rev 4539)
+++ paparazzi3/trunk/sw/ground_segment/multimon/Makefile 2010-02-05
18:08:04 UTC (rev 4540)
@@ -2,14 +2,20 @@
Q=@
DEBUG =n
+MACHINE := $(shell uname -m)
CFLAGS =-Wall -Wstrict-prototypes -I/usr/X11R6/include -I `ocamlc
-where`
ifeq ($(DEBUG),y)
-CFLAGS +=-g -O -march=i486 -falign-loops=2 -falign-jumps=2 \
- -falign-functions=2 -DARCH_I386
+CFLAGS +=-g -O
else
-CFLAGS +=-O3 -march=i486 -falign-loops=2 -falign-jumps=2 \
- -falign-functions=2 -DARCH_I386
+CFLAGS +=-O3
+endif
+
+ifeq ($(MACHINE),'i686')
+CFLAGS += -march=i486 -falign-loops=2 -falign-jumps=2 \
+ -falign-functions=2 -DARCH_I386
+else
+CFLAGS += -fPIC
endif
LDFLAGSX =-lX11 -L/usr/X11R6/lib
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [paparazzi-commits] [4540] Fix up multimon makefile for non-IA32 build (build tested only),
Allen Ibara <=