summaryrefslogtreecommitdiff
path: root/project
diff options
context:
space:
mode:
authormidipix <writeonce@midipix.org>2024-04-29 02:39:30 +0000
committermidipix <writeonce@midipix.org>2024-05-07 20:07:25 +0000
commit02e59c946d51faf976a85610e44d7b0ccf4a6e59 (patch)
tree660056e01b242e947e27c470b9989c7b1ae6b2b7 /project
parente9098c5591f439cdf8a923c9298b8fc7ff28a3ac (diff)
downloadtreebnf-02e59c946d51faf976a85610e44d7b0ccf4a6e59.tar.bz2
treebnf-02e59c946d51faf976a85610e44d7b0ccf4a6e59.tar.xz
driver: created program skeleton.
Diffstat (limited to 'project')
-rw-r--r--project/common.mk9
-rw-r--r--project/extras.mk8
-rw-r--r--project/headers.mk8
-rw-r--r--project/tree.mk6
4 files changed, 30 insertions, 1 deletions
diff --git a/project/common.mk b/project/common.mk
index 0843a4c..7a77195 100644
--- a/project/common.mk
+++ b/project/common.mk
@@ -1,6 +1,15 @@
API_SRCS = \
+ src/driver/tbnf_amain.c \
+ src/driver/tbnf_driver_ctx.c \
+ src/driver/tbnf_map_input.c \
+ src/driver/tbnf_unit_ctx.c \
+ src/output/tbnf_output_error.c \
+ src/skin/tbnf_skin_default.c \
INTERNAL_SRCS = \
+ src/internal/$(PACKAGE)_dprintf_impl.c \
+ src/internal/$(PACKAGE)_errinfo_impl.c \
+ src/internal/$(PACKAGE)_tmpfile_impl.c \
APP_SRCS = \
src/treebnf.c
diff --git a/project/extras.mk b/project/extras.mk
index e69de29..64725b0 100644
--- a/project/extras.mk
+++ b/project/extras.mk
@@ -0,0 +1,8 @@
+CFLAGS_SHARED_ATTR += -DTBNF_PRE_ALPHA -DTBNF_EXPORT
+CFLAGS_STATIC_ATTR += -DTBNF_PRE_ALPHA -DTBNF_STATIC
+CFLAGS_APP_ATTR += -DTBNF_APP
+
+CFLAGS_CONFIG += $(CFLAGS_ATTR_VISIBILITY_HIDDEN)
+
+src/driver/tbnf_driver_ctx.o: version.tag
+src/driver/tbnf_driver_ctx.lo: version.tag
diff --git a/project/headers.mk b/project/headers.mk
index 9d50ee3..c5ae8b6 100644
--- a/project/headers.mk
+++ b/project/headers.mk
@@ -1,5 +1,13 @@
API_HEADERS = \
+ $(SOURCE_DIR)/include/$(PACKAGE)/treebnf.h \
+ $(SOURCE_DIR)/include/$(PACKAGE)/treebnf_api.h \
INTERNAL_HEADERS = \
+ $(SOURCE_DIR)/src/internal/argv/argv.h \
+ $(SOURCE_DIR)/src/internal/$(PACKAGE)_dprintf_impl.h \
+ $(SOURCE_DIR)/src/internal/$(PACKAGE)_driver_impl.h \
+ $(SOURCE_DIR)/src/internal/$(PACKAGE)_errinfo_impl.h \
+ $(SOURCE_DIR)/src/internal/$(PACKAGE)_tmpfile_impl.h \
+ $(SOURCE_DIR)/src/internal/$(PACKAGE)_visibility_impl.h \
ALL_HEADERS = $(API_HEADERS) $(INTERNAL_HEADERS)
diff --git a/project/tree.mk b/project/tree.mk
index 7d6d7e7..f3ae848 100644
--- a/project/tree.mk
+++ b/project/tree.mk
@@ -1,4 +1,8 @@
-TREE_DIRS = src \
+TREE_DIRS = src \
+ src/driver \
+ src/output \
+ src/skin \
+ src/internal \
tree.tag:
mkdir -p $(TREE_DIRS)