diff options
-rw-r--r-- | nuttx/arch/sim/src/Makefile | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/nuttx/arch/sim/src/Makefile b/nuttx/arch/sim/src/Makefile index ec01ce406..05b13e739 100644 --- a/nuttx/arch/sim/src/Makefile +++ b/nuttx/arch/sim/src/Makefile @@ -45,7 +45,10 @@ CSRCS = up_initialize.c up_idle.c up_interruptcontext.c \ up_releasepending.c up_reprioritizertr.c \ up_exit.c up_schedulesigaction.c up_allocateheap.c \ up_devconsole.c up_framebuffer.c -HOSTSRCS = up_stdio.c up_hostusleep.c up_x11framebuffer.c +HOSTSRCS = up_stdio.c up_hostusleep.c +ifneq ($(HOSTOS),Cygwin) + HOSTSRCS += up_x11framebuffer.c +endif ifeq ($(CONFIG_FS_FAT),y) CSRCS += up_blockdevice.c up_deviceimage.c endif @@ -63,7 +66,11 @@ SRCS = $(ASRCS) $(CSRCS) $(HOSTSRCS) OBJS = $(AOBJS) $(COBJS) $(HOSTOBJS) LDFLAGS = $(ARCHSCRIPT) -STDLIBS = -lX11 -lXext -lc +ifneq ($(HOSTOS),Cygwin) + STDLIBS = -lX11 -lXext -lc +else + STDLIBS = -lc +endif ifeq ($(CONFIG_FS_FAT),y) STDLIBS += -lz endif |