mirror of
https://github.com/apache/nuttx.git
synced 2026-08-22 05:58:37 +00:00
Fixes for build on Ubuntu
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@2602 42af7a65-404d-4744-a932-0658087f49c3
This commit is contained in:
parent
72c2301cf0
commit
cd591ff76d
1 changed files with 15 additions and 2 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue