diff --git a/xxxApp/src/Makefile b/xxxApp/src/Makefile
index 3ec0681e7e4e972a11ad208ad40cd64e0ecd0837..07d1f5beb1370aaebdf4acee6fac5f8682139aef 100644
--- a/xxxApp/src/Makefile
+++ b/xxxApp/src/Makefile
@@ -73,6 +73,11 @@ endif
 ifeq ($(EPICS_HOST_ARCH), cygwin-x86)
 	DBD  += iocxxxCygwin.dbd
 	iocxxxCygwin_DBD += xxxCommonInclude.dbd
+	# for simDetector
+	iocxxxCygwin_DBD += ADSupport.dbd  NDFileNetCDF.dbd
+	xxx_LIBS_cygwin32 += ADBase NDPlugin netCDF
+	iocxxxCygwin_DBD += simDetectorSupport.dbd commonDriverSupport.dbd
+	xxx_LIBS_cygwin32 += simDetector
 
 	# If you want to build parallel port or USB interfaces to Saturn and/or xMAP DXP
 	# then uncomment the following six lines
@@ -132,7 +137,7 @@ endif
 	endif
 endif
 
-ifneq ("",$(findstring linux, $(T_A)))
+ifneq (,$(findstring linux, $(T_A)))
 	DBD  += iocxxxLinux.dbd
 	iocxxxLinux_DBD += xxxCommonInclude.dbd
 	iocxxxLinux_DBD += ADSupport.dbd  NDFileNetCDF.dbd