Win32 Native support and dynamicaly loaded CAN drivers for Linux, Cygwin and Win32.
--- a/drivers/can_peak_linux/Makefile.in Wed Apr 04 13:04:31 2007 +0200
+++ b/drivers/can_peak_linux/Makefile.in Wed Apr 04 13:11:49 2007 +0200
@@ -60,7 +60,7 @@
cp $@ $(PREFIX)/lib/
uninstall:
- rm -f $(TARGET_HFILES)
+ rm -f $(TARGET_SOFILES)
clean:
rm -f $(OBJS)
--- a/drivers/can_peak_win32/Makefile.in Wed Apr 04 13:04:31 2007 +0200
+++ b/drivers/can_peak_win32/Makefile.in Wed Apr 04 13:11:49 2007 +0200
@@ -65,7 +65,7 @@
cp $@ $(PREFIX)/lib/
uninstall:
- rm -f $(TARGET_HFILES)
+ rm -f $(TARGET_SOFILES)
clean:
rm -f $(OBJS)
--- a/drivers/can_socket/Makefile.in Wed Apr 04 13:04:31 2007 +0200
+++ b/drivers/can_socket/Makefile.in Wed Apr 04 13:11:49 2007 +0200
@@ -29,6 +29,8 @@
TARGET = SUB_TARGET
CAN_DRIVER = SUB_CAN_DRIVER
TIMERS_DRIVER = SUB_TIMERS_DRIVER
+ENABLE_DLL_DRIVERS=SUB_ENABLE_DLL_DRIVERS
+CAN_DLL_CFLAGS=SUB_CAN_DLL_CFLAGS
INCLUDES = -I../../include -I../../include/$(TARGET) -I../../include/$(CAN_DRIVER)
@@ -51,7 +53,7 @@
$(CC) $(CFLAGS) $(PROG_CFLAGS) ${PROGDEFINES} $(INCLUDES) -o $@ -c $<
libcanfestival_$(CAN_DRIVER).so: $(OBJS)
- gcc -shared -Wl,-soname,libcanfestival_$(CAN_DRIVER).so -o $@ $<
+ gcc -shared -Wl,-soname,libcanfestival_$(CAN_DRIVER).so $(CAN_DLL_CFLAGS) -o $@ $<
install: libcanfestival_$(CAN_DRIVER).so
mkdir -p $(PREFIX)/lib/
--- a/drivers/can_virtual/.cvsignore Wed Apr 04 13:04:31 2007 +0200
+++ b/drivers/can_virtual/.cvsignore Wed Apr 04 13:11:49 2007 +0200
@@ -1,2 +1,3 @@
Makefile
*.a
+libcanfestival_can_virtual.so
--- a/drivers/can_virtual/Makefile.in Wed Apr 04 13:04:31 2007 +0200
+++ b/drivers/can_virtual/Makefile.in Wed Apr 04 13:11:49 2007 +0200
@@ -29,6 +29,8 @@
TARGET = SUB_TARGET
CAN_DRIVER = SUB_CAN_DRIVER
TIMERS_DRIVER = SUB_TIMERS_DRIVER
+ENABLE_DLL_DRIVERS=SUB_ENABLE_DLL_DRIVERS
+CAN_DLL_CFLAGS=SUB_CAN_DLL_CFLAGS
INCLUDES = -I../../include -I../../include/$(TARGET) -I../../include/$(CAN_DRIVER)
@@ -51,7 +53,7 @@
$(CC) $(CFLAGS) $(PROG_CFLAGS) ${PROGDEFINES} $(INCLUDES) -o $@ -c $<
libcanfestival_$(CAN_DRIVER).so: $(OBJS)
- gcc -shared -Wl,-soname,libcanfestival_$(CAN_DRIVER).so -o $@ $<
+ gcc -shared -Wl,-soname,libcanfestival_$(CAN_DRIVER).so $(CAN_DLL_CFLAGS) -o $@ $<
install: libcanfestival_$(CAN_DRIVER).so
mkdir -p $(PREFIX)/lib/