From 9613efa7df49054d033f769af97bbfa3ac82cc75 Mon Sep 17 00:00:00 2001 From: patacongo Date: Mon, 13 Aug 2012 22:27:06 +0000 Subject: Make the lib/ subdirectory build more like other directories git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@5025 42af7a65-404d-4744-a932-0658087f49c3 --- nuttx/lib/pthread/Make.defs | 15 +++++++++++---- 1 file changed, 11 insertions(+), 4 deletions(-) (limited to 'nuttx/lib/pthread/Make.defs') diff --git a/nuttx/lib/pthread/Make.defs b/nuttx/lib/pthread/Make.defs index 47211f9b9..a1eba7bb0 100644 --- a/nuttx/lib/pthread/Make.defs +++ b/nuttx/lib/pthread/Make.defs @@ -1,8 +1,8 @@ ############################################################################ # lib/pthread/Make.defs # -# Copyright (C) 2011 Gregory Nutt. All rights reserved. -# Author: Gregory Nutt +# Copyright (C) 2011-2012 Gregory Nutt. All rights reserved. +# Author: Gregory Nutt # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions @@ -33,7 +33,9 @@ # ############################################################################ -PTHREAD_SRCS = pthread_attrinit.c pthread_attrdestroy.c \ +# Add the pthread C files to the build + +CSRCS += pthread_attrinit.c pthread_attrdestroy.c \ pthread_attrsetschedpolicy.c pthread_attrgetschedpolicy.c \ pthread_attrsetinheritsched.c pthread_attrgetinheritsched.c \ pthread_attrsetstacksize.c pthread_attrgetstacksize.c \ @@ -45,5 +47,10 @@ PTHREAD_SRCS = pthread_attrinit.c pthread_attrdestroy.c \ pthread_mutexattrgetpshared.c pthread_mutexattrsetpshared.c ifeq ($(CONFIG_MUTEX_TYPES),y) -PTHREAD_SRCS += pthread_mutexattrsettype.c pthread_mutexattrgettype.c +CSRCS += pthread_mutexattrsettype.c pthread_mutexattrgettype.c endif + +# Add the pthread directory to the build + +DEPPATH += --dep-path pthread +VPATH += :pthread -- cgit v1.2.3