--- /dev/null
+# $Id$
+
+.PHONY: all clean
+.SUFFIXES: .c .o
+
+OBJS = main.o
+
+all: dataworks$(EXEC_SUFFIX)
+
+dataworks$(EXEC_SUFFIX): $(OBJS)
+ $(CC) $(LDFLAGS) -o $@ $(OBJS) $(LIBS) -ldataworks
+
+.c.o:
+ $(CC) -I../Library $(CFLAGS) -c -o $@ $<
+
+clean:
+ rm -f *.o dataworks *.exe
--- /dev/null
+/* $Id$ */
+/* --- START LICENSE --- */
+/* --- END LICENSE --- */
+
+#include <dataworks.h>
+
+#include <stdio.h>
+
+int main(int argc, char** argv){
+ printf("DataWorks %s\n", dataworks_get_version());
+}
--- /dev/null
+# $Id$
+
+PROJECT_NAME = DataWorks
+OUTPUT_DIRECTORY = doc
+TAB_SIZE = 8
+OPTIMIZE_OUTPUT_FOR_C = YES
+MARKDOWN_SUPPORT = YES
+EXTRACT_ALL = NO
+FILE_PATTERNS = *.h *.c
+INPUT = ../Library
+SOURCE_BROWSER = YES
+HTML_DYNAMIC_MENUS = YES
+GENERATE_TREEVIEW = YES
+EXCLUDE_SYMBOLS = __*
+FULL_SIDEBAR = NO
+DISABLE_INDEX = NO
+PROJECT_LOGO = ../dataworks.png
+PROJECT_BRIEF = Database Library/Client
+GENERATE_MAN = YES
+MAN_OUTPUT = man
+HTML_OUTPUT = html
+INPUT += index.md
+USE_MDFILE_AS_MAINPAGE = index.md
+FULL_PATH_NAMES = YES
+STRIP_FROM_PATH = ../Library/
+IMAGE_PATH = ..
+ENABLED_SECTIONS = YES
+OUTPUT_LANGUAGE = English
+GENERATE_LATEX = NO
--- /dev/null
+# $Id$
+
+.PHONY: all clean document
+all: document
+
+document:
+ doxygen
+
+clean:
+ rm -rf doc
--- /dev/null
+# Abstract {#mainpage}
+
+**DataWorks** is a general-purpose and platform independent database library/client.
+
+## License
+
+**DataWorks** is free software, and sources are published under 3-clause BSD License.
.PHONY: all clean
.SUFFIXES: .c .o
-OBJS = parser.o
+OBJS = parser.o dataworks.o
all: $(LIB_PREFIX)dataworks$(LIB_SUFFIX)
$(CC) $(CFLAGS) -fPIC -c -o $@ $<
clean:
- rm -f *.o $(LIB_PREFIX)dataworks$(LIB_SUFFIX)
+ rm -f *.o *.so *.dll
--- /dev/null
+/* $Id$ */
+/* --- START LICENSE --- */
+/* --- END LICENSE --- */
+
+#include "dataworks.h"
+
+const char* dataworks_version = DATAWORKS_VERSION;
+
+const char* dataworks_get_version(void){
+ return dataworks_version;
+}
--- /dev/null
+/* $Id$ */
+/* --- START LICENSE --- */
+/* --- END LICENSE --- */
+
+#ifndef __DATAWORKS_DATAWORKS_H__
+#define __DATAWORKS_DATAWORKS_H__
+
+/**
+ * @file dataworks.h
+ * @~english
+ * @brief DataWorks info
+ *
+ */
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+/**
+ * @~english
+ * @brief Version of DataWorks
+ * @note Use dataworks_get_version.
+ *
+ */
+#define DATAWORKS_VERSION "0.0.0"
+
+/**
+ * @~english
+ * @brief Get the version of DataWorks
+ * @return Version of DataWorks
+ *
+ */
+const char* dataworks_get_version(void);
+
+#ifdef __cplusplus
+}
+#endif
+
+#endif
# $Id$
CC = cc
CFLAGS = -std=c99
-LDFLAGS =
+LDFLAGS = -L`pwd`/Library
LIBS =
LIB_PREFIX = lib
LIB_SUFFIX = .so
+EXEC_SUFFIX =
.if "$(PLATFORM)" != ""
.include "Platforms/$(PLATFORM).mk"
.endif
-COMPILE_FLAGS = CC="$(CC)" CFLAGS="$(CFLAGS)" LDFLAGS="$(LDFLAGS)" LIBS="$(LIBS)" LIB_PREFIX="$(LIB_PREFIX)" LIB_SUFFIX="$(LIB_SUFFIX)"
+COMPILE_FLAGS = CC="$(CC)" CFLAGS="$(CFLAGS)" LDFLAGS="$(LDFLAGS)" LIBS="$(LIBS)" LIB_PREFIX="$(LIB_PREFIX)" LIB_SUFFIX="$(LIB_SUFFIX)" EXEC_SUFFIX="$(EXEC_SUFFIX)"
-.PHONY: all replace format clean ./Library
+.PHONY: all no-doc replace format clean ./Library ./Client ./Document
-all: ./Library
+all: ./Library ./Client ./Document
+
+no-doc: ./Library ./Client
./Library::
$(MAKE) -C $@ $(COMPILE_FLAGS)
+./Client:: ./Library
+ $(MAKE) -C $@ $(COMPILE_FLAGS)
+
+./Document::
+ $(MAKE) -C ./Document $(COMPILE_FLAGS)
+
FILES = `find . -name "*.c" -or -name "*.h"`
replace:
clean:
$(MAKE) -C ./Library clean $(COMPILE_FLAGS)
+ $(MAKE) -C ./Client clean $(COMPILE_FLAGS)
+ $(MAKE) -C ./Document clean $(COMPILE_FLAGS)
CC = i686-w64-mingw32-gcc
LIB_PREFIX =
LIB_SUFFIX = .dll
+EXEC_SUFFIX = .exe
CC = x86_64-w64-mingw32-gcc
LIB_PREFIX =
LIB_SUFFIX = .dll
+EXEC_SUFFIX = .exe