Bladeren bron

Rename src to modbus

This time the change is definitive :)
Stéphane Raimbault 15 jaren geleden
bovenliggende
commit
df0cf79272

+ 0 - 0
ChangeLog


+ 1 - 1
Makefile.am

@@ -1,5 +1,5 @@
 EXTRA_DIST = MIGRATION libmodbus.spec
-SUBDIRS = src tests
+SUBDIRS = modbus tests
 
 pkgconfigdir = $(libdir)/pkgconfig
 pkgconfig_DATA = modbus.pc

+ 0 - 0
src/Makefile.am → modbus/Makefile.am


+ 2 - 2
src/modbus.c → modbus/modbus.c

@@ -60,8 +60,8 @@
 #define UINT16_MAX 0xFFFF
 #endif
 
-#include "config.h"
-#include "modbus.h"
+#include <config.h>
+#include <modbus/modbus.h>
 
 #define UNKNOWN_ERROR_MSG "Not defined in modbus specification"
 

+ 0 - 0
src/modbus.h → modbus/modbus.h


+ 2 - 2
tests/Makefile.am

@@ -10,7 +10,7 @@ noinst_PROGRAMS = \
 	bandwidth-master
 
 common_ldflags = \
-	$(top_builddir)/src/libmodbus.la
+	$(top_builddir)/modbus/libmodbus.la
 
 random_test_slave_SOURCES = random-test-slave.c
 random_test_slave_LDADD = $(common_ldflags)
@@ -33,5 +33,5 @@ bandwidth_slave_many_up_LDADD = $(common_ldflags)
 bandwidth_master_SOURCES = bandwidth-master.c
 bandwidth_master_LDADD = $(common_ldflags)
 
-INCLUDES = -I$(top_srcdir) -I$(top_srcdir)/src
+INCLUDES = -I$(top_srcdir)
 CLEANFILES = *~

+ 2 - 2
tests/bandwidth-master.c

@@ -1,5 +1,5 @@
 /*
- * Copyright © 2008 Stéphane Raimbault <stephane.raimbault@gmail.com>
+ * Copyright © 2008-2010 Stéphane Raimbault <stephane.raimbault@gmail.com>
  *
  * This program is free software: you can redistribute it and/or modify
  * it under the terms of the GNU General Public License as published by
@@ -22,7 +22,7 @@
 #include <time.h>
 #include <sys/time.h>
 
-#include "modbus.h"
+#include <modbus/modbus.h>
 
 /* Tests based on PI-MBUS-300 documentation */
 #define SLAVE     0x11

+ 2 - 2
tests/bandwidth-slave-many-up.c

@@ -1,5 +1,5 @@
 /*
- * Copyright © 2009 Stéphane Raimbault <stephane.raimbault@gmail.com>
+ * Copyright © 2009-2010 Stéphane Raimbault <stephane.raimbault@gmail.com>
  *
  * This program is free software: you can redistribute it and/or modify
  * it under the terms of the GNU General Public License as published by
@@ -22,7 +22,7 @@
 #include <errno.h>
 #include <signal.h>
 
-#include "modbus.h"
+#include <modbus/modbus.h>
 
 #define SLAVE         0x11
 #define NB_CONNECTION    5

+ 2 - 2
tests/bandwidth-slave-one.c

@@ -1,5 +1,5 @@
 /*
- * Copyright © 2008 Stéphane Raimbault <stephane.raimbault@gmail.com>
+ * Copyright © 2008-2010 Stéphane Raimbault <stephane.raimbault@gmail.com>
  *
  * This program is free software: you can redistribute it and/or modify
  * it under the terms of the GNU General Public License as published by
@@ -20,7 +20,7 @@
 #include <string.h>
 #include <stdlib.h>
 
-#include "modbus.h"
+#include <modbus/modbus.h>
 
 #define SLAVE 0x11
 

+ 2 - 2
tests/random-test-master.c

@@ -1,5 +1,5 @@
 /*
- * Copyright © 2001-2008 Stéphane Raimbault <stephane.raimbault@gmail.com>
+ * Copyright © 2001-2010 Stéphane Raimbault <stephane.raimbault@gmail.com>
  *
  * This program is free software: you can redistribute it and/or modify
  * it under the terms of the GNU General Public License as published by
@@ -20,7 +20,7 @@
 #include <string.h>
 #include <stdlib.h>
 
-#include "modbus.h"
+#include <modbus/modbus.h>
 
 /* The goal of this program is to check all major functions of
    libmodbus:

+ 2 - 2
tests/random-test-slave.c

@@ -1,5 +1,5 @@
 /*
- * Copyright © 2008 Stéphane Raimbault <stephane.raimbault@gmail.com>
+ * Copyright © 2008-2010 Stéphane Raimbault <stephane.raimbault@gmail.com>
  *
  * This program is free software: you can redistribute it and/or modify
  * it under the terms of the GNU General Public License as published by
@@ -19,7 +19,7 @@
 #include <unistd.h>
 #include <stdlib.h>
 
-#include "modbus.h"
+#include <modbus/modbus.h>
 
 #define SLAVE 0x11
 

+ 2 - 2
tests/unit-test-master.c

@@ -1,5 +1,5 @@
 /*
- * Copyright © 2008 Stéphane Raimbault <stephane.raimbault@gmail.com>
+ * Copyright © 2008-2010 Stéphane Raimbault <stephane.raimbault@gmail.com>
  *
  * This program is free software: you can redistribute it and/or modify
  * it under the terms of the GNU General Public License as published by
@@ -20,7 +20,7 @@
 #include <string.h>
 #include <stdlib.h>
 
-#include "modbus.h"
+#include <modbus/modbus.h>
 #include "unit-test.h"
 
 /* Tests based on PI-MBUS-300 documentation */

+ 2 - 2
tests/unit-test-slave.c

@@ -1,5 +1,5 @@
 /*
- * Copyright © 2008 Stéphane Raimbault <stephane.raimbault@gmail.com>
+ * Copyright © 2008-2010 Stéphane Raimbault <stephane.raimbault@gmail.com>
  *
  * This program is free software: you can redistribute it and/or modify
  * it under the terms of the GNU General Public License as published by
@@ -20,7 +20,7 @@
 #include <string.h>
 #include <stdlib.h>
 
-#include "modbus.h"
+#include <modbus/modbus.h>
 #include "unit-test.h"
 
 int main(void)