summaryrefslogtreecommitdiffhomepage
path: root/project
diff options
context:
space:
mode:
authormidipix <writeonce@midipix.org>2020-01-27 08:36:51 -0500
committermidipix <writeonce@midipix.org>2020-05-23 05:59:01 +0000
commit88751e9e5ee3726b8a6987aeaae04e956c2234f5 (patch)
tree1ba3549be38e7a9348ad5b48bb35869e3e733daa /project
parentfa6b3e3522edcd8c202669c5587f2b5c77ac150d (diff)
downloadtpax-88751e9e5ee3726b8a6987aeaae04e956c2234f5.tar.bz2
tpax-88751e9e5ee3726b8a6987aeaae04e956c2234f5.tar.xz
created lib-app skeleton (foss21.org lib-app model).
Diffstat (limited to 'project')
-rw-r--r--project/common.mk8
-rw-r--r--project/extras.mk6
-rw-r--r--project/headers.mk6
-rw-r--r--project/tagver.mk2
-rw-r--r--project/tree.mk6
5 files changed, 26 insertions, 2 deletions
diff --git a/project/common.mk b/project/common.mk
index 4b72987..204f473 100644
--- a/project/common.mk
+++ b/project/common.mk
@@ -1,7 +1,15 @@
API_SRCS = \
+ src/driver/tpax_amain.c \
+ src/driver/tpax_driver_ctx.c \
+ src/driver/tpax_unit_ctx.c \
+ src/output/tpax_output_error.c \
+ src/skin/tpax_skin_default.c \
INTERNAL_SRCS = \
+ src/internal/$(PACKAGE)_dprintf_impl.c \
+ src/internal/$(PACKAGE)_errinfo_impl.c \
APP_SRCS = \
+ src/tpax.c
COMMON_SRCS = $(API_SRCS) $(INTERNAL_SRCS)
diff --git a/project/extras.mk b/project/extras.mk
index e69de29..f07c781 100644
--- a/project/extras.mk
+++ b/project/extras.mk
@@ -0,0 +1,6 @@
+CFLAGS_SHARED_ATTR += -DTPAX_PRE_ALPHA -DTPAX_EXPORT
+CFLAGS_STATIC_ATTR += -DTPAX_PRE_ALPHA -DTPAX_STATIC
+CFLAGS_APP_ATTR += -DTPAX_APP
+
+src/driver/tpax_driver_ctx.o: version.tag
+src/driver/tpax_driver_ctx.lo: version.tag
diff --git a/project/headers.mk b/project/headers.mk
index e7c0af7..2427d74 100644
--- a/project/headers.mk
+++ b/project/headers.mk
@@ -1,6 +1,12 @@
API_HEADERS = \
+ $(SOURCE_DIR)/include/$(PACKAGE)/tpax.h \
+ $(SOURCE_DIR)/include/$(PACKAGE)/tpax_api.h \
INTERNAL_HEADERS = \
$(SOURCE_DIR)/src/internal/argv/argv.h \
+ $(SOURCE_DIR)/src/internal/tpax_dprintf_impl.h \
+ $(SOURCE_DIR)/src/internal/tpax_driver_impl.h \
+ $(SOURCE_DIR)/src/internal/tpax_errinfo_impl.h \
+ $(SOURCE_DIR)/src/internal/tpax_readlink_impl.h \
ALL_HEADERS = $(API_HEADERS) $(INTERNAL_HEADERS)
diff --git a/project/tagver.mk b/project/tagver.mk
index 6a5d8d6..fdc4cec 100644
--- a/project/tagver.mk
+++ b/project/tagver.mk
@@ -1,4 +1,4 @@
-VER_NAMESPACE =
+VER_NAMESPACE = TPAX
VER_MAJOR = 0
VER_MINOR = 0
diff --git a/project/tree.mk b/project/tree.mk
index ed9e1f8..e78a86d 100644
--- a/project/tree.mk
+++ b/project/tree.mk
@@ -1,4 +1,8 @@
-TREE_DIRS = bin src lib
+TREE_DIRS = bin lib src \
+ src/driver \
+ src/internal \
+ src/output \
+ src/skin \
tree.tag:
mkdir -p $(TREE_DIRS)