From 7c0bf54369e1eedd8fffd2191b990cbca110a162 Mon Sep 17 00:00:00 2001 From: Ron Sluiter Date: Wed, 22 Nov 2000 17:13:22 +0000 Subject: [PATCH] Use conditional (i.e., MPF_SERIAL) to simplify Makefile. --- motorApp/Makefile | 18 ++++++++++++------ 1 file changed, 12 insertions(+), 6 deletions(-) diff --git a/motorApp/Makefile b/motorApp/Makefile index eae9836e..ce6c3470 100644 --- a/motorApp/Makefile +++ b/motorApp/Makefile @@ -6,18 +6,24 @@ include $(TOP)/config/CONFIG_APP DIRS += MotorSrc # If any motor controller communication mechanism besides the VME backplane is -# required, then the following module must be uncommented. In addition, it -# must appear 2nd in this list of directories. -#DIRS += CommSrc +# required, then the "CommSrc" module must be built. MPF_SERIAL must be defined +# in /config/RELEASE. +ifdef MPF_SERIAL +DIRS += CommSrc +endif # -# Individual device/driver support modules may be commented -# out here. -#DIRS += NewportSrc +# Select individual device/driver support modules by removing the comment. #DIRS += OmsSrc #DIRS += SoftMotorSrc #DIRS += V544Src + +# The following modules require MPF_SERIAL. +# Select individual device/driver support modules by removing the comment. +ifdef MPF_SERIAL +#DIRS += NewportSrc #DIRS += ImsSrc +endif DIRS += Db include $(TOP)/config/RULES_DIRS