summaryrefslogtreecommitdiff
path: root/nuttx/arch
diff options
context:
space:
mode:
authorpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2010-04-17 13:55:25 +0000
committerpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2010-04-17 13:55:25 +0000
commit5e97ec828b26c75c17aa85565a198eb19fd1e0d9 (patch)
tree62d480284694fb5a3ec2d4feb94e2c51b868227b /nuttx/arch
parentd3cdbd062ddde8bb91a596d2169f642681718994 (diff)
downloadpx4-nuttx-5e97ec828b26c75c17aa85565a198eb19fd1e0d9.tar.gz
px4-nuttx-5e97ec828b26c75c17aa85565a198eb19fd1e0d9.tar.bz2
px4-nuttx-5e97ec828b26c75c17aa85565a198eb19fd1e0d9.zip
Fixes for build on Ubuntu
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@2602 42af7a65-404d-4744-a932-0658087f49c3
Diffstat (limited to 'nuttx/arch')
-rw-r--r--nuttx/arch/sim/src/Makefile17
1 files changed, 15 insertions, 2 deletions
diff --git a/nuttx/arch/sim/src/Makefile b/nuttx/arch/sim/src/Makefile
index 05b13e739..067b7cf36 100644
--- a/nuttx/arch/sim/src/Makefile
+++ b/nuttx/arch/sim/src/Makefile
@@ -35,6 +35,19 @@
-include $(TOPDIR)/Make.defs
+# The X11 stuff only builds on Linux (but not Ubuntu -- Ubuntu needs
+# some work).
+
+ifneq ($(HOSTOS),Cygwin)
+ifeq ($(CONFIG_SIM_X11FB),y)
+ USEX = y
+else
+ USEX = n
+endif
+else
+ USEX = n
+endif
+
CFLAGS += -I$(TOPDIR)/sched
ASRCS = up_setjmp.S
@@ -46,7 +59,7 @@ CSRCS = up_initialize.c up_idle.c up_interruptcontext.c \
up_exit.c up_schedulesigaction.c up_allocateheap.c \
up_devconsole.c up_framebuffer.c
HOSTSRCS = up_stdio.c up_hostusleep.c
-ifneq ($(HOSTOS),Cygwin)
+ifeq ($(USEX),y)
HOSTSRCS += up_x11framebuffer.c
endif
ifeq ($(CONFIG_FS_FAT),y)
@@ -66,7 +79,7 @@ SRCS = $(ASRCS) $(CSRCS) $(HOSTSRCS)
OBJS = $(AOBJS) $(COBJS) $(HOSTOBJS)
LDFLAGS = $(ARCHSCRIPT)
-ifneq ($(HOSTOS),Cygwin)
+ifeq ($(USEX),y)
STDLIBS = -lX11 -lXext -lc
else
STDLIBS = -lc