configure
changeset 38 9b5bb1dcb4f5
parent 32 8afa33692372
child 39 3e94ee906bc6
equal deleted inserted replaced
37:c6ff23a48232 38:9b5bb1dcb4f5
   343 #                      DEFAULT TARGET/DRIVERS GUESSING                    #
   343 #                      DEFAULT TARGET/DRIVERS GUESSING                    #
   344 ###########################################################################
   344 ###########################################################################
   345 # If target not specified, try to gess one
   345 # If target not specified, try to gess one
   346 if [ "$SUB_TARGET" = "" ]; then
   346 if [ "$SUB_TARGET" = "" ]; then
   347 	if [ "$SUB_OS_NAME" = "CYGWIN" ]; then
   347 	if [ "$SUB_OS_NAME" = "CYGWIN" ]; then
   348 		echo "Choosing win32 target"
   348 		echo "Choosing unix (cygwin) target"
   349 		SUB_TARGET=win32
   349 		SUB_TARGET=unix
   350 	else
   350 	else
   351 		echo "Choosing unix target"
   351 		echo "Choosing unix target"
   352 		SUB_TARGET=unix
   352 		SUB_TARGET=unix
   353 	fi
   353 	fi
   354 fi
   354 fi
   454     	SUB_EXE_CFLAGS=$SUB_EXE_CFLAGS\ -lrtdm
   454     	SUB_EXE_CFLAGS=$SUB_EXE_CFLAGS\ -lrtdm
   455     fi
   455     fi
   456     SUB_EXE_CFLAGS=$SUB_EXE_CFLAGS\ -lpcan
   456     SUB_EXE_CFLAGS=$SUB_EXE_CFLAGS\ -lpcan
   457 fi
   457 fi
   458 
   458 
       
   459 if [ "$SUB_CAN_DRIVER" = "peak_win32" ]; then
       
   460 	if [ "PCAN_HEADER" = "" -o "PCAN_LIB" = "" ]; then
       
   461 		echo "!!! ERROR !!! Please set PCAN_LIB PCAN_HEADER [PCAN_INCLUDE] to appropriate paths ! "
       
   462 	fi
       
   463    	SUB_EXE_CFLAGS=$SUB_EXE_CFLAGS\ \'$PCAN_LIB\'
       
   464 	if [ "$PCAN_INCLUDE" != "" ]; then
       
   465 	   	SUB_PROG_CFLAGS=$SUB_PROG_CFLAGS\ -I$PCAN_INCLUDE
       
   466 	fi
       
   467    	SUB_PROG_CFLAGS=$SUB_PROG_CFLAGS\ \'-DPCAN_HEADER_=\"$PCAN_HEADER\"\'
       
   468 fi
       
   469 
   459 if [ "$SUB_CAN_DRIVER" = "none" ]; then
   470 if [ "$SUB_CAN_DRIVER" = "none" ]; then
   460 	SUB_CAN_DRIVER=
   471 	SUB_CAN_DRIVER=
   461 fi
   472 fi
   462 
   473 
   463 #### TIMERS_DRIVER ####
   474 #### TIMERS_DRIVER ####
   464 
   475 
   465 if [ "$SUB_TIMERS_DRIVER" = "unix" ]; then
   476 if [ "$SUB_TIMERS_DRIVER" = "unix" ]; then
   466 	SUB_EXE_CFLAGS=$SUB_EXE_CFLAGS\ -lpthread\ -lrt
   477 	if [ "$SUB_OS_NAME" != "CYGWIN" ]; then
       
   478 	   SUB_EXE_CFLAGS=$SUB_EXE_CFLAGS\ -lpthread\ -lrt
       
   479 	fi
   467 fi
   480 fi
   468 
   481 
   469 if [ "$SUB_TIMERS_DRIVER" = "xeno" ]; then
   482 if [ "$SUB_TIMERS_DRIVER" = "xeno" ]; then
   470 	SUB_EXE_CFLAGS=$SUB_EXE_CFLAGS\ -lnative\
   483 	SUB_EXE_CFLAGS=$SUB_EXE_CFLAGS\ -lnative\
   471 \	-L`$XENO_CONFIG --library-dir`
   484 \	-L`$XENO_CONFIG --library-dir`