summaryrefslogtreecommitdiffhomepage
path: root/project/extras.mk
diff options
context:
space:
mode:
authormidipix <writeonce@midipix.org>2016-12-20 20:53:41 +0000
committermidipix <writeonce@midipix.org>2016-12-27 04:40:56 -0500
commit26e14f4143ec690a120e197a3adf547145e4ce59 (patch)
treee9e8b522de5abb14230c5f8e0825452f0c7ccb4b /project/extras.mk
parent70c49fc4ed3b2c3db68537f828c286241eeeee98 (diff)
downloadntux-26e14f4143ec690a120e197a3adf547145e4ce59.tar.bz2
ntux-26e14f4143ec690a120e197a3adf547145e4ce59.tar.xz
create free-standing, libpsxscl-based project skeleton.
Diffstat (limited to 'project/extras.mk')
-rw-r--r--project/extras.mk20
1 files changed, 20 insertions, 0 deletions
diff --git a/project/extras.mk b/project/extras.mk
new file mode 100644
index 0000000..27b746c
--- /dev/null
+++ b/project/extras.mk
@@ -0,0 +1,20 @@
+CFLAGS_SHARED_ATTR += -DNTUX_PRE_ALPHA -DNTUX_EXPORT
+CFLAGS_STATIC_ATTR += -DNTUX_PRE_ALPHA -DNTUX_STATIC
+CFLAGS_APP_ATTR += -DNTUX_APP
+
+CFLAGS_CONFIG += -ffreestanding
+CFLAGS_CONFIG += -D_MIDIPIX_FREESTANDING -D__NT$(HOST_BITS)
+CFLAGS_CONFIG += -UWIN32 -U_WIN32 -U__WIN32 -U__WIN32__
+CFLAGS_CONFIG += -UWIN64 -U_WIN64 -U__WIN64 -U__WIN64__
+
+src/driver/ntux_driver_ctx.o: version.tag
+src/driver/ntux_driver_ctx.lo: version.tag
+
+LDFLAGS_COMMON += -Wl,--entry -Wl,$(HOST_UNDERSCORE)$(PACKAGE)_entry_point
+LDFLAGS_COMMON += -nostdlib
+
+LDFLAGS_SHARED += -lpsxscl
+LDFLAGS_SHARED += -Wl,--exclude-all-symbols
+
+LDFLAGS_APP += -lpsxscl
+LDFLAGS_STATIC += -static -lpsxscl -lntapi -lpemagine -ldalist