summaryrefslogtreecommitdiffhomepage
path: root/project
diff options
context:
space:
mode:
authormidipix <writeonce@midipix.org>2016-07-04 00:50:42 -0400
committermidipix <writeonce@midipix.org>2016-07-21 03:47:24 -0400
commit0efa8cf1d20712cbfaa549d31a8ebc11a23f78ec (patch)
tree784e6b7220f8f7b75fddf4e95776e3e9f9f1642a /project
parent9afa0dab7afbc1f86c0c3ee656c6c92c872734b7 (diff)
downloadptycon-0efa8cf1d20712cbfaa549d31a8ebc11a23f78ec.tar.bz2
ptycon-0efa8cf1d20712cbfaa549d31a8ebc11a23f78ec.tar.xz
created free-standing project skeleton.
Diffstat (limited to 'project')
-rw-r--r--project/arch.mk5
-rw-r--r--project/common.mk11
-rw-r--r--project/depends.mk0
-rw-r--r--project/extras.mk11
-rw-r--r--project/headers.mk12
-rw-r--r--project/osforce.mk0
-rw-r--r--project/overrides.mk0
-rw-r--r--project/tagver.mk5
-rw-r--r--project/tree.mk9
9 files changed, 53 insertions, 0 deletions
diff --git a/project/arch.mk b/project/arch.mk
new file mode 100644
index 0000000..f7089c6
--- /dev/null
+++ b/project/arch.mk
@@ -0,0 +1,5 @@
+src/internal/nolibc/ptyc_compiler.lo: $(PROJECT_DIR)/src/internal/nolibc/$(ARCH)/ptyc_compiler.s host.tag tree.tag
+ $(CC) -c -o $@ $<
+
+src/internal/nolibc/ptyc_compiler.o: $(PROJECT_DIR)/src/internal/nolibc/$(ARCH)/ptyc_compiler.s host.tag tree.tag
+ $(CC) -c -o $@ $<
diff --git a/project/common.mk b/project/common.mk
new file mode 100644
index 0000000..07ea4ed
--- /dev/null
+++ b/project/common.mk
@@ -0,0 +1,11 @@
+COMMON_SRCS = \
+ src/driver/ptyc_amain.c \
+ src/driver/ptyc_driver_ctx.c \
+ src/internal/nolibc/ptyc_compiler.c \
+ src/internal/ptycon_memfn_impl.c \
+ src/internal/ptycon_nolibc_impl.c \
+ src/internal/ptycon_ntaio_impl.c \
+ src/skin/ptyc_skin_default.c \
+
+APP_SRCS = \
+ src/ptycon.c
diff --git a/project/depends.mk b/project/depends.mk
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/project/depends.mk
diff --git a/project/extras.mk b/project/extras.mk
new file mode 100644
index 0000000..6f6d5db
--- /dev/null
+++ b/project/extras.mk
@@ -0,0 +1,11 @@
+CFLAGS_SHARED_ATTR += -DPTYC_PRE_ALPHA -DPTYC_BUILD
+CFLAGS_STATIC_ATTR += -DPTYC_PRE_ALPHA -DPTYC_STATIC
+CFLAGS_APP_ATTR += -DPTYC_APP
+
+src/driver/ptyc_driver_ctx.o: version.tag
+src/driver/ptyc_driver_ctx.lo: version.tag
+
+LDFLAGS_COMMON += -nostdlib -lntapi -lpemagine -ldalist
+LDFLAGS_COMMON += -Wl,--entry -Wl,$(HOST_UNDERSCORE)$(PACKAGE)_entry_point
+
+LDFLAGS_SHARED += -Wl,--exclude-all-symbols
diff --git a/project/headers.mk b/project/headers.mk
new file mode 100644
index 0000000..ed7a838
--- /dev/null
+++ b/project/headers.mk
@@ -0,0 +1,12 @@
+API_HEADERS = \
+ $(PROJECT_DIR)/include/$(PACKAGE)/ptycon.h \
+ $(PROJECT_DIR)/include/$(PACKAGE)/ptycon_api.h \
+
+INTERNAL_HEADERS = \
+ $(PROJECT_DIR)/src/internal/argv/argv.h \
+ $(PROJECT_DIR)/src/internal/$(PACKAGE)_driver_impl.h \
+ $(PROJECT_DIR)/src/internal/$(PACKAGE)_init_impl.h \
+ $(PROJECT_DIR)/src/internal/$(PACKAGE)_memfn_impl.h \
+ $(PROJECT_DIR)/src/internal/$(PACKAGE)_nolibc_impl.h \
+
+ALL_HEADERS = $(API_HEADERS) $(INTERNAL_HEADERS)
diff --git a/project/osforce.mk b/project/osforce.mk
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/project/osforce.mk
diff --git a/project/overrides.mk b/project/overrides.mk
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/project/overrides.mk
diff --git a/project/tagver.mk b/project/tagver.mk
new file mode 100644
index 0000000..4e744b1
--- /dev/null
+++ b/project/tagver.mk
@@ -0,0 +1,5 @@
+VER_NAMESPACE = PTYC
+
+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..d352c5b
--- /dev/null
+++ b/project/tree.mk
@@ -0,0 +1,9 @@
+tree.tag:
+ mkdir -p src
+ mkdir -p src/driver
+ mkdir -p src/internal
+ mkdir -p src/internal/nolibc
+ mkdir -p src/logic
+ mkdir -p src/output
+ mkdir -p src/skin
+ touch tree.tag