diff options
author | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2008-11-28 14:45:15 +0000 |
---|---|---|
committer | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2008-11-28 14:45:15 +0000 |
commit | 77faa6867d939c67940edd029cacbea479286eb0 (patch) | |
tree | 7dc53a28ee87503a0780eeb315bfb58ac433a87c /nuttx/graphics/Makefile | |
parent | 0894e57e58205dcfcac28a482af0668e66bbf6de (diff) | |
download | px4-nuttx-77faa6867d939c67940edd029cacbea479286eb0.tar.gz px4-nuttx-77faa6867d939c67940edd029cacbea479286eb0.tar.bz2 px4-nuttx-77faa6867d939c67940edd029cacbea479286eb0.zip |
Add graphics front-end logic
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@1327 42af7a65-404d-4744-a932-0658087f49c3
Diffstat (limited to 'nuttx/graphics/Makefile')
-rw-r--r-- | nuttx/graphics/Makefile | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/nuttx/graphics/Makefile b/nuttx/graphics/Makefile index a30f037e5..16e68106d 100644 --- a/nuttx/graphics/Makefile +++ b/nuttx/graphics/Makefile @@ -46,11 +46,14 @@ include nxbe/Make.defs DEPPATH += --dep-path nxbe CFLAGS += ${shell $(TOPDIR)/tools/incdir.sh "$(CC)" $(TOPDIR)/graphics/nxbe} -HAVENX := ${shell if [ -d nxmu ]; then echo "y"; else echo "n";fi} -ifeq ($(HAVENX),y) +ifeq ($(CONFIG_NX_MULTIUSER),y) include nxmu/Make.defs DEPPATH += --dep-path nxmu CFLAGS += ${shell $(TOPDIR)/tools/incdir.sh "$(CC)" $(TOPDIR)/graphics/nxmu} +else +include nxsu/Make.defs +DEPPATH += --dep-path nxsu +CFLAGS += ${shell $(TOPDIR)/tools/incdir.sh "$(CC)" $(TOPDIR)/graphics/nxsu} endif ASRCS = $(NXGLIB_ASRCS) $(NXBE_ASRCS) $(NX_ASRCS) @@ -64,7 +67,11 @@ OBJS = $(AOBJS) $(COBJS) BIN = libgraphics$(LIBEXT) +ifeq ($(CONFIG_NX_MULTIUSER),y) VPATH = nxglib:nxbe:nxmu +else +VPATH = nxglib:nxbe:nxsu +endif all: mklibgraphics .PHONY : depend clean distclean mklibgraphics gensources gen1bppsources \ |