[rtems-libbsd commit] Define __DBINTERFACE_PRIVATE for relevant sources

Sebastian Huber sebh at rtems.org
Mon Dec 16 14:29:34 UTC 2013


Module:    rtems-libbsd
Branch:    master
Commit:    c56c1dbab1492c1e3af3248905b4f2cce6757aac
Changeset: http://git.rtems.org/rtems-libbsd/commit/?id=c56c1dbab1492c1e3af3248905b4f2cce6757aac

Author:    Sebastian Huber <sebastian.huber at embedded-brains.de>
Date:      Thu Dec 12 10:40:42 2013 +0100

Define __DBINTERFACE_PRIVATE for relevant sources

---

 Makefile            |   49 ++++++++++++++++++++++++++++++++++++++++++++++++-
 freebsd-to-rtems.py |    6 +++++-
 2 files changed, 53 insertions(+), 2 deletions(-)

diff --git a/Makefile b/Makefile
index 7d9222d..29ec685 100644
--- a/Makefile
+++ b/Makefile
@@ -22,7 +22,6 @@ CFLAGS += -Ifreebsd/lib/libkvm
 CFLAGS += -Ifreebsd/lib/libmemstat
 CFLAGS += -Ifreebsd/lib/libipsec
 CFLAGS += -Itestsuite/include
-CFLAGS += -D__DBINTERFACE_PRIVATE
 CFLAGS += -DINET6
 CFLAGS += -w
 CFLAGS += -std=gnu99
@@ -630,29 +629,77 @@ freebsd/sbin/route/keywords.h: freebsd/sbin/route/keywords
 	awk '{ if (NF > 1) printf "#define\tK_%s\t%d\n\t{\"%s\", K_%s},\n", $$2, NR, $$1, $$2 }' > $@
 	rm -f freebsd/sbin/route/keywords.tmp
 LIB_C_FILES += freebsd/lib/libc/db/btree/bt_close.c
+freebsd/lib/libc/db/btree/bt_close.o: freebsd/lib/libc/db/btree/bt_close.c
+	$(CC) $(CPPFLAGS) $(CFLAGS) -D__DBINTERFACE_PRIVATE -c $< -o $@
 LIB_C_FILES += freebsd/lib/libc/db/btree/bt_conv.c
+freebsd/lib/libc/db/btree/bt_conv.o: freebsd/lib/libc/db/btree/bt_conv.c
+	$(CC) $(CPPFLAGS) $(CFLAGS) -D__DBINTERFACE_PRIVATE -c $< -o $@
 LIB_C_FILES += freebsd/lib/libc/db/btree/bt_debug.c
+freebsd/lib/libc/db/btree/bt_debug.o: freebsd/lib/libc/db/btree/bt_debug.c
+	$(CC) $(CPPFLAGS) $(CFLAGS) -D__DBINTERFACE_PRIVATE -c $< -o $@
 LIB_C_FILES += freebsd/lib/libc/db/btree/bt_delete.c
+freebsd/lib/libc/db/btree/bt_delete.o: freebsd/lib/libc/db/btree/bt_delete.c
+	$(CC) $(CPPFLAGS) $(CFLAGS) -D__DBINTERFACE_PRIVATE -c $< -o $@
 LIB_C_FILES += freebsd/lib/libc/db/btree/bt_get.c
+freebsd/lib/libc/db/btree/bt_get.o: freebsd/lib/libc/db/btree/bt_get.c
+	$(CC) $(CPPFLAGS) $(CFLAGS) -D__DBINTERFACE_PRIVATE -c $< -o $@
 LIB_C_FILES += freebsd/lib/libc/db/btree/bt_open.c
+freebsd/lib/libc/db/btree/bt_open.o: freebsd/lib/libc/db/btree/bt_open.c
+	$(CC) $(CPPFLAGS) $(CFLAGS) -D__DBINTERFACE_PRIVATE -c $< -o $@
 LIB_C_FILES += freebsd/lib/libc/db/btree/bt_overflow.c
+freebsd/lib/libc/db/btree/bt_overflow.o: freebsd/lib/libc/db/btree/bt_overflow.c
+	$(CC) $(CPPFLAGS) $(CFLAGS) -D__DBINTERFACE_PRIVATE -c $< -o $@
 LIB_C_FILES += freebsd/lib/libc/db/btree/bt_page.c
+freebsd/lib/libc/db/btree/bt_page.o: freebsd/lib/libc/db/btree/bt_page.c
+	$(CC) $(CPPFLAGS) $(CFLAGS) -D__DBINTERFACE_PRIVATE -c $< -o $@
 LIB_C_FILES += freebsd/lib/libc/db/btree/bt_put.c
+freebsd/lib/libc/db/btree/bt_put.o: freebsd/lib/libc/db/btree/bt_put.c
+	$(CC) $(CPPFLAGS) $(CFLAGS) -D__DBINTERFACE_PRIVATE -c $< -o $@
 LIB_C_FILES += freebsd/lib/libc/db/btree/bt_search.c
+freebsd/lib/libc/db/btree/bt_search.o: freebsd/lib/libc/db/btree/bt_search.c
+	$(CC) $(CPPFLAGS) $(CFLAGS) -D__DBINTERFACE_PRIVATE -c $< -o $@
 LIB_C_FILES += freebsd/lib/libc/db/btree/bt_seq.c
+freebsd/lib/libc/db/btree/bt_seq.o: freebsd/lib/libc/db/btree/bt_seq.c
+	$(CC) $(CPPFLAGS) $(CFLAGS) -D__DBINTERFACE_PRIVATE -c $< -o $@
 LIB_C_FILES += freebsd/lib/libc/db/btree/bt_split.c
