From 89df8b6d645d6779145d6ed6255b2c0c7f938abc Mon Sep 17 00:00:00 2001 From: MarkRivers <rivers@cars.uchicago.edu> Date: Sun, 22 Sep 2013 16:43:19 +0000 Subject: [PATCH] Changes to allow builds where the T_A has additional characters after win32-x86 or windows-x64; improve areaDetector handling --- xxxApp/src/Makefile | 17 ++++++++--------- 1 file changed, 8 insertions(+), 9 deletions(-) diff --git a/xxxApp/src/Makefile b/xxxApp/src/Makefile index 84b2f56..80ae805 100644 --- a/xxxApp/src/Makefile +++ b/xxxApp/src/Makefile @@ -42,10 +42,12 @@ DBD += xxx_Common.dbd xxx_Common_DBD += base.dbd ifdef AREA_DETECTOR - xxx_Common_DBD += ADSupport.dbd NDFileNetCDF.dbd - xxx_Common_LIBS += ADBase NDPlugin netCDF ADBase - xxx_Common_DBD += simDetectorSupport.dbd commonDriverSupport.dbd - xxx_Common_LIBS += simDetector + # areaDetector provides a Makefile for things it needs and supplies + PROD_NAME = xxx_Common + -include $(AREA_DETECTOR)/ADApp/commonDriverMakefile + # To add the simDetector uncomment the following lines + #xxx_Common_DBD += simDetectorSupport.dbd + #xxx_Common_LIBS += simDetector endif ifdef ASYN xxx_Common_DBD += asyn.dbd drvAsynSerialPort.dbd @@ -287,10 +289,10 @@ endif # <name>_registerRecordDeviceDriver.cpp will be created from <name>.dbd xxx_SRCS_vxWorks += iocxxxVX_registerRecordDeviceDriver.cpp xxx_SRCS_Linux += iocxxxLinux_registerRecordDeviceDriver.cpp xxxMain.cpp -ifeq ($(T_A),win32-x86) +ifeq (win32-x86,$(findstring win32-x86, $(T_A))) xxx_SRCS_WIN32 += iocxxxWin32_registerRecordDeviceDriver.cpp xxxMain.cpp endif -ifeq ($(T_A),windows-x64) +ifeq (windows-x64,$(findstring windows-x64, $(T_A))) xxx_SRCS_WIN32 += iocxxxWin64_registerRecordDeviceDriver.cpp xxxMain.cpp endif xxx_SRCS_cygwin32 += iocxxxCygwin_registerRecordDeviceDriver.cpp xxxMain.cpp @@ -310,9 +312,6 @@ xxx_LIBS_WIN32 += $(xxx_Common_LIBS) xxx_LIBS_Darwin += $(xxx_Common_LIBS) -# areaDetector provides a Makefile for things it needs and supplies --include $(AREA_DETECTOR)/ADApp/commonDriverMakefile - #=========================== include $(TOP)/configure/RULES -- GitLab