From 0efa8cf1d20712cbfaa549d31a8ebc11a23f78ec Mon Sep 17 00:00:00 2001 From: midipix Date: Mon, 4 Jul 2016 00:50:42 -0400 Subject: created free-standing project skeleton. --- project/arch.mk | 5 +++++ project/common.mk | 11 +++++++++++ project/depends.mk | 0 project/extras.mk | 11 +++++++++++ project/headers.mk | 12 ++++++++++++ project/osforce.mk | 0 project/overrides.mk | 0 project/tagver.mk | 5 +++++ project/tree.mk | 9 +++++++++ 9 files changed, 53 insertions(+) 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 (limited to 'project') 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 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 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..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 -- cgit v1.2.3