From e536db6d1fffb429033b7f0557bd3f123c2f0e86 Mon Sep 17 00:00:00 2001 From: midipix Date: Sun, 28 Apr 2024 18:11:28 +0000 Subject: project: created skeleton. --- config.project | 73 ++++++++++++++++++++++++++++++++++++++++++++++++++++ project/arch.mk | 0 project/common.mk | 8 ++++++ project/depends.mk | 0 project/extras.mk | 0 project/headers.mk | 5 ++++ project/osforce.mk | 0 project/overrides.mk | 0 project/tagver.mk | 5 ++++ project/tree.mk | 5 ++++ src/treebnf.c | 15 +++++++++++ 11 files changed, 111 insertions(+) create mode 100644 config.project create mode 100644 project/arch.mk create mode 100644 project/common.mk create mode 100644 project/depends.mk create mode 100644 project/extras.mk create mode 100644 project/headers.mk create mode 100644 project/osforce.mk create mode 100644 project/overrides.mk create mode 100644 project/tagver.mk create mode 100644 project/tree.mk create mode 100644 src/treebnf.c diff --git a/config.project b/config.project new file mode 100644 index 0000000..4799d69 --- /dev/null +++ b/config.project @@ -0,0 +1,73 @@ +# project +mb_package=treebnf +mb_require_out_of_tree=no +mb_require_source_dir=no +mb_custom_install_headers=no +mb_avoid_version=no + +# config +mb_all_static= +mb_all_shared= +mb_disable_frontend=no +mb_disable_static=no +mb_disable_shared=no + +# custom config step +mb_use_custom_cfgdefs=no +mb_use_custom_cfginit=no +mb_use_custom_cfgfini=no +mb_use_custom_cfgtest=no + +# advanced make options +mb_make= +mb_makefile= +mb_makemode= + +# pkgconfig +mb_pkgname='treebnf' +mb_pkgdesc='treebnf' +mb_pkgusrc= +mb_pkgrepo='https://git.foss21.org/tulips/treebnf' +mb_pkgpsrc= +mb_pkgdurl= +mb_pkgdefs= +mb_pkglibs= + +# ccenv +mb_ccenv_create_log= +mb_ccenv_skip_native= + +# compilation environment +mb_hosted= +mb_freestanding= + +# switches +mb_default_cflags_common="\$(_CFLAGS_std_c99) -D_XOPEN_SOURCE=700" +mb_default_cflags_common="$mb_default_cflags_common -I\$(SOURCE_DIR)/src/internal" +mb_default_cflags_common="$mb_default_cflags_common -I\$(SOURCE_DIR)/include" +mb_default_cflags_common="$mb_default_cflags_common -Ibuild" + +mb_default_cflags_debug= +mb_default_cflags_cmdline= +mb_default_cflags_config= +mb_default_cflags_sysroot= +mb_default_cflags_path= +mb_default_cflags_strict= +mb_default_cflags_util= +mb_default_cflags_last= +mb_default_cflags_once= + +mb_default_ldflags_common="-Llib" +mb_default_ldflags_debug= +mb_default_ldflags_cmdline= +mb_default_ldflags_config= +mb_default_ldflags_sysroot= +mb_default_ldflags_path= +mb_default_ldflags_strict= +mb_default_ldflags_util= +mb_default_ldflags_last= +mb_default_ldflags_once= + +# native +mb_default_native_cflags="\$(_NATIVE_CFLAGS_std_c99) -D_XOPEN_SOURCE=700" +mb_default_native_ldflags= diff --git a/project/arch.mk b/project/arch.mk new file mode 100644 index 0000000..e69de29 diff --git a/project/common.mk b/project/common.mk new file mode 100644 index 0000000..0843a4c --- /dev/null +++ b/project/common.mk @@ -0,0 +1,8 @@ +API_SRCS = \ + +INTERNAL_SRCS = \ + +APP_SRCS = \ + src/treebnf.c + +COMMON_SRCS = $(API_SRCS) $(INTERNAL_SRCS) diff --git a/project/depends.mk b/project/depends.mk new file mode 100644 index 0000000..e69de29 diff --git a/project/extras.mk b/project/extras.mk new file mode 100644 index 0000000..e69de29 diff --git a/project/headers.mk b/project/headers.mk new file mode 100644 index 0000000..9d50ee3 --- /dev/null +++ b/project/headers.mk @@ -0,0 +1,5 @@ +API_HEADERS = \ + +INTERNAL_HEADERS = \ + +ALL_HEADERS = $(API_HEADERS) $(INTERNAL_HEADERS) diff --git a/project/osforce.mk b/project/osforce.mk new file mode 100644 index 0000000..e69de29 diff --git a/project/overrides.mk b/project/overrides.mk new file mode 100644 index 0000000..e69de29 diff --git a/project/tagver.mk b/project/tagver.mk new file mode 100644 index 0000000..12cae72 --- /dev/null +++ b/project/tagver.mk @@ -0,0 +1,5 @@ +VER_NAMESPACE = TBNF + +VER_MAJOR = 0 +VER_MINOR = 0 +VER_PATCH = 0 diff --git a/project/tree.mk b/project/tree.mk new file mode 100644 index 0000000..7d6d7e7 --- /dev/null +++ b/project/tree.mk @@ -0,0 +1,5 @@ +TREE_DIRS = src \ + +tree.tag: + mkdir -p $(TREE_DIRS) + touch tree.tag diff --git a/src/treebnf.c b/src/treebnf.c new file mode 100644 index 0000000..0b9862a --- /dev/null +++ b/src/treebnf.c @@ -0,0 +1,15 @@ +/**************************************************************/ +/* treebnf: a tree oriented bnf library */ +/* Copyright (C) 2024 SysDeer Technologies, LLC */ +/* Released under GPLv2 and GPLv3; see COPYING.TREEBNF. */ +/**************************************************************/ + +#define TBNF_UNUSED_PARAMETER(p) (void)p + +int main(int argc, char ** argv, char ** envp) +{ + TBNF_UNUSED_PARAMETER(argc); + TBNF_UNUSED_PARAMETER(argv); + TBNF_UNUSED_PARAMETER(envp); + return 0; +} -- cgit v1.2.3