+freebsd/lib/libc/db/btree/bt_split.o: freebsd/lib/libc/db/btree/bt_split.c
+	$(CC) $(CPPFLAGS) $(CFLAGS) -D__DBINTERFACE_PRIVATE -c $< -o $@
 LIB_C_FILES += freebsd/lib/libc/db/btree/bt_utils.c
+freebsd/lib/libc/db/btree/bt_utils.o: freebsd/lib/libc/db/btree/bt_utils.c
+	$(CC) $(CPPFLAGS) $(CFLAGS) -D__DBINTERFACE_PRIVATE -c $< -o $@
 LIB_C_FILES += freebsd/lib/libc/db/db/db.c
+freebsd/lib/libc/db/db/db.o: freebsd/lib/libc/db/db/db.c
+	$(CC) $(CPPFLAGS) $(CFLAGS) -D__DBINTERFACE_PRIVATE -c $< -o $@
 LIB_C_FILES += freebsd/lib/libc/db/mpool/mpool.c
+freebsd/lib/libc/db/mpool/mpool.o: freebsd/lib/libc/db/mpool/mpool.c
+	$(CC) $(CPPFLAGS) $(CFLAGS) -D__DBINTERFACE_PRIVATE -c $< -o $@
 LIB_C_FILES += freebsd/lib/libc/db/mpool/mpool-compat.c
+freebsd/lib/libc/db/mpool/mpool-compat.o: freebsd/lib/libc/db/mpool/mpool-compat.c
+	$(CC) $(CPPFLAGS) $(CFLAGS) -D__DBINTERFACE_PRIVATE -c $< -o $@
 LIB_C_FILES += freebsd/lib/libc/db/recno/rec_close.c
+freebsd/lib/libc/db/recno/rec_close.o: freebsd/lib/libc/db/recno/rec_close.c
+	$(CC) $(CPPFLAGS) $(CFLAGS) -D__DBINTERFACE_PRIVATE -c $< -o $@
 LIB_C_FILES += freebsd/lib/libc/db/recno/rec_delete.c
+freebsd/lib/libc/db/recno/rec_delete.o: freebsd/lib/libc/db/recno/rec_delete.c
+	$(CC) $(CPPFLAGS) $(CFLAGS) -D__DBINTERFACE_PRIVATE -c $< -o $@
 LIB_C_FILES += freebsd/lib/libc/db/recno/rec_get.c
+freebsd/lib/libc/db/recno/rec_get.o: freebsd/lib/libc/db/recno/rec_get.c
+	$(CC) $(CPPFLAGS) $(CFLAGS) -D__DBINTERFACE_PRIVATE -c $< -o $@
 LIB_C_FILES += freebsd/lib/libc/db/recno/rec_open.c
+freebsd/lib/libc/db/recno/rec_open.o: freebsd/lib/libc/db/recno/rec_open.c
+	$(CC) $(CPPFLAGS) $(CFLAGS) -D__DBINTERFACE_PRIVATE -c $< -o $@
 LIB_C_FILES += freebsd/lib/libc/db/recno/rec_put.c
+freebsd/lib/libc/db/recno/rec_put.o: freebsd/lib/libc/db/recno/rec_put.c
+	$(CC) $(CPPFLAGS) $(CFLAGS) -D__DBINTERFACE_PRIVATE -c $< -o $@
 LIB_C_FILES += freebsd/lib/libc/db/recno/rec_search.c
+freebsd/lib/libc/db/recno/rec_search.o: freebsd/lib/libc/db/recno/rec_search.c
+	$(CC) $(CPPFLAGS) $(CFLAGS) -D__DBINTERFACE_PRIVATE -c $< -o $@
 LIB_C_FILES += freebsd/lib/libc/db/recno/rec_seq.c
+freebsd/lib/libc/db/recno/rec_seq.o: freebsd/lib/libc/db/recno/rec_seq.c
+	$(CC) $(CPPFLAGS) $(CFLAGS) -D__DBINTERFACE_PRIVATE -c $< -o $@
 LIB_C_FILES += freebsd/lib/libc/db/recno/rec_utils.c
+freebsd/lib/libc/db/recno/rec_utils.o: freebsd/lib/libc/db/recno/rec_utils.c
+	$(CC) $(CPPFLAGS) $(CFLAGS) -D__DBINTERFACE_PRIVATE -c $< -o $@
 LIB_C_FILES += freebsd/lib/libc/gen/err.c
 LIB_C_FILES += freebsd/lib/libc/gen/feature_present.c
 LIB_C_FILES += freebsd/lib/libc/gen/gethostname.c
diff --git a/freebsd-to-rtems.py b/freebsd-to-rtems.py
index 2fb4519..c3e8837 100755
--- a/freebsd-to-rtems.py
+++ b/freebsd-to-rtems.py
@@ -428,7 +428,6 @@ class ModuleManager:
 			'CFLAGS += -Ifreebsd/lib/libmemstat\n' \
 			'CFLAGS += -Ifreebsd/lib/libipsec\n' \
 			'CFLAGS += -Itestsuite/include\n' \
-			'CFLAGS += -D__DBINTERFACE_PRIVATE\n' \
 			'CFLAGS += -DINET6\n' \
 			'CFLAGS += -w\n' \
 			'CFLAGS += -std=gnu99\n' \
@@ -2237,6 +2236,11 @@ userSpace.addUserSpaceSourceFiles(
 		'lib/libc/db/recno/rec_search.c',
 		'lib/libc/db/recno/rec_seq.c',
 		'lib/libc/db/recno/rec_utils.c',
+	],
+	'-D__DBINTERFACE_PRIVATE'
+)
+userSpace.addUserSpaceSourceFiles(
+	[
 		'lib/libc/gen/err.c',
 		'lib/libc/gen/feature_present.c',
 		'lib/libc/gen/gethostname.c',




More information about the vc mailing list